public interface LCMRuntimeManager
LCMRuntimeManager
provides all LCM runtime functionality
, namely: searching for LCModels, finding & setting the LCState of a given registryObjectModifier and Type | Method and Description |
---|---|
void |
approveStateChange(javax.xml.registry.infomodel.RegistryObject registryObject)
Approves the state change on the given registry object
|
java.util.Collection<LCMNode> |
findAllLCMNodes()
Finds all LCMNodes
|
java.util.Collection<LCModel> |
findAllLCModels(javax.xml.registry.infomodel.Concept objectType,
javax.xml.registry.infomodel.Organization organization)
Finds all active and inactive LCModels that are applicable for the given object type/virtual type concept and the given organization.
|
java.util.Collection<LCModel> |
findAllModels()
Finds all LCModels that are currently within the scope.
|
java.util.Collection<LCModel> |
findAllModels(com.centrasite.resourceaccess.managers.ResourceAccessManager resourceManager)
Finds all LCModels that are currently within the scope.
|
java.util.Collection<javax.xml.registry.infomodel.Concept> |
findAllTypesApplicableForLCM()
Returns all types that can be lifecycle cycle enabled.
|
java.util.Collection<LCModel> |
findInactiveModels()
Finds 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)
Finds the active and inactive LCModel that is applicable for the given object type/virtual type concept and the given organization.
|
LCModel |
findLCModel(javax.xml.registry.infomodel.RegistryObject registryObject)
Finds the LCModel that is assigned to the given registryObject
|
LCModel |
findLCModel(java.lang.String typeName)
Finds the LCModel that is active 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)
Finds 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)
Finds 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.
|
LCModel |
getLCModel(java.lang.String lcModelKey)
Gets 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 returns the current state
|
LCModel |
getNewVersion(LCModel oldVersionModel)
Returns the new version, if any, that supersedes the given old version of the model
|
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 on the given registry object
|
void |
rejectStateChange(javax.xml.registry.infomodel.RegistryObject registryObject,
LCState rejectState)
Rejects the state change and sets 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)
Sets 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)
Sets the given registry objects to the given state
|
LCStateChangeStatus |
setLCState(javax.xml.registry.infomodel.RegistryObject registryObject,
LCState targetState)
Sets the given registry object to the given state
|
void |
setLCStateEx(javax.xml.registry.infomodel.RegistryObject registryObject,
LCState targetState)
Sets the given registry object to the given state.
|
java.util.Collection<LCModel> findAllModels(com.centrasite.resourceaccess.managers.ResourceAccessManager resourceManager) throws LCMException
resourceManager
- the resource access manager object.LCModel
as a collection, must not be nullLCMException
- if the LCM provider encounters an internal errorjava.util.Collection<LCModel> findAllModels() throws LCMException
LCModel
as a collection, must not be nullLCMException
- if the LCM provider encounters an internal error while searching for modelsjava.util.Collection<LCModel> findInactiveModels() throws LCMException
LCModel
that are not active as a collection,
must not be nullLCMException
- if the LCM provider encounters an internal error while searching for active modelsLCModel findLCModel(java.lang.String typeName) throws LCMException
typeName
- the name of the type for which the LCModel has to be foundLCModel
with the given name, null if no LCModel foundLCMException
- if the LCM provider encounters an internal error while searching for LCModel based on typeLCModel findLCModel(javax.xml.registry.infomodel.RegistryObject registryObject) throws LCMException
registryObject
- the registry object for which the LCModel has to be foundLCModel
of the registryObject, null if no LCModel foundLCMException
- If the LCM provider encounters an internal error while searching for LCModel based on registryObjectLCModel 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 foundLCModel
for the specified object type/virtual type and the organization, null if no LCModel is foundLCMException
- 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 foundLCMException
- 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 foundLCModel
that are applicable for the given object typeLCMException
- If the LCM provider encounters an internal error while searching for LCModelsLCModel findLCMForLCM() throws LCMException
LCMException
- If the LCM provider encounters an internal errorLCModel getLCModel(java.lang.String lcModelKey) throws LCMException
lcModelKey
- the key of the LCModel which LCModel has to be retrievedLCModel
with the given key, null if no LCModel foundLCMException
- if the LCM provider encounters an internal errorLCRegistryObjectState getLCState(javax.xml.registry.infomodel.RegistryObject registryObject) throws LCMException
registryObject
- the object for which the state is to be foundLCRegistryObjectState
, null if no state definedLCMException
- 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
registryObjects
- the collection of registry objects for which the state is to be settargetState
- state to which the registryObject is to be setLCMException
- if the LCM provider encounters an internal errorLCStateChangeStatus setLCState(javax.xml.registry.infomodel.RegistryObject registryObject, LCState targetState) throws LCMException
registryObject
- object for which the state is to be settargetState
- state to which the registryObject is to be setLCMException
- if the LCM provider encounters an internal errorvoid setLCStateEx(javax.xml.registry.infomodel.RegistryObject registryObject, LCState targetState) throws LCMException
registryObject
- object for which the state is to be settargetState
- state to which the registryObject is to be setLCMException
- thrown if it is not possible to set the given state for RegistryObject.void approveStateChange(javax.xml.registry.infomodel.RegistryObject registryObject) throws LCMException
registryObject
- registryObject for which the change state is triggeredLCMException
- if the LCM provider encounters an internal error while approving the state changevoid rejectStateChange(javax.xml.registry.infomodel.RegistryObject registryObject) throws LCMException
registryObject
- registryObject for which the change state is triggeredLCMException
- if the LCM provider encounters an internal error while rejecting the state changevoid rejectStateChange(javax.xml.registry.infomodel.RegistryObject registryObject, LCState rejectState) throws LCMException
registryObject
- registryObject for which the state change is triggeredrejectState
- state to which the registry object is to be setLCMException
- if the LCM provider encounters an internal error while rejecting the state changeboolean isLCModel(javax.xml.registry.infomodel.ClassificationScheme taxonomy) throws LCMException
taxonomy
- ClassificationScheme
objecttrue
if the above condition met, false
otherwiseLCMException
- if the LCM provider encounters an internal errorjava.util.Collection<javax.xml.registry.infomodel.Concept> findAllTypesApplicableForLCM() throws LCMException
Concept
LCMException
- if the LCM provider encounters an internal errorjava.util.Collection<LCMNode> findAllLCMNodes() throws LCMException
LCMNode
LCMException
- if the LCM provider encounters an internal errorLCMNode getLCMNode(java.lang.String nodeKey) throws LCMException
nodeKey
- the key of the LCMNode to be retrievedLCMException
- if the LCM provider encounters an internal errorLCModel getNewVersion(LCModel oldVersionModel) throws LCMException
oldVersionModel
- LCModel
as objectLCMException
- if the LCM provider encounters an internal error while getting the new versionjava.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
- object types for which LC Models are to be foundorganization
- the organization for which the model has to be foundLCMException
- if the LCM provider encounters an internal error while getting the applicable LCModelsjava.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
- object types for which LC Models are to be foundorganization
- the organization for which the model has to be foundincludeNativeType
- a flag indicating whether the native type has to be considered or notLCMException
- if the LCM provider encounters an internal error while getting the applicable LCModelsjava.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 returnRegistryObject
LCMException
- if the LCM provider encounters an internal error while getting LCM related export objectsjava.util.Collection<java.lang.String> getLCMNodeURLsForImport(javax.xml.registry.infomodel.RegistryObject registryObject) throws LCMException
registryObject
- import the registry object.LCMException
- if the LCM provider encounters an internal error while getting LCMNode URLS for exportvoid setInitialLCState(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> registryObjects, LCState initialState) throws LCMException
registryObjects
- Collection of registry objects.initialState
- the initial state of the object.LCMException
- if the LCM provider encounters an internal error while setting initial LCState