|
|||||||||||
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
com.arsdigita.cms.SectionTemplateMapping
Represents a mapping from (content section + content type) to a template. This class is is package scope since it is part of the internal templating implementation.
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
CONTENT_TYPE
|
static String |
SECTION
|
static String |
versionId
|
Fields inherited from class com.arsdigita.cms.TemplateMapping |
IS_DEFAULT, TEMPLATE, USE_CONTEXT |
Fields inherited from class com.arsdigita.kernel.ACSObject |
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE |
Constructor Summary | |
SectionTemplateMapping()
|
|
SectionTemplateMapping(BigDecimal id)
|
|
SectionTemplateMapping(com.arsdigita.persistence.DataObject obj)
|
|
SectionTemplateMapping(com.arsdigita.persistence.OID oid)
|
|
SectionTemplateMapping(String type)
|
Method Summary | |
ContentSection |
getContentSection()
Return the context section where the template is associated. |
ContentType |
getContentType()
|
protected static Template |
getDefaultTemplate(ContentSection section,
ContentType type,
String useContext)
Deprecated. use getDefaultTemplates with the MimeType or use the collection since there can be one default per mime type per context |
protected static Template |
getDefaultTemplate(ContentSection section,
ContentType type,
String useContext,
com.arsdigita.mimetypes.MimeType mimeType)
Get the default template for the given use context and mime type |
protected static com.arsdigita.cms.SectionTemplateCollection |
getDefaultTemplates(ContentSection section,
ContentType type,
String useContext)
Get the default template for the given use context |
protected static SectionTemplateMapping |
getMapping(ContentSection section,
ContentType type,
Template template,
String useContext)
Deprecated. use getMapping(ContentSection section, ContentType type, Template template, String useContext, MimeType mimeType) |
protected static SectionTemplateMapping |
getMapping(ContentSection section,
ContentType type,
Template template,
String useContext,
com.arsdigita.mimetypes.MimeType mimeType)
Load the specified mapping; return null if no such mapping exists |
com.arsdigita.kernel.ACSObject |
getParent()
Return the parent of the template within the section. |
protected static com.arsdigita.cms.SectionTemplateCollection |
getTemplates(ContentSection section)
Retrieve all templates for the given content section, and all types within it, along with their use context |
protected static com.arsdigita.cms.SectionTemplateCollection |
getTemplates(ContentSection section,
ContentType type)
Retrieve all templates for the given content section and type, along with their use context |
protected static com.arsdigita.cms.SectionTemplateCollection |
getTemplates(ContentSection section,
ContentType type,
String useContext)
Retrieve all templates for the given content, type, and use context |
Boolean |
isDefault()
Determine if the template will be the default within its context |
void |
setContentSection(ContentSection sec)
|
void |
setContentType(ContentType t)
|
void |
setDefault(Boolean b)
Set whether the template will be the default within its context |
Methods inherited from class com.arsdigita.cms.TemplateMapping |
getTemplate, getUseContext, setTemplate, setUseContext |
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 versionId
public static final String BASE_DATA_OBJECT_TYPE
public static final String SECTION
public static final String CONTENT_TYPE
Constructor Detail |
public SectionTemplateMapping()
public SectionTemplateMapping(com.arsdigita.persistence.OID oid) throws com.arsdigita.domain.DataObjectNotFoundException
public SectionTemplateMapping(BigDecimal id) throws com.arsdigita.domain.DataObjectNotFoundException
public SectionTemplateMapping(com.arsdigita.persistence.DataObject obj)
public SectionTemplateMapping(String type)
Method Detail |
public final ContentSection getContentSection()
TemplateMapping
getContentSection
in class TemplateMapping
public final void setContentSection(ContentSection sec)
public com.arsdigita.kernel.ACSObject getParent()
TemplateMapping
getParent
in class TemplateMapping
public final ContentType getContentType()
public final void setContentType(ContentType t)
public Boolean isDefault()
isDefault
in class TemplateMapping
public void setDefault(Boolean b)
setDefault
in class TemplateMapping
protected static SectionTemplateMapping getMapping(ContentSection section, ContentType type, Template template, String useContext)
protected static SectionTemplateMapping getMapping(ContentSection section, ContentType type, Template template, String useContext, com.arsdigita.mimetypes.MimeType mimeType)
protected static Template getDefaultTemplate(ContentSection section, ContentType type, String useContext, com.arsdigita.mimetypes.MimeType mimeType)
protected static Template getDefaultTemplate(ContentSection section, ContentType type, String useContext)
protected static com.arsdigita.cms.SectionTemplateCollection getDefaultTemplates(ContentSection section, ContentType type, String useContext)
protected static com.arsdigita.cms.SectionTemplateCollection getTemplates(ContentSection section, ContentType type, String useContext)
protected static com.arsdigita.cms.SectionTemplateCollection getTemplates(ContentSection section, ContentType type)
protected static com.arsdigita.cms.SectionTemplateCollection getTemplates(ContentSection section)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |