Interface PageTemplate
- All Superinterfaces:
ChannelSourceProvider
,Comparable<StoreElement>
,GomSourceProvider
,HistoryProvider
,IDProvider
,MasterTemplate
,PackagePoolItem
,PreviewImageProvider
,Referenceable
,RulesetContainer
,RulesetContainer
,SnippetContainer
,StoreElement
,Template
,TemplateContentProvider
,TemplateStoreElement
,Workflowable
Interface providing means to operate on page templates.
- Since:
- 4.1.24
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.storage.HistoryProvider
HistoryProvider.RevisionProvider
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IDProvider.UidType
Uid type as returned byIDProvider.getUidType()
.Fields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Fields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASED
Fields inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
BLOCKED, MODIFIED, UNMODIFIED
Fields inherited from interface de.espirit.firstspirit.access.store.templatestore.Template
CONTENT_TEMPLATE, LINK_TEMPLATE, PAGE_TEMPLATE, SECTION_TEMPLATE
-
Method Summary
Modifier and TypeMethodDescriptioncreateAllowed
(@NotNull TemplateBody body, @NotNull MasterTemplate template) Creates a new allowed node for the given section- or table template which should be allowed for the given bodycreateAllowed
(@NotNull String bodyName, @NotNull Template template) Set a section or table template which should be allowed for this template for a given bodycreateTemplateBody
(String name) Create and add a new body.getAllowedTemplates
(@NotNull TemplateBody templateBody) Get the list ofsection-
ortable templates
which are allowed for this page template for the given template body.
Note: If there aren't any allowed definitions for this pagetemplate, all existingsection-
andtable templates
will be returned.getAllowedTemplates
(String bodyName) Get the list of section or table templates which are allowed for this template for a given body@NotNull List<? extends TemplateBody>
Returns the list oftemplate bodies
which are defined in this template.@Nullable TemplateBody
Returns thetemplate body
specified by the given name ornull
if no body exists with the given name.boolean
isTemplateAllowed
(@NotNull TemplateBody templateBody, @NotNull MasterTemplate template) Indicates whether the given template is allowed for the givenbody
or not.void
setBodies
(List<? extends TemplateBody> bodies) Set the list of bodies for this template.Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.ChannelSourceProvider
getChannelSource, setChannelSource
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.GomSourceProvider
getDefaults, getFormDefaults, getGomProvider, getGomSource, setDefaults, setFormDefaults, setGomProvider, setGomSource
Methods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistory
Methods inherited from interface de.espirit.firstspirit.access.store.IDProvider
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, setDisplayName, setMeta, setMetaFormData, setUid
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.MasterTemplate
getExtensions, getPreviewPageRef, getTemplateExtension, getTemplateId, hasMultiPageParamsProviderEditor, hasPreviewPageRef, setPreviewPageRef
Methods inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeState
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.PreviewImageProvider
getPreviewImage, setPreviewImage
Methods inherited from interface de.espirit.firstspirit.access.store.Referenceable
getReferenceName
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.RulesetContainer
getRulesetDefinition, setRulesetDefinition
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.SnippetContainer
getSnippet, setSnippet
Methods inherited from interface de.espirit.firstspirit.access.store.StoreElement
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getPreviousSibling, 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
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.Template
getComment, getType, isHidden, setComment, setHidden
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateContentProvider
getTemplateDocument
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateStoreElement
getSubRootInStore
Methods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Field Details
-
UID_TYPE
Uid type as returned byIDProvider.getUidType()
.- Since:
- 4.1.34
- See Also:
-
-
Method Details
-
createAllowed
Set a section or table template which should be allowed for this template for a given body- Parameters:
bodyName
- name of a body in this templatetemplate
- section or table template- Since:
- 3.0
-
createAllowed
Allowed createAllowed(@NotNull @NotNull TemplateBody body, @NotNull @NotNull MasterTemplate template) Creates a new allowed node for the given section- or table template which should be allowed for the given body- Parameters:
body
- the template body the given template should be allowed fortemplate
- the template which should be allowed for the given body- Since:
- 4.2.400
-
getAllowedTemplates
Get the list of section or table templates which are allowed for this template for a given body- Parameters:
bodyName
- name of a body in this template- Returns:
- list of allowed section templates
- Since:
- 4.0
-
getAllowedTemplates
Get the list ofsection-
ortable templates
which are allowed for this page template for the given template body.
Note: If there aren't any allowed definitions for this pagetemplate, all existingsection-
andtable templates
will be returned.- Parameters:
templateBody
- the template body to get the- Since:
- 4.2.400
-
isTemplateAllowed
boolean isTemplateAllowed(@NotNull @NotNull TemplateBody templateBody, @NotNull @NotNull MasterTemplate template) Indicates whether the given template is allowed for the givenbody
or not.- Parameters:
templateBody
- thetemplateBody
given template should be checked fortemplate
- the template to check if it is allowed- Returns:
true
it template is allowed for templateBody,false
otherwise.- Since:
- 5.0.100
-
getBodies
Returns the list oftemplate bodies
which are defined in this template.- Returns:
- the list of template bodies
- Since:
- 4.0
- See Also:
-
getBody
Returns thetemplate body
specified by the given name ornull
if no body exists with the given name.- Parameters:
bodyName
- the name specifying the body- Returns:
- the template body specified by the given name or
null
- Since:
- 4.2.400
-
setBodies
Set the list of bodies for this template.- Parameters:
bodies
- the list of bodies- Since:
- 4.2.12
- See Also:
-
createTemplateBody
Create and add a new body.- Since:
- 4.2.12
-