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.RevisionProviderNested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IDProvider.UidTypeUid type as returned byIDProvider.getUidType().Fields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOWFields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASEDFields inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
BLOCKED, MODIFIED, UNMODIFIEDFields 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 templateswhich 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 templateswill 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 bodieswhich are defined in this template.@Nullable TemplateBodyReturns thetemplate bodyspecified by the given name ornullif no body exists with the given name.booleanisTemplateAllowed(@NotNull TemplateBody templateBody, @NotNull MasterTemplate template) Indicates whether the given template is allowed for the givenbodyor not.voidsetBodies(List<? extends TemplateBody> bodies) Set the list of bodies for this template.Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.ChannelSourceProvider
getChannelSource, setChannelSourceMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.GomSourceProvider
getDefaults, getFormDefaults, getGomProvider, getGomSource, setDefaults, setFormDefaults, setGomProvider, setGomSourceMethods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistoryMethods inherited from interface de.espirit.firstspirit.access.store.IDProvider
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseRevision, getReleaseStatus, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isInReleaseStore, isReachableInReleaseStore, isReleased, isReleased, isReleaseSupported, moveChild, moveChild, release, release, release, release, revert, setDisplayName, setMeta, setMetaFormData, setUidMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.MasterTemplate
getExtensions, getPreviewPageRef, getTemplateExtension, getTemplateId, hasMultiPageParamsProviderEditor, hasPreviewPageRef, setPreviewPageRefMethods inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeStateMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.PreviewImageProvider
getPreviewImage, setPreviewImageMethods inherited from interface de.espirit.firstspirit.access.store.Referenceable
getReferenceNameMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.RulesetContainer
getRulesetDefinition, setRulesetDefinitionMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.SnippetContainer
getSnippet, setSnippetMethods 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, 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, toXmlMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.Template
getComment, getType, isHidden, setComment, setHiddenMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateContentProvider
getTemplateDocumentMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateStoreElement
getSubRootInStoreMethods 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 templateswhich 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 templateswill 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 givenbodyor not.- Parameters:
templateBody- thetemplateBodygiven template should be checked fortemplate- the template to check if it is allowed- Returns:
trueit template is allowed for templateBody,falseotherwise.- Since:
- 5.0.100
-
getBodies
Returns the list oftemplate bodieswhich are defined in this template.- Returns:
- the list of template bodies
- Since:
- 4.0
- See Also:
-
getBody
Returns thetemplate bodyspecified by the given name ornullif 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
-