|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.types.AbstractModelObject org.springframework.extensions.surf.types.ContentAssociationImpl
public class ContentAssociationImpl
Default content association implementation
Field Summary |
---|
Fields inherited from class org.springframework.extensions.surf.types.AbstractModelObject |
---|
CONTAINER_PROPERTIES, CONTAINER_RESOURCES, customProperties, description, descriptionId, document, id, info, modelProperties, modelVersion, modificationTime, resourceContainer, title, titleId |
Fields inherited from interface org.springframework.extensions.surf.types.ContentAssociation |
---|
PROP_ASSOC_TYPE, PROP_DEST_ID, PROP_FORMAT_ID, PROP_SOURCE_ID, PROP_SOURCE_TYPE, TYPE_ID |
Fields inherited from interface org.springframework.extensions.surf.ModelObject |
---|
PROP_DESCRIPTION, PROP_DESCRIPTION_ID, PROP_ID, PROP_TITLE, PROP_TITLE_ID |
Constructor Summary | |
---|---|
ContentAssociationImpl(String id,
ModelPersisterInfo key,
org.dom4j.Document document)
Instantiates a new content association for the given XML document |
Method Summary | |
---|---|
String |
getAssociationType()
Gets the association type. |
String |
getDestId()
Gets the dest id. |
String |
getFormatId()
Gets the format id. |
ModelObject |
getObject(RequestContext context)
Gets the object that is being associated. |
String |
getSourceId()
Gets the source id. |
String |
getSourceType()
Gets the source type. |
String |
getTypeId()
Returns the type id of the model object. |
boolean |
isPageAssociation()
Checks if is page association. |
boolean |
isTemplateAssociation()
Checks if is template association. |
void |
setAssociationType(String associationType)
Sets the association type. |
void |
setDestId(String destId)
Sets the dest id. |
void |
setFormatId(String formatId)
Sets the format id. |
void |
setSourceId(String sourceId)
Sets the source id. |
void |
setSourceType(String sourceType)
Sets the source type. |
Methods inherited from class org.springframework.extensions.surf.types.AbstractModelObject |
---|
addResource, addResource, getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModelVersion, getModificationTime, getPersisterId, getProperties, getProperty, getResource, getResourceContainer, getResources, getResourcesMap, getStoragePath, getTitle, getTitleId, isCustomProperty, isModelProperty, isSaved, removeCustomProperty, removeModelProperty, removeProperty, removeResource, setCustomProperty, setDescription, setDescriptionId, setId, setModelProperty, setModificationTime, setProperty, setTitle, setTitleId, toString, touch, toXML, updateResource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.extensions.surf.ModelObject |
---|
getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModelVersion, getModificationTime, getPersisterId, getProperties, getProperty, getStoragePath, getTitle, getTitleId, isSaved, removeCustomProperty, removeModelProperty, removeProperty, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setProperty, setTitle, setTitleId, touch, toXML |
Constructor Detail |
---|
public ContentAssociationImpl(String id, ModelPersisterInfo key, org.dom4j.Document document)
document
- the documentMethod Detail |
---|
public String getTypeId()
ModelObject
getTypeId
in interface ModelObject
getTypeId
in class AbstractModelObject
public String getSourceId()
ContentAssociation
getSourceId
in interface ContentAssociation
public void setSourceId(String sourceId)
ContentAssociation
setSourceId
in interface ContentAssociation
sourceId
- the new source idpublic String getDestId()
ContentAssociation
getDestId
in interface ContentAssociation
public void setDestId(String destId)
ContentAssociation
setDestId
in interface ContentAssociation
destId
- the new dest idpublic String getAssociationType()
ContentAssociation
getAssociationType
in interface ContentAssociation
public void setSourceType(String sourceType)
ContentAssociation
setSourceType
in interface ContentAssociation
sourceType
- the source typepublic String getSourceType()
ContentAssociation
getSourceType
in interface ContentAssociation
public void setAssociationType(String associationType)
ContentAssociation
setAssociationType
in interface ContentAssociation
associationType
- the new association typepublic String getFormatId()
ContentAssociation
getFormatId
in interface ContentAssociation
public void setFormatId(String formatId)
ContentAssociation
setFormatId
in interface ContentAssociation
formatId
- the new format idpublic ModelObject getObject(RequestContext context)
ContentAssociation
getObject
in interface ContentAssociation
context
- the context
public boolean isTemplateAssociation()
ContentAssociation
isTemplateAssociation
in interface ContentAssociation
public boolean isPageAssociation()
isPageAssociation
in interface ContentAssociation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |