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
.
Modifier and Type | Method and Description |
---|---|
IComponent |
getComponent()
A factory method to create the component from this IComponentData.
|
String |
getComponentClassName()
Gets the classname for the
IComponent which can be used in calls to ObjectUtil.createObject(java.lang.String) . |
Element |
getConfig()
Gets the config element for this
IComponent . |
String |
getConfigFile()
Get
configFile attribute value. |
String |
getConfigStream()
Gets config data as raw String stream
|
boolean |
getEnabled()
Gets whether this
IComponent is enabled or not. |
Map<String,Object> |
getProperties()
Gets the properties for this
IComponent . |
IURI |
getURI() |
void |
setComponent(IComponent component)
If for some reason you want to create and initialize an
IComponent externally
Use only with caution, or not at all. |
void |
setComponentClassName(String className)
Sets the implementation class name for the
IComponent . |
void |
setConfig(Element configElement)
Sets the config element for this
IComponent . |
void |
setConfigFile(String configFile)
Set the value of
configFile |
void |
setConfigStream(String config)
Sets component data as raw String stream
|
void |
setEnabled(boolean enabled)
Sets whether this
IComponent is enabled |
DifferenceMap |
setProperties(Map<String,? extends Object> properties)
Sets the properties for this
IComponent . |
IURI getURI() throws PortalException
IComponentData
PortalException
String getComponentClassName() throws PortalException
IComponent
which can be used in calls to ObjectUtil.createObject(java.lang.String)
.ObjectUtil.createObject(java.lang.String)
.PortalException
void setComponentClassName(String className) throws PortalException
IComponent
.className
- a valid string for calls to ObjectUtil.createObject(java.lang.String)
.PortalException
boolean getEnabled() throws PortalException
IComponent
is enabled or not.PortalException
void setEnabled(boolean enabled) throws PortalException
IComponent
is enabledenabled
- PortalException
Element getConfig() throws PortalException
IComponent
.PortalException
void setConfig(Element configElement) throws PortalException
IComponent
.configElement
- PortalException
String getConfigStream() throws PortalException
PortalException
void setConfigStream(String config) throws PortalException
config
- PortalException
Map<String,Object> getProperties() throws PortalException
IComponent
.PortalException
DifferenceMap setProperties(Map<String,? extends Object> properties) throws PortalException
IComponent
.properties
- PortalException
IComponent getComponent() throws PortalException
IComponent
if it hasn't already been initializedIComponent
PortalException
void setComponent(IComponent component)
IComponent
externally
Use only with caution, or not at all.component
- a valid IComponent
.String getConfigFile() throws PortalException
configFile
attribute value.PortalException
getConfig()
void setConfigFile(String configFile) throws PortalException
configFile
configFile
- PortalException