|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.centrasite.appl.framework.persistence.revision.impl.RevisionManagerImpl
public class RevisionManagerImpl
Implementation of the RevisionManager
interface. Wrapper for the
CentraSiteVMS revision manager and administrator.
Constructor Summary | |
---|---|
RevisionManagerImpl(javax.xml.registry.Connection connection,
ManagedBeanPool beanPool)
Requires JAXR connection and bean pool instance. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RevisionManagerImpl(javax.xml.registry.Connection connection, ManagedBeanPool beanPool) throws CSAppFrameworkException
connection
- Used to initialize the CentraSiteVMS revision manager.beanPool
- Used to map revision registry objects to registry beans.
CSAppFrameworkException
Method Detail |
---|
public int deleteBeans(java.lang.String checkpointName) throws CSAppFrameworkException
RevisionManager
deleteBeans
in interface RevisionManager
checkpointName
- name of checkpoint (label)
CSAppFrameworkException
public java.util.Collection<java.lang.String> getCheckpointNames() throws CSAppFrameworkException
RevisionManager
getCheckpointNames
in interface RevisionManager
CSAppFrameworkException
public <T extends RegistryBean> java.util.Collection<RevisionBean> getRevisionBeans(java.util.Collection<T> beans, java.lang.String checkpointName) throws CSAppFrameworkException
RevisionManager
getRevisionBeans
in interface RevisionManager
beans
- collection of beanscheckpointName
- name of checkpoint (label)
CSAppFrameworkException
public java.util.Collection<RevisionBean> getAllRevisionBeans(java.lang.String checkpointName) throws CSAppFrameworkException
RevisionManager
getAllRevisionBeans
in interface RevisionManager
checkpointName
- name of checkpoint (label)
CSAppFrameworkException
public java.util.Collection<RevisionBean> getRevisionBeans(RegistryBean bean) throws CSAppFrameworkException
RevisionManager
getRevisionBeans
in interface RevisionManager
bean
- a registry bean
CSAppFrameworkException
public <T extends RegistryBean> void restoreBeans(java.util.Collection<T> beans) throws CSAppFrameworkException
RevisionManager
restoreBeans
in interface RevisionManager
beans
- collection of RegistryBean revisions
CSAppFrameworkException
public <T extends RegistryBean> void setCheckpoints(java.util.Collection<T> beans, java.lang.String checkpointName) throws CSAppFrameworkException
RevisionManager
setCheckpoints
in interface RevisionManager
beans
- collection of RegistryBeancheckpointName
- name of checkpoint (label)
CSAppFrameworkException
public java.util.Collection<RevisionBean> getRevisionBeans(RegistryBean bean, java.lang.String checkpointName) throws CSAppFrameworkException
RevisionManager
getRevisionBeans
in interface RevisionManager
bean
- collection of beanscheckpointName
- name of checkpoint (label)
CSAppFrameworkException
public void disableRevisioning() throws CSAppFrameworkException
RevisionManager
false
.
disableRevisioning
in interface RevisionManager
CSAppFrameworkException
StandaloneRegistryProvider.StandaloneRegistryProvider(String,
String, boolean)
public void enableRevisioning() throws CSAppFrameworkException
RevisionManager
false
.
enableRevisioning
in interface RevisionManager
CSAppFrameworkException
StandaloneRegistryProvider.StandaloneRegistryProvider(String,
String, boolean)
public boolean isRevisioningEnabled()
RevisionManager
isRevisioningEnabled
in interface RevisionManager
true
: revision is enabled false
:
disabledpublic void setCheckpoint(RegistryBean bean, java.lang.String checkpointName) throws CSAppFrameworkException
RevisionManager
setCheckpoint
in interface RevisionManager
bean
- RegistryBeancheckpointName
- name of checkpoint (label)
CSAppFrameworkException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |