Interface Template
- All Superinterfaces:
ChannelSourceProvider,Comparable<StoreElement>,GomSourceProvider,HistoryProvider,IDProvider,PackagePoolItem,PreviewImageProvider,Referenceable,RulesetContainer,RulesetContainer,SnippetContainer,StoreElement,TemplateContentProvider,TemplateStoreElement,Workflowable
- All Known Subinterfaces:
LinkTemplate,MasterTemplate,PageTemplate,SectionTemplate,TableTemplate
public interface Template
extends Referenceable, GomSourceProvider, TemplateContentProvider, RulesetContainer, SnippetContainer, PackagePoolItem, TemplateStoreElement, PreviewImageProvider, StoreElement
This interface provides methods to handle templates.
- Since:
- 3.0
-
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 intType of the template: Content store template.static final intType of the template: Link template.static final intType of the template: Page template.static final intType of the template: Section template.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, UNMODIFIED -
Method Summary
Modifier and TypeMethodDescription@Nullable StringGet the comment of the TemplateintgetType()Get the type of the Template.booleanisHidden()State if the template is hidden in the selection-list.voidsetComment(String comment) Set the comment of the TemplatevoidsetHidden(boolean hidden) Set if the template should be hidden.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.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.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
-
PAGE_TEMPLATE
static final int PAGE_TEMPLATEType of the template: Page template.- Since:
- 3.0
- See Also:
-
SECTION_TEMPLATE
static final int SECTION_TEMPLATEType of the template: Section template.- Since:
- 3.0
- See Also:
-
CONTENT_TEMPLATE
static final int CONTENT_TEMPLATEType of the template: Content store template.- Since:
- 3.0
- See Also:
-
LINK_TEMPLATE
static final int LINK_TEMPLATEType of the template: Link template.- Since:
- 4.1.24
- See Also:
-
-
Method Details
-
getType
int getType()Get the type of the Template.- Returns:
- one of the following
- Since:
- 3.0
-
getComment
Get the comment of the Template- Returns:
- comment of the Template
- Since:
- 3.0
-
setComment
Set the comment of the Template- Parameters:
comment- new comment of the Template ornullto remove the existing comment- Since:
- 3.0
-
isHidden
boolean isHidden()State if the template is hidden in the selection-list.- Since:
- 3.0
-
setHidden
void setHidden(boolean hidden) Set if the template should be hidden.- Since:
- 3.0
-