|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.centrasite.appl.framework.lcm.impl.LCModelImpl
public class LCModelImpl
This implementation offers CRUD (Create, Read, Update, Delete) functionality for LCState objects, and all the necessary operations for managing a LCmodel object
Constructor Summary | |
---|---|
LCModelImpl(com.centrasite.lcmapi.LCModel genericModel,
RegistryProvider registryProvider,
BeanPool beanPool)
Constructor for creating LCState objects |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LCModelImpl(com.centrasite.lcmapi.LCModel genericModel, RegistryProvider registryProvider, BeanPool beanPool) throws CSAppFrameworkException
genericModel
- registryProvider
- beanPool
-
CSAppFrameworkException
javax.xml.registry.JAXRException
Method Detail |
---|
public 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
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic java.util.Collection<LCState> getStates() throws CSAppFrameworkException
LCModel
getStates
in interface LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void setDisplayName(java.lang.String displayName) throws CSAppFrameworkException
LCModel
setDisplayName
in interface LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void setDescription(java.lang.String description) throws CSAppFrameworkException
LCModel
setDescription
in interface LCModel
description
- to be set
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void setOrganization(Organization organization, boolean global) throws CSAppFrameworkException
LCModel
setOrganization
in interface LCModel
organization
- for the model
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic boolean addStates(java.util.Collection<LCState> states) throws CSAppFrameworkException
LCModel
addStates
in interface LCModel
states
- to be added to this LCModel
CSAppFrameworkException
public boolean addEnabledTypes(java.util.Collection<java.lang.String> registryTypeKeys) throws CSAppFrameworkException
LCModel
addEnabledTypes
in interface LCModel
registryTypeKeys
- of the types to be enabled for this LCModel
CSAppFrameworkException
- -
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
- of the types to be enabled for this LCModelenableAsLCMforLCM
- to be enabled as LCM for LCModels
CSAppFrameworkException
- -
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 LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void setInitialState(LCState state) throws CSAppFrameworkException
LCModel
setInitialState
in interface LCModel
state
- to be set as the initial state for this model
CSAppFrameworkException
- 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 set
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic boolean activable(LCModelState lcModelState) throws CSAppFrameworkException
LCModel
activable
in interface LCModel
CSAppFrameworkException
public 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 LCM
CSAppFrameworkException
- -
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
- to be disabled as LCM for LCModels
CSAppFrameworkException
- -
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
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic LCModel createVersion() throws CSAppFrameworkException
LCModel
createVersion
in interface LCModel
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic boolean isActive()
LCModel
isActive
in interface LCModel
public boolean isInactive()
LCModel
isInactive
in interface LCModel
public boolean isRetired()
LCModel
isRetired
in interface 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
CSAppFrameworkException
- -
if the LCM provider encounters an internal errorpublic void setLCState(LCState targetState) throws CSAppFrameworkException
LCModel
setLCState
in interface LCModel
CSAppFrameworkException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |