|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.common.config.model.ConfigurationObjectEditorHelper
public class ConfigurationObjectEditorHelper
The ConfigurationObjectEditorHelper provides methods that do not deal with actions. This is new for the implementation of using configuration models
Field Summary | |
---|---|
static int |
ADD
The command to signify addition of an attribute. |
static int |
REMOVE
The command to signify removal of an attribute. |
static boolean |
set
|
static int |
SET
The command to signify setting of an attribute. |
Constructor Summary | |
---|---|
ConfigurationObjectEditorHelper()
|
Method Summary | |
---|---|
static Configuration |
addAuthenticationProviderComponent(Configuration t,
AuthenticationProvider provider)
|
static Configuration |
addComponentDefn(Configuration t,
ComponentDefn defn)
|
static Configuration |
addConfigurationComponentDefn(Configuration t,
ComponentDefn defn)
|
static Configuration |
addConfigurationDeployedComponent(Configuration t,
DeployedComponent deployedComponent)
|
static Configuration |
addConfigurationHostComponent(Configuration t,
Host host)
|
static Configuration |
addDeployedComponent(Configuration t,
DeployedComponent deployComponent)
|
static Configuration |
addHostComponent(Configuration t,
Host host)
|
static ComponentObject |
addProperty(ComponentObject t,
java.lang.String name,
java.lang.String value)
|
static ProductServiceConfig |
addServiceComponentDefn(ProductServiceConfig psc,
ServiceComponentDefnID serviceComponentDefnID)
Adds an existing ServiceComponentDefn to indicated PSC. |
static ProductType |
addServiceComponentType(ProductType productType,
ComponentType serviceComponentType)
Adds the service type represented by the indicated ComponentType to the list of legal service types of the indicated ProductType. |
static Host |
createHost(Configuration config,
java.lang.String hostName)
|
static Configuration |
delete(ComponentObjectID targetID,
Configuration configuration)
|
static java.util.Properties |
getEditableProperties(ComponentObject t)
|
static ComponentObject |
modifyProperties(ComponentObject t,
java.util.Properties props,
int command)
|
static ComponentObject |
removeProperty(ComponentObject t,
java.lang.String name)
|
static ProductType |
removeServiceComponentType(ProductType productType,
ComponentType serviceComponentType)
Removes the service type represented by the indicated ComponentType from the list of legal service types of the indicated ProductType. |
static ProductServiceConfig |
resetServices(ProductServiceConfig psc)
|
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 void |
setEnabled(ServiceComponentDefnID serviceComponentDefnID,
ProductServiceConfig psc,
boolean enabled)
This is a lighterweight version of the other setEnabled
method. |
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)
|
protected static ComponentType |
setParentComponentTypeID(ComponentType t,
ComponentTypeID parentID)
|
static ComponentObject |
setProperty(ComponentObject t,
java.lang.String name,
java.lang.String value)
|
static void |
setRoutingUUID(ServiceComponentDefn serviceComponentDefn,
java.lang.String newRoutingUUID)
Sets this ServiceComponentDefn's String routing UUID. |
protected static java.lang.Object |
verifyTargetClass(java.lang.Object target,
java.lang.Class requiredClass)
Subclass helper method that simply verifies that the specified target is either an instance of the specified class (or interface). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SET
public static final int ADD
public static final int REMOVE
public static boolean set
Constructor Detail |
---|
public ConfigurationObjectEditorHelper()
Method Detail |
---|
public static Host createHost(Configuration config, java.lang.String hostName) throws ConfigurationException
ConfigurationException
public static ComponentType setLastChangedHistory(ComponentType type, java.lang.String lastChangedBy, java.lang.String lastChangedDate)
public static ComponentType setCreationChangedHistory(ComponentType type, java.lang.String createdBy, java.lang.String creationDate)
public static ComponentObject setLastChangedHistory(ComponentObject defn, java.lang.String lastChangedBy, java.lang.String lastChangedDate)
public static ComponentObject setCreationChangedHistory(ComponentObject defn, java.lang.String createdBy, java.lang.String creationDate)
public static void setRoutingUUID(ServiceComponentDefn serviceComponentDefn, java.lang.String newRoutingUUID)
serviceComponentDefn
- ServiceComponentDefn to have it's routing
UUID modified - this instance will be locally modified, and an action
will also be created for execution as a transaction later onnewRoutingUUID
- new String routing UUID for the indicated
ServiceComponentDefnpublic static void setEnabled(ServiceComponentDefnID serviceComponentDefnID, ProductServiceConfig psc, boolean enabled)
setEnabled
method. It simply modifies the ServiceComponentDefn parameter and
creates the necessary change object. It cannot update the
Configuration of the ServiceComponentDefn, nor can it automatically
delete any DeployedComponents of the ServiceComponentDefn parameter,
if the ServiceComponentDefn is being disabled. This method is only
needed by the JDBC spi and maybe the import/export tool.
public static Configuration addHostComponent(Configuration t, Host host)
public static ProductServiceConfig addServiceComponentDefn(ProductServiceConfig psc, ServiceComponentDefnID serviceComponentDefnID)
psc
- ProductServiceConfig to have service comp defn added toserviceComponentDefnID
- will be added to the indicated
ProductServiceConfiguration (and removed from any PSC it previously
belonged to).public static Configuration addComponentDefn(Configuration t, ComponentDefn defn)
public static Configuration addDeployedComponent(Configuration t, DeployedComponent deployComponent)
public static ComponentObject addProperty(ComponentObject t, java.lang.String name, java.lang.String value)
public static ComponentObject setProperty(ComponentObject t, java.lang.String name, java.lang.String value)
public static ProductServiceConfig resetServices(ProductServiceConfig psc)
public static ComponentObject removeProperty(ComponentObject t, java.lang.String name)
public static ComponentObject modifyProperties(ComponentObject t, java.util.Properties props, int command)
public static Configuration delete(ComponentObjectID targetID, Configuration configuration) throws ConfigurationException
ConfigurationException
public static ProductType addServiceComponentType(ProductType productType, ComponentType serviceComponentType)
productType
- ProductType to have a new service type added toserviceComponentType
- ComponentType to be added to the
ProductTypeprotected static ComponentType setParentComponentTypeID(ComponentType t, ComponentTypeID parentID)
public static ProductType removeServiceComponentType(ProductType productType, ComponentType serviceComponentType)
productType
- ProductType to have the service type taken fromserviceComponentType
- ComponentType to be taken from the
ProductTypepublic static Configuration addConfigurationComponentDefn(Configuration t, ComponentDefn defn)
public static Configuration addConfigurationDeployedComponent(Configuration t, DeployedComponent deployedComponent)
public static Configuration addConfigurationHostComponent(Configuration t, Host host)
public static Configuration addAuthenticationProviderComponent(Configuration t, AuthenticationProvider provider)
public static java.util.Properties getEditableProperties(ComponentObject t)
protected static java.lang.Object verifyTargetClass(java.lang.Object target, java.lang.Class requiredClass) throws java.lang.IllegalArgumentException
target
- the target or target identifier.requiredClass
- the class/interface that the target must be an instance of.
java.lang.IllegalArgumentException
- if either the target is not an instance of the specified class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |