Interface LinkTemplates
- All Superinterfaces:
Comparable<StoreElement>
,HistoryProvider
,IDProvider
,RootFolder
,StoreElement
,StoreElementFolder
,TemplateContainer<LinkTemplate>
,Workflowable
public interface LinkTemplates
extends IDProvider, RootFolder, StoreElementFolder, TemplateContainer<LinkTemplate>
This interface represants the subroot for
linktemplates
in templatestore.- Since:
- 3.0
-
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
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
-
Method Summary
Modifier and TypeMethodDescriptioncreateTemplate
(@NotNull String uid) Create a new template in this folder.createTemplate
(@NotNull String uid, boolean unifyNamesOnServer) Create a new template in this folder.createTemplate
(@NotNull String uid, @Nullable Map<Language, String> lang2DisplayName, boolean unifyNamesOnServer) Create a new template in this folder.createTemplateFolder
(@NotNull String name) Create a new sub-folder in this foldercreateTemplateFolder
(@NotNull String name, @Nullable Map<Language, String> lang2DisplayName) Create a new sub-folder in this foldergetTemplate
(@NotNull String uid) Returns page template with the given uid ornull
.Generic type information of the template type this template container may hold.Methods inherited from interface java.lang.Comparable
compareTo
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.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, getReferenceName, 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.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Method Details
-
getTemplateType
Class<LinkTemplate> getTemplateType()Generic type information of the template type this template container may hold.- Specified by:
getTemplateType
in interfaceTemplateContainer<LinkTemplate>
- Returns:
- the template type this template container may hold
- Since:
- 4.1.24
-
createTemplateFolder
TemplateFolder<LinkTemplate> createTemplateFolder(@NotNull @NotNull String name) throws LockException, ElementDeletedException Create a new sub-folder in this folder- Specified by:
createTemplateFolder
in interfaceTemplateContainer<LinkTemplate>
- Parameters:
name
- name of the new folder- Returns:
- the new created folder
- Throws:
LockException
ElementDeletedException
- Since:
- 3.0
-
createTemplateFolder
TemplateFolder<LinkTemplate> createTemplateFolder(@NotNull @NotNull String name, @Nullable @Nullable Map<Language, String> lang2DisplayName) throws LockException, ElementDeletedExceptionCreate a new sub-folder in this folder- Specified by:
createTemplateFolder
in interfaceTemplateContainer<LinkTemplate>
- Parameters:
name
- name of the new folder- Returns:
- the new created folder
- Throws:
LockException
ElementDeletedException
- Since:
- 3.0
-
createTemplate
LinkTemplate createTemplate(@NotNull @NotNull String uid) throws LockException, DuplicateReferenceNameException, ElementDeletedException Create a new template in this folder.- Specified by:
createTemplate
in interfaceTemplateContainer<LinkTemplate>
- Parameters:
uid
- the uid of the new template- Returns:
- the new crated template
- Throws:
LockException
- if this template container is locked in another sessionDuplicateReferenceNameException
- if a template with the givenuid
already exists on the serverElementDeletedException
- Since:
- 3.1.158
-
createTemplate
LinkTemplate createTemplate(@NotNull @NotNull String uid, boolean unifyNamesOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedException Create a new template in this folder. The given uid is used as suggestion ifunifyNameOnServer == true
and will be unified on the server if it is necessary.- Specified by:
createTemplate
in interfaceTemplateContainer<LinkTemplate>
- Parameters:
uid
- theuid
of the new templateunifyNamesOnServer
- iftrue
the given uid will be unified on server if necessary, otherwise aDuplicateReferenceNameException
will be thrown, if a template with the given uid already exist- Returns:
- the new created template
- Throws:
LockException
- if this template container is locked in another sessionDuplicateReferenceNameException
- if a template with the givenuid
already exists on the server andunifyNamesOnServer == false
ElementDeletedException
- Since:
- 4.0
-
createTemplate
LinkTemplate createTemplate(@NotNull @NotNull String uid, @Nullable @Nullable Map<Language, String> lang2DisplayName, boolean unifyNamesOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedExceptionCreate a new template in this folder. The given uid is used as suggestion ifunifyNameOnServer == true
and will be unified on the server if it is necessary.- Specified by:
createTemplate
in interfaceTemplateContainer<LinkTemplate>
- Parameters:
uid
- theuid
of the new templatelang2DisplayName
- mapping of language to language specific displayname; used to createLanguageInfo
nodesunifyNamesOnServer
- iftrue
the given uid will be unified on server if necessary, otherwise aDuplicateReferenceNameException
will be thrown, if a template with the given uid already exist- Returns:
- the new created template
- Throws:
LockException
- if this template container is locked in another sessionDuplicateReferenceNameException
- if a template with the givenuid
already exists on the server andunifyNamesOnServer == false
ElementDeletedException
- Since:
- 4.0.120
-
getTemplate
Returns page template with the given uid ornull
.- Specified by:
getTemplate
in interfaceTemplateContainer<LinkTemplate>
- Parameters:
uid
- unique identifier without type prefix.- Returns:
- page template with the given uid or
null
. - Since:
- 4.0
- See Also:
-