|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RevisionManager
Interface for accessing revision and checkpoint information. Note that the revision objects have limited functionality. For example they must not be updated. However they can be made to the actual object with the appropriate method.
Method Summary | ||
---|---|---|
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. |
|
|
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 it the revision infrastructure is enabled. |
|
|
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. |
|
|
setCheckpoints(java.util.Collection<T> beans,
java.lang.String checkpointName)
Set a checkpoint name (label) to the registry beans specified. |
Method Detail |
---|
boolean isRevisioningEnabled()
true
: revision is enabled false
:
disabledvoid enableRevisioning() throws CSAppFrameworkException
false
.
CSAppFrameworkException
StandaloneRegistryProvider.StandaloneRegistryProvider(String,
String, boolean)
void disableRevisioning() throws CSAppFrameworkException
false
.
CSAppFrameworkException
StandaloneRegistryProvider.StandaloneRegistryProvider(String,
String, boolean)
java.util.Collection<RevisionBean> getRevisionBeans(RegistryBean bean) throws CSAppFrameworkException
bean
- a registry bean
CSAppFrameworkException
<T extends RegistryBean> void restoreBeans(java.util.Collection<T> beans) throws CSAppFrameworkException
beans
- collection of RegistryBean revisions
CSAppFrameworkException
<T extends RegistryBean> void setCheckpoints(java.util.Collection<T> beans, java.lang.String checkpointName) throws CSAppFrameworkException
beans
- collection of RegistryBeancheckpointName
- name of checkpoint (label)
CSAppFrameworkException
void setCheckpoint(RegistryBean bean, java.lang.String checkpointName) throws CSAppFrameworkException
bean
- RegistryBeancheckpointName
- name of checkpoint (label)
CSAppFrameworkException
<T extends RegistryBean> java.util.Collection<RevisionBean> getRevisionBeans(java.util.Collection<T> beans, java.lang.String checkpointName) throws CSAppFrameworkException
beans
- collection of beanscheckpointName
- name of checkpoint (label)
CSAppFrameworkException
java.util.Collection<RevisionBean> getRevisionBeans(RegistryBean bean, java.lang.String checkpointName) throws CSAppFrameworkException
bean
- collection of beanscheckpointName
- name of checkpoint (label)
CSAppFrameworkException
java.util.Collection<RevisionBean> getAllRevisionBeans(java.lang.String checkpointName) throws CSAppFrameworkException
checkpointName
- name of checkpoint (label)
CSAppFrameworkException
java.util.Collection<java.lang.String> getCheckpointNames() throws CSAppFrameworkException
CSAppFrameworkException
int deleteBeans(java.lang.String checkpointName) throws CSAppFrameworkException
checkpointName
- name of checkpoint (label)
CSAppFrameworkException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |