|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.centrasite.lcmapi.VersioningUtil
public class VersioningUtil
VersioningUtil.java
Constructor Summary | |
---|---|
VersioningUtil(com.centrasite.jaxr.CentraSiteConnection conn)
|
Method Summary | |
---|---|
javax.xml.registry.infomodel.Concept |
getNewerActiveModelStateIfApplicable(javax.xml.registry.infomodel.Concept existingStateConcept)
|
javax.xml.registry.infomodel.RegistryObject |
getNewerActiveVersion(javax.xml.registry.infomodel.RegistryObject olderVersion)
Find the first(only) newer version of this registry object which is classified as active there can be utmost only one active newer version |
javax.xml.registry.infomodel.Concept |
getNewerVersionState(javax.xml.registry.infomodel.Concept olderStateConcept,
LCModel newerModel)
Get the newer version model's LC state concept which supersedes the given older state concept |
javax.xml.registry.infomodel.RegistryObject |
getOlderActiveVersion(javax.xml.registry.infomodel.RegistryObject newerVersion)
Find the first(only) older version of this registry object which is classified as active there can be utmost only one active older version |
javax.xml.registry.infomodel.RegistryObject |
getOlderInactiveVersion(javax.xml.registry.infomodel.RegistryObject newerVersion)
Find the first(only) older version of this registry object which is classified as inactive there can be utmost only one active older version |
LCState |
getSupersededNextState(javax.xml.registry.infomodel.RegistryObject olderActiveVersion)
if the given old version registry object (policy or lc model taxonomy) can be moved to a LC state which will make the old model to be superseded return the first such LCState, else return null |
void |
setToState(javax.xml.registry.infomodel.RegistryEntry policy,
java.lang.String stateName)
Sets the policy to requested lcm state, if not already set. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersioningUtil(com.centrasite.jaxr.CentraSiteConnection conn) throws LCMException
LCMException
Method Detail |
---|
public LCState getSupersededNextState(javax.xml.registry.infomodel.RegistryObject olderActiveVersion) throws LCMException
LCMException
public javax.xml.registry.infomodel.RegistryObject getOlderActiveVersion(javax.xml.registry.infomodel.RegistryObject newerVersion) throws LCMException
newerVersion
- newer version registry object for which older active version is needed
LCMException
public javax.xml.registry.infomodel.RegistryObject getOlderInactiveVersion(javax.xml.registry.infomodel.RegistryObject newerVersion) throws LCMException
newerVersion
- newer version registry object for which older inactive version is needed
LCMException
public javax.xml.registry.infomodel.RegistryObject getNewerActiveVersion(javax.xml.registry.infomodel.RegistryObject olderVersion) throws LCMException
olderVersion
- older version registry object for which newer active version is needed
LCMException
public javax.xml.registry.infomodel.Concept getNewerVersionState(javax.xml.registry.infomodel.Concept olderStateConcept, LCModel newerModel) throws LCMException
olderStateConcept
- old state for which newer model state is needednewerModel
- model which supersedes the old state's model
LCMException
public javax.xml.registry.infomodel.Concept getNewerActiveModelStateIfApplicable(javax.xml.registry.infomodel.Concept existingStateConcept) throws LCMException, javax.xml.registry.JAXRException
LCMException
javax.xml.registry.JAXRException
public void setToState(javax.xml.registry.infomodel.RegistryEntry policy, java.lang.String stateName) throws java.lang.Exception
policy
- the policy registry objectstateName
- name of the state (e.g. "Productive")
java.lang.Exception
- the policy is not permitted to set to requested state
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |