com.centrasite.lcmapi
Interface LCMAdminManager


public interface LCMAdminManager

The LCMAdminManager provides all operations for the create, modify and delete of LCNodes - Machines within a Lifecycle Management model LCModels - State models for Lifecycle Management, models can theoretically be complex and go across multiple machines and LCStates and LCStates


Method Summary
 LCMNode createLCMNode()
          Creates an LCMNode
 LCModel createLCModel()
          Creates an LCModel
 LCState createLCState()
          Creates an LCState
 LCModel createVersion(LCModel lcModel)
          Creates a new version of a given LCModel
 void deleteLCMNode(LCMNode lcmNode)
          Deletes the given LCMNode
 void deleteLCModel(LCModel lcModel)
          Deletes the given LCModel.
 void deleteLCModel(LCModel lcModel, boolean purge)
          Deletes the given LCModel.
 void saveLCMNode(LCMNode lcmNode)
          Saves the given LCMNode
 void saveLCModel(LCModel lcModel)
          Saves the given LCModel
 void saveLCModel(LCModel lcModel, boolean isNewVersion)
          Saves the given LCModel Additionally if this model is a new version of an older model, copies the policies associated to the old version states to the newer version
 

Method Detail

createLCMNode

LCMNode createLCMNode()
                      throws LCMException
Creates an LCMNode

Returns:
the new LCMNode object
Throws:
LCMException - - if the LCM provider encounters an internal error

createLCModel

LCModel createLCModel()
                      throws LCMException
Creates an LCModel

Returns:
the new LCModel object
Throws:
LCMException - - if the LCM provider encounters an internal error

createVersion

LCModel createVersion(LCModel lcModel)
                      throws LCMException
Creates a new version of a given LCModel

Parameters:
lcModel - for which the new version is to be created
Returns:
the new version of the lcModel
Throws:
LCMException - - if the LCM provider encounters an internal error

createLCState

LCState createLCState()
                      throws LCMException
Creates an LCState

Returns:
the new LCState object
Throws:
LCMException - - if the LCM provider encounters an internal error

deleteLCMNode

void deleteLCMNode(LCMNode lcmNode)
                   throws LCMException
Deletes the given LCMNode

Parameters:
lcmNode - the lcmNode to be deleted
Throws:
LCMException - - if the LCM provider encounters an internal error

deleteLCModel

void deleteLCModel(LCModel lcModel)
                   throws LCMException
Deletes the given LCModel. An LCModel can be deleted only when it is not active

Parameters:
lcModel - the lcModel to be deleted
Throws:
LCMException - - if the LCM provider encounters an internal error

deleteLCModel

void deleteLCModel(LCModel lcModel,
                   boolean purge)
                   throws LCMException
Deletes the given LCModel. An LCModel can be deleted only when it is not active Note: Please DO NOT USE this operation in POLICY implementation

Parameters:
lcModel - the lcModel to be deleted
purge - If 'yes' then all the versions of the Lifecycle Model will be deleted. Otherwise deletes only the latest version of the Lifecycle Model
Throws:
LCMException - - if the LCM provider encounters an internal error

saveLCMNode

void saveLCMNode(LCMNode lcmNode)
                 throws LCMException
Saves the given LCMNode

Parameters:
lcmNode - the LCMNode to be saved
Throws:
LCMException - - if the LCM provider encounters an internal error

saveLCModel

void saveLCModel(LCModel lcModel)
                 throws LCMException
Saves the given LCModel

Parameters:
lcModel - the LCModel to be saved
Throws:
LCMException - - if the LCM provider encounters an internal error

saveLCModel

void saveLCModel(LCModel lcModel,
                 boolean isNewVersion)
                 throws LCMException
Saves the given LCModel Additionally if this model is a new version of an older model, copies the policies associated to the old version states to the newer version

Parameters:
lcModel - the LCModel to be saved
Throws:
LCMException - - if the LCM provider encounters an internal error