public interface LCModel
LCModel
provides methods for all operations that can be
performed on an LCModel.
When the LCModel becomes active, no change in the LCModel will be allowed.
Instead, a new version of the LCModel can be created using
LCModel.createVersion(). Refer to CentraSiteVMS to know more about
versioning.Modifier and Type | Method and Description |
---|---|
boolean |
activable(LCModelState lcModelState)
Checks whether this LC Model can be activated.
|
boolean |
addEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys)
Enables the registry types for the given UDDI keys for LCM with this
LCModel.
|
boolean |
addEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys,
boolean enableAsLCMforLCM)
Enables the registry types for the given UDDI keys for LCM with this
LCModel and enables this LCModel as LCM for LCModels if the
enableAsLCMforLCM is specified true.
|
boolean |
addStates(java.util.Collection<LCState> states)
Adds the given states to this LCModel.
|
LCState |
createLCState()
Creates an LCState.
|
LCModel |
createVersion()
Creates a new version of a given LCModel.
|
java.lang.String |
getDescription()
Returns the description of this LCModel.
|
java.lang.String |
getDisplayName()
Returns the displayName of this LCModel.
|
java.util.Collection<java.lang.String> |
getEnabledTypes()
Returns the UDDI keys of the enabled types for LCM with this LCModel.
|
LCState |
getInitialState()
Returns the initialState of this LCModel.
|
java.lang.String |
getKey()
Return the LCModel Key.
|
LCAwareClassificationScheme |
getModelClassificationScheme()
Return the ClassificationScheme.
|
Organization |
getOrganization()
Returns the organization to which the LCModel belongs to.
|
java.util.Collection<LCState> |
getStates()
Returns the states of the LCModel.
|
boolean |
isActive()
Checks whether the model is Active.
|
boolean |
isGlobal()
Checks whether the model is global.
|
boolean |
isInactive()
Checks whether the model is Inactive.
|
boolean |
isLCMForLCM()
Checks whether the model is a LCM for LCM.
|
boolean |
isRetired()
Checks whether the model is Retired.
|
boolean |
isSuperseded()
Checks whether the model is Superseded.
|
boolean |
removeEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys)
Removes types for the given UDDI keys for LCM with this LCModel.
|
boolean |
removeEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys,
boolean disableAsLCMforLCM)
Removes the given types for LCM with this LCModel and disables this
LCModel as LCM for LCModels if the disableAsLCMforLCM is specified true.
|
boolean |
removeState(LCState state)
Remove the given state from the LCModel.
|
void |
setDescription(java.lang.String description)
Sets the description for the model.
|
void |
setDisplayName(java.lang.String displayName)
Set the display name of the model.
|
void |
setInitialState(LCState state)
Set the initial state for the LCModel.
|
void |
setLCState(LCState targetState)
Changes the life cycle state of the LCModel.
|
void |
setModelState(LCModelState modelState)
Deprecated.
|
void |
setOrganization(Organization organization,
boolean global)
Set the organization for this model.
|
void |
validate()
Validates this LCModel.
|
java.lang.String getDisplayName() throws CSAppFrameworkException
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorjava.lang.String getDescription() throws CSAppFrameworkException
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorjava.util.Collection<java.lang.String> getEnabledTypes() throws CSAppFrameworkException
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorLCState getInitialState() throws CSAppFrameworkException
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorOrganization getOrganization() throws CSAppFrameworkException
Organization
the LCModel belongs toCSAppFrameworkException
- -
if the LCM provider encounters an internal errorjava.util.Collection<LCState> getStates() throws CSAppFrameworkException
LCState
s as a Collection
, cannot be nullCSAppFrameworkException
- -
if the LCM provider encounters an internal errorvoid setDisplayName(java.lang.String displayName) throws CSAppFrameworkException
displayName
- The display name to set for the modelCSAppFrameworkException
- -
if the LCM provider encounters an internal errorvoid setDescription(java.lang.String description) throws CSAppFrameworkException
description
- The description to be set for the modelCSAppFrameworkException
- -
if the LCM provider encounters an internal errorvoid setOrganization(Organization organization, boolean global) throws CSAppFrameworkException
organization
- The Organization
to which this model should belongglobal
- If true
, the model is made global belonging to all organizationsCSAppFrameworkException
- -
if the LCM provider encounters an internal errorvoid setInitialState(LCState state) throws CSAppFrameworkException
state
- LCState
to be set as the initial state for this modelCSAppFrameworkException
- if the given state is not a part of the model at the time of
calling this methodvoid setModelState(LCModelState modelState) throws CSAppFrameworkException
setLCState(LCState)
modelState
- - LCModelState to be setCSAppFrameworkException
- -
if the LCM provider encounters an internal errorboolean addEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys) throws CSAppFrameworkException
registryTypeKeys
- Collection
of keys for the types to be enabled for this LCModelCSAppFrameworkException
- -
if the LCM provider encounters an internal errorboolean addEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys, boolean enableAsLCMforLCM) throws CSAppFrameworkException
registryTypeKeys
- Collection
of keys of the types to be enabled for this LCModelenableAsLCMforLCM
- If true to be enabled as LCM for LCModelsCSAppFrameworkException
- -
if the LCM provider encounters an internal errorboolean addStates(java.util.Collection<LCState> states) throws CSAppFrameworkException
states
- Collection
of LCState
s to be added to this LCModelCSAppFrameworkException
- if the LCM provider encounters an internal errorboolean removeState(LCState state) throws CSAppFrameworkException
state
- The LCState
that has to be removed from this LCModelCSAppFrameworkException
- -
if the LCM provider encounters an internal errorboolean removeEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys) throws CSAppFrameworkException
registryTypeKeys
- Collection
of registry type keys that can be removed for LCMCSAppFrameworkException
- -
if the LCM provider encounters an internal errorboolean removeEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys, boolean disableAsLCMforLCM) throws CSAppFrameworkException
registryTypeKeys
- Collection
of registry type keys of Types that can be removed
for LCMdisableAsLCMforLCM
- If true, to be disabled as LCM for LCModelsCSAppFrameworkException
- -
if the LCM provider encounters an internal errorboolean isGlobal() throws CSAppFrameworkException
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorboolean isLCMForLCM() throws CSAppFrameworkException
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorvoid validate() throws CSAppFrameworkException
CSAppFrameworkException
- -
if the validation fails or if the LCM provider encounters an
internal errorboolean activable(LCModelState lcModelState) throws CSAppFrameworkException
lcModelState
- The LCModelState
which should be checkedCSAppFrameworkException
CSAppFrameworkException
- If lcModelState cannot be activated or if the LCM provider encounters an internal errorLCModel createVersion() throws CSAppFrameworkException
LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorLCState createLCState() throws CSAppFrameworkException
LCState
objectCSAppFrameworkException
- -
if the LCM provider encounters an internal errorboolean isInactive()
boolean isActive()
boolean isSuperseded()
boolean isRetired()
java.lang.String getKey() throws CSAppFrameworkException
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorLCAwareClassificationScheme getModelClassificationScheme() throws CSAppFrameworkException
LCAwareClassificationScheme
instanceCSAppFrameworkException
- -
if the LCM provider encounters an internal errorvoid setLCState(LCState targetState) throws CSAppFrameworkException
targetState
- The target LCState
to which this model should change toCSAppFrameworkException
- If the LCM provider encounters an internal error