com.metamatrix.common.config.model
Class BasicUtil

java.lang.Object
  extended by com.metamatrix.common.config.model.BasicUtil

public class BasicUtil
extends java.lang.Object

Since:
4.2

Constructor Summary
BasicUtil()
           
 
Method Summary
static BasicComponentDefn createComponentDefn(int defnTypeCode, ConfigurationID configID, ComponentTypeID typeID, java.lang.String defnName)
          static method that is used to create the specified instance type of BasicComponentDefn.
static BasicComponentDefn createComponentDefn(int defnTypeCode, ConfigurationID configID, HostID hostID, ComponentTypeID typeID, java.lang.String defnName)
           
static BasicComponentObject createComponentObject(int defnTypeCode, ComponentTypeID typeID, java.lang.String objName)
          static method that is used to create the specified instance type of BasicComponentObject for a PSC.
static BasicComponentType createComponentType(int classTypeCode, java.lang.String name, ComponentTypeID parentID, ComponentTypeID superID, boolean deployable, boolean monitored)
          static method that is used to create the specified instance type of BasicComponentType.
static BasicDeployedComponent createDeployedComponent(java.lang.String name, ConfigurationID configID, HostID hostID, VMComponentDefnID vmID, ServiceComponentDefnID svcID, ComponentTypeID typeID)
           
static BasicDeployedComponent createDeployedVMComponent(java.lang.String name, ConfigurationID configID, HostID hostID, VMComponentDefnID vmID, ComponentTypeID vmtypeID)
           
static int getComponentDefnType(BaseObject defn)
           
static int getComponentType(BaseObject defn)
           
static ConfigurationObjectEditor getEditor()
          Returns a COnfigurationObjectEditor that does not create actions.
static boolean isValdComponentTypeCode(int code)
           
static ComponentObject setCreationChangedHistory(ComponentObject defn, java.lang.String createdBy, java.lang.String creationDate)
           
static ComponentType setCreationChangedHistory(ComponentType type, java.lang.String createdBy, java.lang.String creationDate)
           
static ComponentObject setLastChangedHistory(ComponentObject defn, java.lang.String lastChangedBy, java.lang.String lastChangedDate)
           
static ComponentType setLastChangedHistory(ComponentType type, java.lang.String lastChangedBy, java.lang.String lastChangedDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicUtil

public BasicUtil()
Method Detail

getEditor

public static ConfigurationObjectEditor getEditor()
Returns a COnfigurationObjectEditor that does not create actions. This editor, because it doesn't maintain any state, is sharable for reuse.

Returns:
Since:
4.3

createComponentDefn

public static final BasicComponentDefn createComponentDefn(int defnTypeCode,
                                                           ConfigurationID configID,
                                                           ComponentTypeID typeID,
                                                           java.lang.String defnName)
static method that is used to create the specified instance type of BasicComponentDefn.

Parameters:
defnTypeCode - identifies the type of class this component defn should represent
configID - is the ConfigurationID identifying what configuration this defn belongs
typeID - is the ComponentTypeID identifying this new created BasicComponentType
defnName - is the name of the component defn
Returns:
BasicComponentDefn
See Also:
for type codes

createComponentDefn

public static final BasicComponentDefn createComponentDefn(int defnTypeCode,
                                                           ConfigurationID configID,
                                                           HostID hostID,
                                                           ComponentTypeID typeID,
                                                           java.lang.String defnName)

createComponentObject

public static final BasicComponentObject createComponentObject(int defnTypeCode,
                                                               ComponentTypeID typeID,
                                                               java.lang.String objName)
static method that is used to create the specified instance type of BasicComponentObject for a PSC.

Parameters:
defnTypeCode - identifies the type of class this component defn should represent
configID - is the ConfigurationID identifying what configuration this defn belongs
typeID - is the ComponentTypeID identifying this new created BasicComponentType
defnName - is the name of the component defn
Returns:
BasicComponentObject
See Also:
for type codes

createComponentType

public static BasicComponentType createComponentType(int classTypeCode,
                                                     java.lang.String name,
                                                     ComponentTypeID parentID,
                                                     ComponentTypeID superID,
                                                     boolean deployable,
                                                     boolean monitored)
static method that is used to create the specified instance type of BasicComponentType.

Parameters:
classTypeCode - identifies the type of class this component type should represent
typeID - is the ComponentTypeID identifying this new created BasicComponentType
parentID - is the component type that is the parent
superID - is the component type that is a super class of this component type
deployable - is a boolean indicating if the type can be deployed in a configuration
monitored - is a boolean insdicating if the type is to be monitored
Returns:
BasicComponentType
See Also:
or @see ComponentObject for type codes

createDeployedComponent

public static BasicDeployedComponent createDeployedComponent(java.lang.String name,
                                                             ConfigurationID configID,
                                                             HostID hostID,
                                                             VMComponentDefnID vmID,
                                                             ServiceComponentDefnID svcID,
                                                             ComponentTypeID typeID)

createDeployedVMComponent

public static BasicDeployedComponent createDeployedVMComponent(java.lang.String name,
                                                               ConfigurationID configID,
                                                               HostID hostID,
                                                               VMComponentDefnID vmID,
                                                               ComponentTypeID vmtypeID)

getComponentType

public static int getComponentType(BaseObject defn)

getComponentDefnType

public static int getComponentDefnType(BaseObject defn)

isValdComponentTypeCode

public static boolean isValdComponentTypeCode(int code)

setLastChangedHistory

public static ComponentType setLastChangedHistory(ComponentType type,
                                                  java.lang.String lastChangedBy,
                                                  java.lang.String lastChangedDate)

setCreationChangedHistory

public static ComponentType setCreationChangedHistory(ComponentType type,
                                                      java.lang.String createdBy,
                                                      java.lang.String creationDate)

setLastChangedHistory

public static ComponentObject setLastChangedHistory(ComponentObject defn,
                                                    java.lang.String lastChangedBy,
                                                    java.lang.String lastChangedDate)

setCreationChangedHistory

public static ComponentObject setCreationChangedHistory(ComponentObject defn,
                                                        java.lang.String createdBy,
                                                        java.lang.String creationDate)


Copyright © 2009. All Rights Reserved.