|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LCMRuntimeManager
The LCMRuntimeManager
provides all LCM runtime functionality
viz., searching for LCModels, finding & setting the LCState of a given registryObject
Method Summary | |
---|---|
void |
approveStateChange(javax.xml.registry.infomodel.RegistryObject registryObject)
Approves the state change |
java.util.Collection<LCMNode> |
findAllLCMNodes()
Find all LCMNodes |
java.util.Collection<LCModel> |
findAllLCModels(javax.xml.registry.infomodel.Concept objectType,
javax.xml.registry.infomodel.Organization organization)
Find all active and incative LCModels that are applicable for the given object type/virtual type concept and the given organization. |
java.util.Collection<LCModel> |
findAllModels()
Find all LCModels that are currently within the scope (global or organizational specific) of the logged-in user. |
java.util.Collection<LCModel> |
findAllModels(com.centrasite.resourceaccess.managers.ResourceAccessManager resourceManager)
Find all LCModels that are currently within the scope (global or organizational specific) of the logged-in user. |
java.util.Collection<javax.xml.registry.infomodel.Concept> |
findAllTypesApplicableForLCM()
Returns all types that can be life cycle enabled. |
java.util.Collection<LCModel> |
findInactiveModels()
Find all LCModels in the whole system that are not active |
LCModel |
findLCMForLCM()
Finds the LCModel for LCModels. |
LCModel |
findLCModel(javax.xml.registry.infomodel.Concept objectType,
javax.xml.registry.infomodel.Organization organization)
Find the active LCModel that is applicable for the given object type/virtual type concept and the given organization. |
LCModel |
findLCModel(javax.xml.registry.infomodel.RegistryObject registryObject)
Find the LCModel that is assigned to the given registryObject |
LCModel |
findLCModel(java.lang.String typeName)
Find the LCModel that is active for for the given type If there are two LCModels active for the given type (one global and the other local), the global LCModel will be returned. |
java.util.Collection<LCModel> |
findLCModels(java.util.Collection<javax.xml.registry.infomodel.Concept> objectTypes,
java.util.Collection<javax.xml.registry.infomodel.Organization> organizations)
Find the active LCModel that is applicable for the given object type/virtual type concept and the given organization. |
java.util.Map<javax.xml.registry.infomodel.Concept,LCModel> |
getApplicableLCModels(java.util.Collection<javax.xml.registry.infomodel.Concept> objectTypes,
javax.xml.registry.infomodel.Organization organization)
Returns a map containing the object types which have a global or org-specific LC Model applicable to them. |
java.util.Map<javax.xml.registry.infomodel.Concept,LCModel> |
getApplicableLCModels(java.util.Collection<javax.xml.registry.infomodel.Concept> objectTypes,
javax.xml.registry.infomodel.Organization organization,
boolean includeNativeType)
|
LCMNode |
getLCMNode(java.lang.String nodeKey)
Find the LCMNode with the given LCMNode key |
java.util.Collection<java.lang.String> |
getLCMNodeURLsForImport(javax.xml.registry.infomodel.RegistryObject registryObject)
returns the collection of configuration URLs of nodes(stages) (if any) into which the given registry object can be imported returns an empty collection if this registry object is not LCM enabled or no nodes are specified for the current state of the registry object This method needs to be called before exporting any IRO and if it returns a non empty collection, export operation should include these stages as part of the export archive |
LCModel |
getLCModel(java.lang.String lcModelKey)
Get the LCModel with the given key |
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getLcmRelatedExportObjects(javax.xml.registry.infomodel.RegistryObject objectToExport)
returns collection of registry objects for export which includes LC model classificationScheme, State Concepts, and their related stages returns an empty collection if the object sent is not a LC model classification scheme |
LCRegistryObjectState |
getLCState(javax.xml.registry.infomodel.RegistryObject registryObject)
For the given registryObject return the current state |
LCModel |
getNewVersion(LCModel oldVersionModel)
Return the new version of this model which supersedes it, if any. |
boolean |
isLCModel(javax.xml.registry.infomodel.ClassificationScheme taxonomy)
Checks if the given taxonomy represents an LCModel taxonomy |
void |
rejectStateChange(javax.xml.registry.infomodel.RegistryObject registryObject)
Rejects the state change |
void |
rejectStateChange(javax.xml.registry.infomodel.RegistryObject registryObject,
LCState rejectState)
Rejects the state change and set the state of the given registry object to the reject state provided there is a valid state transition from the state of the object prior to approval to the reject state. |
void |
setInitialLCState(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> registryObjects,
LCState initialState)
Set the initial states of the each registry object in the collection to the given state |
java.util.Collection<LCStateChangeStatus> |
setLCState(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> registryObjects,
LCState targetState)
Set the given registry objects to the given state |
LCStateChangeStatus |
setLCState(javax.xml.registry.infomodel.RegistryObject registryObject,
LCState targetState)
Set the given registry object to the given state |
void |
setLCStateEx(javax.xml.registry.infomodel.RegistryObject registryObject,
LCState targetState)
Set the given registry object to the given state but the difference between setLCState(RegistryObject, LCState) and
setLCStateEx(RegistryObject, LCState) is in
case of setLCState(RegistryObject, LCState) the
policies required to execute & state persisting is happen immediately but
in case of
setLCStateEx(RegistryObject, LCState) we attach
listeners to registry object to perform Pre and Post operations and those listeners invoked by the
LifeCycleManager so the state change is happen as part of saveObjects. |
Method Detail |
---|
java.util.Collection<LCModel> findAllModels(com.centrasite.resourceaccess.managers.ResourceAccessManager resourceManager) throws LCMException
LCMException
- - if the LCM provider encounters an internal errorjava.util.Collection<LCModel> findAllModels() throws LCMException
LCMException
- - if the LCM provider encounters an internal errorjava.util.Collection<LCModel> findInactiveModels() throws LCMException
LCMException
- - if the LCM provider encounters an internal errorLCModel findLCModel(java.lang.String typeName) throws LCMException
typeName
- the name of the type for which the LCModel has to be found
LCMException
- - if the LCM provider encounters an internal errorLCModel findLCModel(javax.xml.registry.infomodel.RegistryObject registryObject) throws LCMException
registryObject
- for which the LCModel has to be found
LCMException
- - If the LCM provider encounters an internal errorLCModel findLCModel(javax.xml.registry.infomodel.Concept objectType, javax.xml.registry.infomodel.Organization organization) throws LCMException
objectType
- The type for which the LCModel has to be found. Can be a virtual type or base type concept.organization
- The organization for which the model has to be found
LCMException
- - If the LCM provider encounters an internal errorjava.util.Collection<LCModel> findLCModels(java.util.Collection<javax.xml.registry.infomodel.Concept> objectTypes, java.util.Collection<javax.xml.registry.infomodel.Organization> organizations) throws LCMException
objectTypes
- The type for which the LCModel has to be found. Can be a virtual type or base type concept.organizations
- The organization for which the model has to be found
LCMException
- - If the LCM provider encounters an internal errorjava.util.Collection<LCModel> findAllLCModels(javax.xml.registry.infomodel.Concept objectType, javax.xml.registry.infomodel.Organization organization) throws LCMException
objectType
- The type for which the LCModel has to be found. Can be a virtual type or base type concept.organization
- The organization for which the model has to be found
LCMException
- - If the LCM provider encounters an internal errorLCModel findLCMForLCM() throws LCMException
LCMException
LCModel getLCModel(java.lang.String lcModelKey) throws LCMException
lcModelKey
- the key of the LCModel which LCModel has to be retrieved
LCMException
- - if the LCM provider encounters an internal errorLCRegistryObjectState getLCState(javax.xml.registry.infomodel.RegistryObject registryObject) throws LCMException
registryObject
- for which the state is to be found
LCMException
- - if the LCM provider encounters an internal errorjava.util.Collection<LCStateChangeStatus> setLCState(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> registryObjects, LCState targetState) throws LCMException
registryObject
- of which the state is to be settargetState
- to which the registryObject is to be set
LCMException
- - if the LCM provider encounters an internal errorLCStateChangeStatus setLCState(javax.xml.registry.infomodel.RegistryObject registryObject, LCState targetState) throws LCMException
registryObject
- of which the state is to be settargetState
- to which the registryObject is to be set
LCMException
- - if the LCM provider encounters an internal errorvoid setLCStateEx(javax.xml.registry.infomodel.RegistryObject registryObject, LCState targetState) throws LCMException
setLCState(RegistryObject, LCState)
and
setLCStateEx(RegistryObject, LCState)
is in
case of setLCState(RegistryObject, LCState)
the
policies required to execute & state persisting is happen immediately but
in case of
setLCStateEx(RegistryObject, LCState)
we attach
listeners to registry object to perform Pre and Post operations and those listeners invoked by the
LifeCycleManager
so the state change is happen as part of saveObjects.
registryObject
- of which the state is to be settargetState
- to which the registryObject is to be set
LCMException
- throw in case of failed to set the given state to RegistryObject.void approveStateChange(javax.xml.registry.infomodel.RegistryObject registryObject) throws LCMException
registryObject
- registryObject for which the change state is triggered
LCMException
- - if the LCM provider encounters an internal errorvoid rejectStateChange(javax.xml.registry.infomodel.RegistryObject registryObject) throws LCMException
registryObject
- registryObject for which the change state is triggered
LCMException
- - if the LCM provider encounters an internal errorvoid rejectStateChange(javax.xml.registry.infomodel.RegistryObject registryObject, LCState rejectState) throws LCMException
registryObject
- registryObject for which the change state is triggeredrejectState
- state to which the registry object is to be set
LCMException
- - if the LCM provider encounters an internal errorboolean isLCModel(javax.xml.registry.infomodel.ClassificationScheme taxonomy) throws LCMException
LCMException
- - if the LCM provider encounters an internal errorjava.util.Collection<javax.xml.registry.infomodel.Concept> findAllTypesApplicableForLCM() throws LCMException
LCMException
- - if the LCM provider encounters an internal errorjava.util.Collection<LCMNode> findAllLCMNodes() throws LCMException
LCMException
- - if the LCM provider encounters an internal errorLCMNode getLCMNode(java.lang.String nodeKey) throws LCMException
nodeKey
- the key of the LCMNode to be retrieved
LCMException
- - if the LCM provider encounters an internal errorLCModel getNewVersion(LCModel oldVersionModel) throws LCMException
oldVersionModel
-
LCMException
java.util.Map<javax.xml.registry.infomodel.Concept,LCModel> getApplicableLCModels(java.util.Collection<javax.xml.registry.infomodel.Concept> objectTypes, javax.xml.registry.infomodel.Organization organization) throws LCMException
objectTypes
- for which LC Models are to be foundorganization
- for which the model has to be found
LCMException
java.util.Map<javax.xml.registry.infomodel.Concept,LCModel> getApplicableLCModels(java.util.Collection<javax.xml.registry.infomodel.Concept> objectTypes, javax.xml.registry.infomodel.Organization organization, boolean includeNativeType) throws LCMException
objectTypes
- for which LC Models are to be foundorganization
- for which the model has to be foundincludeNativeType
- - Wherther the native type has to be considered or not
LCMException
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getLcmRelatedExportObjects(javax.xml.registry.infomodel.RegistryObject objectToExport) throws LCMException
objectToExport
- the possible LC model object for which export related objects have to be return
LCMException
- - if the LCM provider encounters an internal errorjava.util.Collection<java.lang.String> getLCMNodeURLsForImport(javax.xml.registry.infomodel.RegistryObject registryObject) throws LCMException
registryObject
-
LCMException
void setInitialLCState(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> registryObjects, LCState initialState) throws LCMException
registryObjects
- initialState
-
LCMException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |