Uses of Interface
de.espirit.firstspirit.access.store.templatestore.TemplateBody
-
Uses of TemplateBody in de.espirit.firstspirit.access.store.templatestore
Modifier and TypeMethodDescriptionPageTemplate.createTemplateBody
(String name) Create and add a new body.@Nullable TemplateBody
Returns thetemplate body
specified by the given name ornull
if no body exists with the given name.Modifier and TypeMethodDescriptionAllowed.getAllowedBodies()
Returns the immutable list oftemplate bodies
for which the belongingtemplate
is allowed.
UseAllowed.addAllowedBody(TemplateBody)
andAllowed.removeAllowedBody(TemplateBody)
to modify this list.@NotNull List<? extends TemplateBody>
PageTemplate.getBodies()
Returns the list oftemplate bodies
which are defined in this template.Modifier and TypeMethodDescriptionvoid
Allowed.addAllowedBody
(TemplateBody templateBody) Adds the givenTemplateBody
to the list of allowed bodies of this allowed nodePageTemplate.createAllowed
(@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 bodyPageTemplate.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.boolean
PageTemplate.isTemplateAllowed
(@NotNull TemplateBody templateBody, @NotNull MasterTemplate template) Indicates whether the given template is allowed for the givenbody
or not.void
Allowed.removeAllowedBody
(TemplateBody templateBody) Removes the givenTemplateBody
from the list of allowed bodies of this allowed nodeModifier and TypeMethodDescriptionvoid
PageTemplate.setBodies
(List<? extends TemplateBody> bodies) Set the list of bodies for this template.