Constructor and Description |
---|
LCModelImpl(com.centrasite.lcmapi.LCModel genericModel,
RegistryProvider registryProvider,
BeanPool beanPool)
Constructor for creating
LCModel objects. |
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 lcModelState)
Deprecated.
|
void |
setOrganization(Organization organization,
boolean global)
Set the organization for this model.
|
void |
validate()
Validates this LCModel.
|
public LCModelImpl(com.centrasite.lcmapi.LCModel genericModel, RegistryProvider registryProvider, BeanPool beanPool) throws CSAppFrameworkException
LCModel
objects.genericModel
- The LCModel
generic objectregistryProvider
- The RegistryProvider
instancebeanPool
- The BeanPool
instanceCSAppFrameworkException
- If LCM provider encounters an internal errorpublic java.lang.String getDisplayName() throws CSAppFrameworkException
LCModel
getDisplayName
in interface LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic java.lang.String getDescription() throws CSAppFrameworkException
LCModel
getDescription
in interface LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic java.util.Collection<java.lang.String> getEnabledTypes() throws CSAppFrameworkException
LCModel
getEnabledTypes
in interface LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic LCState getInitialState() throws CSAppFrameworkException
LCModel
getInitialState
in interface LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic Organization getOrganization() throws CSAppFrameworkException
LCModel
getOrganization
in interface LCModel
Organization
the LCModel belongs toCSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic java.util.Collection<LCState> getStates() throws CSAppFrameworkException
LCModel
getStates
in interface LCModel
LCState
s as a Collection
, cannot be nullCSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void setDisplayName(java.lang.String displayName) throws CSAppFrameworkException
LCModel
setDisplayName
in interface LCModel
displayName
- The display name to set for the modelCSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void setDescription(java.lang.String description) throws CSAppFrameworkException
LCModel
setDescription
in interface LCModel
description
- The description to be set for the modelCSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void setOrganization(Organization organization, boolean global) throws CSAppFrameworkException
LCModel
setOrganization
in interface LCModel
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 errorpublic boolean addStates(java.util.Collection<LCState> states) throws CSAppFrameworkException
LCModel
addStates
in interface LCModel
states
- Collection
of LCState
s to be added to this LCModelCSAppFrameworkException
- if the LCM provider encounters an internal errorpublic boolean addEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys) throws CSAppFrameworkException
LCModel
addEnabledTypes
in interface LCModel
registryTypeKeys
- Collection
of keys for the types to be enabled for this LCModelCSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic boolean addEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys, boolean enableAsLCMforLCM) throws CSAppFrameworkException
LCModel
addEnabledTypes
in interface LCModel
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 errorpublic boolean removeState(LCState state) throws CSAppFrameworkException
LCModel
removeState
in interface LCModel
state
- The LCState
that has to be removed from this LCModelCSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void setInitialState(LCState state) throws CSAppFrameworkException
LCModel
setInitialState
in interface LCModel
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 methodpublic void setModelState(LCModelState lcModelState) throws CSAppFrameworkException
setModelState
in interface LCModel
lcModelState
- - LCModelState to be setCSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic boolean activable(LCModelState lcModelState) throws CSAppFrameworkException
LCModel
activable
in interface LCModel
lcModelState
- The LCModelState
which should be checkedCSAppFrameworkException
CSAppFrameworkException
- If lcModelState cannot be activated or if the LCM provider encounters an internal errorpublic boolean removeEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys) throws CSAppFrameworkException
LCModel
removeEnabledTypes
in interface LCModel
registryTypeKeys
- Collection
of registry type keys that can be removed for LCMCSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic boolean removeEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys, boolean disableAsLCMforLCM) throws CSAppFrameworkException
LCModel
removeEnabledTypes
in interface LCModel
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 errorpublic boolean isGlobal() throws CSAppFrameworkException
LCModel
isGlobal
in interface LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic boolean isLCMForLCM() throws CSAppFrameworkException
LCModel
isLCMForLCM
in interface LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void validate() throws CSAppFrameworkException
LCModel
validate
in interface LCModel
CSAppFrameworkException
- -
if the validation fails or if the LCM provider encounters an
internal errorpublic LCState createLCState() throws CSAppFrameworkException
LCModel
createLCState
in interface LCModel
LCState
objectCSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic LCModel createVersion() throws CSAppFrameworkException
LCModel
createVersion
in interface LCModel
LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic boolean isActive()
LCModel
public boolean isInactive()
LCModel
isInactive
in interface LCModel
public boolean isRetired()
LCModel
public boolean isSuperseded()
LCModel
isSuperseded
in interface LCModel
public java.lang.String getKey() throws CSAppFrameworkException
LCModel
getKey
in interface LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic LCAwareClassificationScheme getModelClassificationScheme() throws CSAppFrameworkException
LCModel
getModelClassificationScheme
in interface LCModel
LCAwareClassificationScheme
instanceCSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void setLCState(LCState targetState) throws CSAppFrameworkException
LCModel
setLCState
in interface LCModel
targetState
- The target LCState
to which this model should change toCSAppFrameworkException
- If the LCM provider encounters an internal error