org.springframework.extensions.surf.types
Interface ContentAssociation

All Superinterfaces:
ModelObject, Serializable
All Known Implementing Classes:
ContentAssociationImpl

public interface ContentAssociation
extends ModelObject

Interface for a ContentAssociation object type

Author:
muzquiano

Field Summary
static String PROP_ASSOC_TYPE
           
static String PROP_DEST_ID
           
static String PROP_FORMAT_ID
           
static String PROP_SOURCE_ID
           
static String PROP_SOURCE_TYPE
           
static String TYPE_ID
           
 
Fields inherited from interface org.springframework.extensions.surf.ModelObject
PROP_DESCRIPTION, PROP_DESCRIPTION_ID, PROP_ID, PROP_TITLE, PROP_TITLE_ID
 
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.
 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 interface org.springframework.extensions.surf.ModelObject
getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModelVersion, getModificationTime, getPersisterId, getProperties, getProperty, getStoragePath, getTitle, getTitleId, getTypeId, isSaved, removeCustomProperty, removeModelProperty, removeProperty, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setProperty, setTitle, setTitleId, touch, toXML
 

Field Detail

TYPE_ID

static final String TYPE_ID
See Also:
Constant Field Values

PROP_SOURCE_ID

static final String PROP_SOURCE_ID
See Also:
Constant Field Values

PROP_SOURCE_TYPE

static final String PROP_SOURCE_TYPE
See Also:
Constant Field Values

PROP_DEST_ID

static final String PROP_DEST_ID
See Also:
Constant Field Values

PROP_ASSOC_TYPE

static final String PROP_ASSOC_TYPE
See Also:
Constant Field Values

PROP_FORMAT_ID

static final String PROP_FORMAT_ID
See Also:
Constant Field Values
Method Detail

getSourceId

String getSourceId()
Gets the source id.

Returns:
the source id

setSourceId

void setSourceId(String sourceId)
Sets the source id.

Parameters:
sourceId - the new source id

getDestId

String getDestId()
Gets the dest id.

Returns:
the dest id

setDestId

void setDestId(String destId)
Sets the dest id.

Parameters:
destId - the new dest id

getAssociationType

String getAssociationType()
Gets the association type.

Returns:
the association type

setSourceType

void setSourceType(String sourceType)
Sets the source type.

Parameters:
sourceType - the source type

getSourceType

String getSourceType()
Gets the source type.

Returns:
the source type

setAssociationType

void setAssociationType(String associationType)
Sets the association type.

Parameters:
associationType - the new association type

getFormatId

String getFormatId()
Gets the format id.

Returns:
the format id

setFormatId

void setFormatId(String formatId)
Sets the format id.

Parameters:
formatId - the new format id

getObject

ModelObject getObject(RequestContext context)
Gets the object that is being associated. This is generally a template or a page.

Parameters:
context - the context
Returns:
the page

isTemplateAssociation

boolean isTemplateAssociation()
Checks if is template association.

Returns:
true, if is template association

isPageAssociation

boolean isPageAssociation()
Checks if is page association.

Returns:
true, if is page association


Copyright © 2009 SpringSource, Inc. All Rights Reserved.