public class ComponentImpl extends AbstractRenderableModelObject implements Component
PROP_PROCESSORcustomProperties, description, descriptionId, id, info, modelProperties, modificationTime, resourceContainer, title, titleIdPROP_CHROME, PROP_COMPONENT_TYPE_ID, PROP_GUID, PROP_INDEX, PROP_REGION_ID, PROP_SCOPE, PROP_SOURCE_ID, PROP_URI, PROP_URL, TYPE_IDPROP_DESCRIPTION, PROP_DESCRIPTION_ID, PROP_ID, PROP_TITLE, PROP_TITLE_ID| Constructor and Description |
|---|
ComponentImpl(String id,
ModelPersisterInfo key,
org.dom4j.Document document)
Instantiates a new component for a given XML document.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Component o) |
String |
getChrome()
Gets the chrome.
|
ComponentType |
getComponentType(RequestContext context)
Gets the component type.
|
String |
getComponentTypeId()
Gets the component type id.
|
String |
getGUID()
Gets the GUID.
|
String |
getIndex()
Gets the index of the component.
|
String |
getRegionId()
Gets the region id.
|
org.springframework.extensions.webscripts.WebScript |
getResolvedWebScript()
Return the WebScript that was resolved to render this component (this will only
be available during rendering) it will return null if the component is not backed
by a WebScript.
|
String |
getScope()
Gets the scope.
|
String |
getSourceId()
Gets the source id.
|
Object |
getSourceObject(RequestContext context)
Gets the source object.
|
String |
getTypeId()
Returns the type id of the model object.
|
String |
getURI()
Gets the URI
|
String |
getURL()
Gets the URL.
|
protected void |
regenerateId()
Regenerate the ID for this component
|
void |
setChrome(String chrome)
Sets the chrome.
|
void |
setComponentTypeId(String componentTypeId)
Sets the component type id.
|
void |
setGUID(String guid)
Sets the GUID.
|
void |
setId(String id)
Allows for reassignment of the id of the object
|
void |
setIndex(String index)
Sets the index of the component.
|
void |
setRegionId(String regionId)
Sets the region id.
|
void |
setResolvedWebScript(org.springframework.extensions.webscripts.WebScript webScript)
Store the WebScript resolved for this component (this will only be set if the
Component is backed by a WebScript).
|
void |
setScope(String scope)
Sets the scope.
|
void |
setSourceId(String sourceId)
Sets the source id.
|
void |
setURI(String uri)
Sets the URI.
|
void |
setURL(String url)
Sets the URL.
|
getProcessorId, getProcessorId, getProcessorProperties, getProcessorProperties, getProcessorProperty, getProcessorProperty, getRenderModesaddResource, addResource, getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModificationTime, getPersisterId, getProperties, getProperty, getResource, getResourceContainer, getResources, getResourcesMap, getStoragePath, getTitle, getTitleId, isCustomProperty, isModelProperty, isSaved, removeCustomProperty, removeModelProperty, removeProperty, removeResource, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setModificationTime, setProperty, setTitle, setTitleId, toString, touch, toXML, updateResource, updateXMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModificationTime, getPersisterId, getProperties, getProperty, getStoragePath, getTitle, getTitleId, isSaved, removeCustomProperty, removeModelProperty, removeProperty, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setProperty, setTitle, setTitleId, touch, toXMLpublic ComponentImpl(String id, ModelPersisterInfo key, org.dom4j.Document document)
document - the documentpublic String getTypeId()
ModelObjectgetTypeId in interface ModelObjectgetTypeId in class AbstractModelObjectpublic String getRegionId()
ComponentgetRegionId in interface Componentpublic void setRegionId(String regionId)
ComponentsetRegionId in interface ComponentregionId - the new region idpublic String getSourceId()
ComponentgetSourceId in interface Componentpublic void setSourceId(String sourceId)
ComponentsetSourceId in interface ComponentsourceId - the new source idpublic void setScope(String scope)
Componentpublic String getComponentTypeId()
ComponentgetComponentTypeId in interface Componentpublic void setComponentTypeId(String componentTypeId)
ComponentsetComponentTypeId in interface ComponentcomponentTypeId - the new component type idpublic void setChrome(String chrome)
Componentpublic void setGUID(String guid)
Componentpublic Object getSourceObject(RequestContext context)
ComponentgetSourceObject in interface Componentcontext - request contextpublic ComponentType getComponentType(RequestContext context)
ComponentgetComponentType in interface Componentcontext - the contextprotected void regenerateId()
public void setId(String id)
AbstractModelObjectsetId in class AbstractModelObjectid - Stringpublic void setResolvedWebScript(org.springframework.extensions.webscripts.WebScript webScript)
SurfBugDatasetResolvedWebScript in interface SurfBugDatawebScript - WebScriptpublic org.springframework.extensions.webscripts.WebScript getResolvedWebScript()
SurfBugDatagetResolvedWebScript in interface SurfBugDatapublic String getIndex()
Componentpublic void setIndex(String index)
Componentpublic int compareTo(Component o)
compareTo in interface Comparable<Component>Copyright © 2005–2016 Alfresco Software. All rights reserved.