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.RevisionProviderNested 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_NOWFields 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
compareToMethods 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.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, 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
-
getTemplateType
Class<LinkTemplate> getTemplateType()Generic type information of the template type this template container may hold.- Specified by:
getTemplateTypein 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:
createTemplateFolderin interfaceTemplateContainer<LinkTemplate>- Parameters:
name- name of the new folder- Returns:
- the new created folder
- Throws:
LockExceptionElementDeletedException- 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:
createTemplateFolderin interfaceTemplateContainer<LinkTemplate>- Parameters:
name- name of the new folder- Returns:
- the new created folder
- Throws:
LockExceptionElementDeletedException- Since:
- 3.0
-
createTemplate
LinkTemplate createTemplate(@NotNull @NotNull String uid) throws LockException, DuplicateReferenceNameException, ElementDeletedException Create a new template in this folder.- Specified by:
createTemplatein 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 givenuidalready 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 == trueand will be unified on the server if it is necessary.- Specified by:
createTemplatein interfaceTemplateContainer<LinkTemplate>- Parameters:
uid- theuidof the new templateunifyNamesOnServer- iftruethe given uid will be unified on server if necessary, otherwise aDuplicateReferenceNameExceptionwill 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 givenuidalready exists on the server andunifyNamesOnServer == falseElementDeletedException- 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 == trueand will be unified on the server if it is necessary.- Specified by:
createTemplatein interfaceTemplateContainer<LinkTemplate>- Parameters:
uid- theuidof the new templatelang2DisplayName- mapping of language to language specific displayname; used to createLanguageInfonodesunifyNamesOnServer- iftruethe given uid will be unified on server if necessary, otherwise aDuplicateReferenceNameExceptionwill 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 givenuidalready exists on the server andunifyNamesOnServer == falseElementDeletedException- Since:
- 4.0.120
-
getTemplate
Returns page template with the given uid ornull.- Specified by:
getTemplatein interfaceTemplateContainer<LinkTemplate>- Parameters:
uid- unique identifier without type prefix.- Returns:
- page template with the given uid or
null. - Since:
- 4.0
- See Also:
-