public interface PageTemplate extends MasterTemplate, Referenceable, PreviewImageProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
Modifier and Type | Field and Description |
---|---|
static IDProvider.UidType |
UID_TYPE
Uid type as returned by
IDProvider.getUidType() . |
CONTENT_TEMPLATE, LINK_TEMPLATE, PAGE_TEMPLATE, SECTION_TEMPLATE
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
BLOCKED, MODIFIED, UNMODIFIED
Modifier and Type | Method and Description |
---|---|
Allowed |
createAllowed(String bodyName,
Template template)
Set a section or table template which should be allowed for this template for a given body
|
Allowed |
createAllowed(TemplateBody body,
MasterTemplate template)
Creates a new allowed node for the given section- or table template which should be allowed for the given body
|
TemplateBody |
createTemplateBody(String name)
Create and add a new body.
|
List<Template> |
getAllowedTemplates(String bodyName)
Get the list of section or table templates which are allowed for this template for a given body
|
List<MasterTemplate> |
getAllowedTemplates(TemplateBody templateBody)
Get the list of
section- or table templates which are allowed for this page template for the given template body. |
List<? extends TemplateBody> |
getBodies()
Returns the list of
template bodies which are defined in this template. |
TemplateBody |
getBody(String bodyName)
Returns the
template body specified by the given name or null if no body
exists with the given name. |
boolean |
isTemplateAllowed(TemplateBody templateBody,
MasterTemplate template)
Indicates whether the given template is allowed for the given
body or not. |
void |
setBodies(List<? extends TemplateBody> bodies)
Set the list of bodies for this template.
|
getExtensions, getPreviewPageRef, getTemplateExtension, getTemplateId, hasMultiPageParamsProviderEditor, setPreviewPageRef
getComment, getType, isHidden, setComment, setHidden
getReferenceName
getDefaults, getFormDefaults, getGomProvider, getGomSource, setDefaults, setFormDefaults, setGomProvider, setGomSource
getTemplateDocument
getChannelSource, setChannelSource
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isReleased, isReleaseSupported, moveChild, moveChild, release, release, revert, setMeta, setMetaFormData, setUid
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getProject, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, isFolder, isImportSupported, isLocked, isLockedOnServer, isLockSupported, isPermissionSupported, isWorkflowAllowed, isWorkflowSupported, refresh, removeAllWorkflowPermissions, removeChild, removePermission, removePermission, removePermission, removeWorkflowPermission, replaceChild, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXml, update
getColor, getTask, hasTask, removeTask, setColor, setTask
compareTo
asRevisionProvider, getHistory, getHistory
getRulesetDefinition, setRulesetDefinition
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeState
getSubRootInStore
getPreviewImage, setPreviewImage
static final IDProvider.UidType UID_TYPE
IDProvider.getUidType()
.Store.getStore(uid, uidType)
Allowed createAllowed(@NotNull String bodyName, @NotNull Template template)
bodyName
- name of a body in this templatetemplate
- section or table templateAllowed createAllowed(@NotNull TemplateBody body, @NotNull MasterTemplate template)
body
- the template body the given template should be allowed fortemplate
- the template which should be allowed for the given bodyList<Template> getAllowedTemplates(String bodyName)
bodyName
- name of a body in this templateList<MasterTemplate> getAllowedTemplates(@NotNull TemplateBody templateBody)
section-
or table templates
which are allowed for this page template for the given template body.section-
and table templates
will be returned.templateBody
- the template body to get theboolean isTemplateAllowed(@NotNull TemplateBody templateBody, @NotNull MasterTemplate template)
body
or not.templateBody
- the templateBody
given template should be checked fortemplate
- the template to check if it is allowedtrue
it template is allowed for templateBody, false
otherwise.@NotNull List<? extends TemplateBody> getBodies()
template bodies
which are defined in this template.setBodies(java.util.List)
TemplateBody getBody(String bodyName)
template body
specified by the given name or null
if no body
exists with the given name.bodyName
- the name specifying the bodynull
void setBodies(List<? extends TemplateBody> bodies)
bodies
- the list of bodiesgetBodies()
TemplateBody createTemplateBody(String name)
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500