|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.cms.TemplateMapping
Represents a mapping between an arbitrary parent and a template.
Known implementations are SectionTemplateMapping
and
ItemTemplateMapping
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
IS_DEFAULT
|
static String |
TEMPLATE
|
static String |
USE_CONTEXT
|
Fields inherited from class com.arsdigita.kernel.ACSObject |
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE, versionId |
Constructor Summary | |
TemplateMapping()
|
|
TemplateMapping(BigDecimal id)
|
|
TemplateMapping(com.arsdigita.persistence.DataObject obj)
|
|
TemplateMapping(com.arsdigita.persistence.OID oid)
|
|
TemplateMapping(String type)
|
Method Summary | |
abstract ContentSection |
getContentSection()
Return the context section where the template is associated. |
abstract com.arsdigita.kernel.ACSObject |
getParent()
Return the parent of the template within the section. |
Template |
getTemplate()
Return the template for this mapping |
String |
getUseContext()
Get the use context in which this template is associated |
abstract Boolean |
isDefault()
Determine if the template will be the default within its context. |
abstract void |
setDefault(Boolean b)
Set whether the template will be the default within its context. |
void |
setTemplate(Template t)
Set the new template for this mapping |
void |
setUseContext(String context)
Set the use context for this mapping |
Methods inherited from class com.arsdigita.kernel.ACSObject |
assertPrivilege, beforeSave, checkPrivilege, doCreateCheck, doWriteCheck, getBaseDataObjectType, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, initialize, isContainerModified, setID, setID |
Methods inherited from class com.arsdigita.domain.ObservableDomainObject |
addObserver, getObservers |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String BASE_DATA_OBJECT_TYPE
public static final String TEMPLATE
public static final String USE_CONTEXT
public static final String IS_DEFAULT
Constructor Detail |
public TemplateMapping()
public TemplateMapping(com.arsdigita.persistence.OID oid) throws com.arsdigita.domain.DataObjectNotFoundException
public TemplateMapping(BigDecimal id) throws com.arsdigita.domain.DataObjectNotFoundException
public TemplateMapping(com.arsdigita.persistence.DataObject obj)
public TemplateMapping(String type)
Method Detail |
public abstract ContentSection getContentSection()
public abstract com.arsdigita.kernel.ACSObject getParent()
public Template getTemplate()
public void setTemplate(Template t)
public String getUseContext()
public void setUseContext(String context)
public abstract Boolean isDefault()
public abstract void setDefault(Boolean b)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |