Interface Allowed
- All Superinterfaces:
Comparable<StoreElement>,StoreElement,Workflowable
This interface represents the allowed element which is a child of a
page template.
Allowed nodes defines which templates could be used to create a section or a
content section.- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllowedBody(TemplateBody templateBody) Adds the givenTemplateBodyto the list of allowed bodies of this allowed nodeReturns the immutable list oftemplate bodiesfor which the belongingtemplateis allowed.
UseaddAllowedBody(TemplateBody)andremoveAllowedBody(TemplateBody)to modify this list.Returns the belonging template of this allowed node.voidremoveAllowedBody(TemplateBody templateBody) Removes the givenTemplateBodyfrom the list of allowed bodies of this allowed nodeMethods inherited from interface java.lang.Comparable
compareToMethods 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, getParent, getPermission, getPermission, getPermission, getPreviousSibling, getProject, getReferenceName, 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.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Method Details
-
getAllowedBodies
List<TemplateBody> getAllowedBodies()Returns the immutable list oftemplate bodiesfor which the belongingtemplateis allowed.
UseaddAllowedBody(TemplateBody)andremoveAllowedBody(TemplateBody)to modify this list.- Returns:
- list of allowed bodies
- Since:
- 4.0.15
-
addAllowedBody
Adds the givenTemplateBodyto the list of allowed bodies of this allowed node- Parameters:
templateBody- the template body to add to allowed bodies- Since:
- 4.0.15
-
removeAllowedBody
Removes the givenTemplateBodyfrom the list of allowed bodies of this allowed node- Parameters:
templateBody- the template body to remove from allowed bodies- Since:
- 4.0.15
-
getTemplate
Template getTemplate()Returns the belonging template of this allowed node.- Returns:
- the belonging template (
section templateortable template) ornull - Since:
- 3.0
-