Package com.webmethods.portal.system
Interface IComponentData
- All Known Subinterfaces:
IBizPolicyData
,IHandlerData
,IMechanicsData
,IPortletInfo
,IThingComponentData
- All Known Implementing Classes:
OsgiServiceComponentData
public interface IComponentData
The IComponentData implements the storage for an IComponent
. This relieves the IComponent
from
having to persist its own metadata, and provides a separation from the management of that metadata and the actual
implementation of the IComponent
.
-
Method Summary
Modifier and TypeMethodDescriptionA factory method to create the component from this IComponentData.Gets the classname for theIComponent
which can be used in calls toObjectUtil.createObject(java.lang.String)
.Gets the config element for thisIComponent
.GetconfigFile
attribute value.Gets config data as raw String streamboolean
Gets whether thisIComponent
is enabled or not.Gets the properties for thisIComponent
.getURI()
void
setComponent
(IComponent component) If for some reason you want to create and initialize anIComponent
externally Use only with caution, or not at all.void
setComponentClassName
(String className) Sets the implementation class name for theIComponent
.void
Sets the config element for thisIComponent
.void
setConfigFile
(String configFile) Set the value ofconfigFile
void
setConfigStream
(String config) Sets component data as raw String streamvoid
setEnabled
(boolean enabled) Sets whether thisIComponent
is enabledsetProperties
(Map<String, ? extends Object> properties) Sets the properties for thisIComponent
.
-
Method Details
-
getURI
- Returns:
- a unique URI which describes this
IComponentData
- Throws:
PortalException
-
getComponentClassName
Gets the classname for theIComponent
which can be used in calls toObjectUtil.createObject(java.lang.String)
.- Returns:
- a valid string for calls to
ObjectUtil.createObject(java.lang.String)
. - Throws:
PortalException
-
setComponentClassName
Sets the implementation class name for theIComponent
.- Parameters:
className
- a valid string for calls toObjectUtil.createObject(java.lang.String)
.- Throws:
PortalException
-
getEnabled
Gets whether thisIComponent
is enabled or not.- Returns:
- true if enabled, false otherwise
- Throws:
PortalException
-
setEnabled
Sets whether thisIComponent
is enabled- Parameters:
enabled
-- Throws:
PortalException
-
getConfig
Gets the config element for thisIComponent
.- Returns:
- Either the config element, or NULL if it is properties based
- Throws:
PortalException
-
setConfig
Sets the config element for thisIComponent
.- Parameters:
configElement
-- Throws:
PortalException
-
getConfigStream
Gets config data as raw String stream- Returns:
- Throws:
PortalException
-
setConfigStream
Sets component data as raw String stream- Parameters:
config
-- Throws:
PortalException
-
getProperties
Gets the properties for thisIComponent
.- Returns:
- properties, or simple Element attributes if this is element based
- Throws:
PortalException
-
setProperties
Sets the properties for thisIComponent
.- Parameters:
properties
-- Throws:
PortalException
-
getComponent
A factory method to create the component from this IComponentData. This will also initialize theIComponent
if it hasn't already been initialized- Returns:
- an initialized
IComponent
- Throws:
PortalException
-
setComponent
If for some reason you want to create and initialize anIComponent
externally Use only with caution, or not at all.- Parameters:
component
- a validIComponent
.
-
getConfigFile
GetconfigFile
attribute value.- Throws:
PortalException
- See Also:
-
setConfigFile
Set the value ofconfigFile
- Parameters:
configFile
-- Throws:
PortalException
-