com.metamatrix.common.config.model
Class BasicProductServiceConfig

java.lang.Object
  extended by com.metamatrix.common.namedobject.BasicObject
      extended by com.metamatrix.common.config.model.BasicComponentObject
          extended by com.metamatrix.common.config.model.BasicComponentDefn
              extended by com.metamatrix.common.config.model.BasicProductServiceConfig
All Implemented Interfaces:
ComponentDefn, ComponentObject, ProductServiceConfig, BaseObject, PropertiedObject, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class BasicProductServiceConfig
extends BasicComponentDefn
implements ProductServiceConfig, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.metamatrix.common.config.api.ProductServiceConfig
PSC_COMPONENT_TYPE_ID
 
Fields inherited from interface com.metamatrix.common.config.api.ComponentDefn
AUTHPROVIDER_COMPONENT_CODE, CONFIGURATION_COMPONENT_CODE, CONNECTOR_COMPONENT_CODE, DEPLOYED_COMPONENT_CODE, HOST_COMPONENT_CODE, PRODUCT_COMPONENT_CODE, PSC_COMPONENT_CODE, RESOURCE_DESCRIPTOR_COMPONENT_CODE, SERVICE_COMPONENT_CODE, SHARED_RESOURCE_COMPONENT_CODE, VM_COMPONENT_CODE
 
Constructor Summary
protected BasicProductServiceConfig(BasicProductServiceConfig psc)
           
  BasicProductServiceConfig(ConfigurationID configurationID, ProductServiceConfigID componentID, ProductTypeID productTypeID)
           
 
Method Summary
 java.lang.Object clone()
          Return a deep cloned instance of this object.
 boolean containsService(ServiceComponentDefnID serviceID)
          Indicates if the service belongs to this PSC.
 java.util.Collection getServiceComponentDefnIDs()
          Returns a cloned Collection of ServiceComponentDefnID objects, which represent the service component definitions that are contained by this product service configuration.
 boolean isServiceEnabled(ServiceComponentDefnID serviceID)
          Indicates if this Service Definition is enabled within the PSC that contains it; "enabled" refers to it being enabled for deployment, if the containing PSC is deployed.
 void setServiceEnabled(ServiceComponentDefnID serviceID, boolean isEnabled)
           
 
Methods inherited from class com.metamatrix.common.config.model.BasicComponentDefn
getConfigurationID, isDependentUpon, isEnabled, isEssential
 
Methods inherited from class com.metamatrix.common.config.model.BasicComponentObject
accept, getComponentTypeID, getCreatedBy, getCreatedDate, getCreatedDateString, getDescription, getLastChangedBy, getLastChangedDate, getLastChangedDateString, getProperties, getProperty, setCreatedBy, setCreatedDate, setDescription, setLastChangedBy, setLastChangedDate, toString
 
Methods inherited from class com.metamatrix.common.namedobject.BasicObject
compareTo, equals, getFullName, getID, getName, hashCode, setID
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.common.config.api.ProductServiceConfig
accept
 
Methods inherited from interface com.metamatrix.common.config.api.ComponentDefn
getConfigurationID, isEnabled, isEssential
 
Methods inherited from interface com.metamatrix.common.config.api.ComponentObject
getComponentTypeID, getCreatedBy, getCreatedDate, getDescription, getLastChangedBy, getLastChangedDate, getName, getProperties, getProperty, isDependentUpon
 
Methods inherited from interface com.metamatrix.common.namedobject.BaseObject
getFullName, getID
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

BasicProductServiceConfig

public BasicProductServiceConfig(ConfigurationID configurationID,
                                 ProductServiceConfigID componentID,
                                 ProductTypeID productTypeID)

BasicProductServiceConfig

protected BasicProductServiceConfig(BasicProductServiceConfig psc)
Method Detail

isServiceEnabled

public boolean isServiceEnabled(ServiceComponentDefnID serviceID)
Description copied from interface: ProductServiceConfig
Indicates if this Service Definition is enabled within the PSC that contains it; "enabled" refers to it being enabled for deployment, if the containing PSC is deployed.

Specified by:
isServiceEnabled in interface ProductServiceConfig
Returns:
boolean indicating if this service definition will be deployed if the PSC which contains it is deployed

setServiceEnabled

public void setServiceEnabled(ServiceComponentDefnID serviceID,
                              boolean isEnabled)

containsService

public boolean containsService(ServiceComponentDefnID serviceID)
Description copied from interface: ProductServiceConfig
Indicates if the service belongs to this PSC.

Specified by:
containsService in interface ProductServiceConfig

getServiceComponentDefnIDs

public java.util.Collection getServiceComponentDefnIDs()
Returns a cloned Collection of ServiceComponentDefnID objects, which represent the service component definitions that are contained by this product service configuration.

Specified by:
getServiceComponentDefnIDs in interface ProductServiceConfig

clone

public java.lang.Object clone()
Return a deep cloned instance of this object. Subclasses must override this method.

Specified by:
clone in interface BaseObject
Overrides:
clone in class BasicObject
Returns:
the object that is the clone of this instance.


Copyright © 2009. All Rights Reserved.