public interface RevisionManager
Modifier and Type | Method and Description |
---|---|
int |
deleteBeans(java.lang.String checkpointName)
Delete all revision beans flagged with the checkpoint name.
|
void |
disableRevisioning()
Disable the revision and checkpoint environment on global level.
|
void |
enableRevisioning()
Enable the revision and checkpoint environment on global level.
|
java.util.Collection<RevisionBean> |
getAllRevisionBeans(java.lang.String checkpointName)
Get all revision beans which were created with the given checkpoint name
(label).
|
java.util.Collection<java.lang.String> |
getCheckpointNames()
Get a list of checkpoint names (labels) active in the system.
|
<T extends RegistryBean> |
getRevisionBeans(java.util.Collection<T> beans,
java.lang.String checkpointName)
Get the revision beans for the specified registry beans and having a
checkpoint name (label).
|
java.util.Collection<RevisionBean> |
getRevisionBeans(RegistryBean bean)
Get revision objects based on a specific registry bean.
|
java.util.Collection<RevisionBean> |
getRevisionBeans(RegistryBean bean,
java.lang.String checkpointName)
Get the revision beans, for the specified registry bean and having a
checkpoint name (label).
|
boolean |
isRevisioningEnabled()
Checks if the revision infrastructure is enabled.
|
<T extends RegistryBean> |
restoreBeans(java.util.Collection<T> beans)
Restore the specified revision beans so that they will become the actual
registry beans.
|
void |
setCheckpoint(RegistryBean bean,
java.lang.String checkpointName)
Set a checkpoint name (label) to the registry bean specified.
|
<T extends RegistryBean> |
setCheckpoints(java.util.Collection<T> beans,
java.lang.String checkpointName)
Set a checkpoint name (label) to the registry beans specified.
|
boolean isRevisioningEnabled()
true
if revision is enabled and false
if disabledvoid enableRevisioning() throws CSAppFrameworkException
false
.CSAppFrameworkException
- If an error occurs while enabling the revision and checkpoint environmentStandaloneRegistryProvider.StandaloneRegistryProvider(String, String, boolean)
void disableRevisioning() throws CSAppFrameworkException
false
.CSAppFrameworkException
- If an error occurs while disabling the revision and checkpoint environmentStandaloneRegistryProvider.StandaloneRegistryProvider(String, String, boolean)
java.util.Collection<RevisionBean> getRevisionBeans(RegistryBean bean) throws CSAppFrameworkException
bean
- a RegistryBean
objectCollection
of all RegistryBean revisions as RevisionBean
objectsCSAppFrameworkException
- If an error occurs while obtaining the revision beans<T extends RegistryBean> void restoreBeans(java.util.Collection<T> beans) throws CSAppFrameworkException
T
- Type class extending RegistryBean
beans
- Collection
of RegistryBean revisions as RevisionBean
objectsCSAppFrameworkException
- If an error occurs while trying to restore the specified revision beans<T extends RegistryBean> void setCheckpoints(java.util.Collection<T> beans, java.lang.String checkpointName) throws CSAppFrameworkException
T
- Type class extending RegistryBean
beans
- Collection
of RegistryBean objectscheckpointName
- name of checkpoint (label)CSAppFrameworkException
- If an error occurs while setting the checkpointsvoid setCheckpoint(RegistryBean bean, java.lang.String checkpointName) throws CSAppFrameworkException
bean
- RegistryBean
objectcheckpointName
- name of checkpoint (label)CSAppFrameworkException
- If an error occurs while setting the checkpoint name<T extends RegistryBean> java.util.Collection<RevisionBean> getRevisionBeans(java.util.Collection<T> beans, java.lang.String checkpointName) throws CSAppFrameworkException
T
- Type class extending RegistryBean
beans
- Collection
of RevisionBean
scheckpointName
- name of checkpoint (label)Collection
of RevisionBean
sCSAppFrameworkException
- If an error occurs in fetching the revision beans by checkpoint namejava.util.Collection<RevisionBean> getRevisionBeans(RegistryBean bean, java.lang.String checkpointName) throws CSAppFrameworkException
bean
- The RegistryBean
objectcheckpointName
- name of checkpoint (label)Collection
of RevisionBean
sCSAppFrameworkException
- If an error occurs in fetching the revision beansjava.util.Collection<RevisionBean> getAllRevisionBeans(java.lang.String checkpointName) throws CSAppFrameworkException
checkpointName
- name of checkpoint (label)Collection
of RevisionBean
sCSAppFrameworkException
- If an error occurs in obtaining all the revision beansjava.util.Collection<java.lang.String> getCheckpointNames() throws CSAppFrameworkException
Collection
of checkpoint namesCSAppFrameworkException
- If an error occurs while getting all the checkpoint namesint deleteBeans(java.lang.String checkpointName) throws CSAppFrameworkException
checkpointName
- name of checkpoint (label)CSAppFrameworkException
- If an error occurs while deleting all revision beans flagged with the given checkpointName