Interface FormatTemplateContainer
- All Superinterfaces:
Comparable<StoreElement>,HistoryProvider,IDProvider,StoreElement,StoreElementFolder,Workflowable
- All Known Subinterfaces:
FormatTemplateFolder,FormatTemplates
This interface provides methods to handle FormatTemplateContainer in
TemplateStore,
a container for FormatTemplates- Since:
- 4.0.29
- See Also:
-
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 TypeMethodDescriptioncreateFormatTemplate(String uid, Map<Language, String> lang2DisplayName, boolean unifyUid) Creates a new FormatTemplate as child of this FormatTemplateContainercreateFormatTemplateFolder(String name, Map<Language, String> lang2DisplayName) Creates a newFormatTemplateFolderwith the given name as child of this FormatTemplateContainer.createStyleTemplate(String uid, boolean unifyNameOnServer, @Nullable Map<Language, String> lang2DisplayName) Factory for aStyleTemplatebased on a uid.createTableFormatTemplate(String uid, boolean unifyNameOnServer, @Nullable Map<Language, String> lang2DisplayName) Factory for aTableFormatTemplatebased on a uid.getFormatTemplate(String uid) Search a FormatTemplate by given uid.getStyleTemplate(long id) Looks up the template having the given id.Looks up the template having the given uid.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
-
createFormatTemplate
FormatTemplate createFormatTemplate(String uid, Map<Language, String> lang2DisplayName, boolean unifyUid) throws LockException, DuplicateReferenceNameException, ElementDeletedExceptionCreates a new FormatTemplate as child of this FormatTemplateContainer- Parameters:
uid- the uid of the new FormatTemplatelang2DisplayName- mapping oflanguageto language specific displayname; used to createLanguageInfonodesunifyUid- iffalseaDuplicateReferenceNameExceptionmay be thrown , iftruethe name will be unified on the server if necessary- Returns:
- the new format template
- Throws:
LockException- if this format template container is locked in another sessionDuplicateReferenceNameException- if unifyNameOnServer isfalseand an element with the given uid in the same namescope already exits on the serverElementDeletedException- if this folder is already deleted on the server- Since:
- 4.0.29
-
createFormatTemplateFolder
FormatTemplateFolder createFormatTemplateFolder(String name, Map<Language, String> lang2DisplayName) throws LockException, ElementDeletedExceptionCreates a newFormatTemplateFolderwith the given name as child of this FormatTemplateContainer.- Parameters:
name- the name of the new FormatTemplateFolderlang2DisplayName- mapping oflanguageto language specific displayname; used to createLanguageInfonodes- Returns:
- the new created folder
- Throws:
LockException- if this format template container is locked in another sessionElementDeletedException- if this folder is already deleted on the server- Since:
- 4.2.400
-
getFormatTemplate
Search a FormatTemplate by given uid. Returnsnullif no format template was found with given uid or the format template is no child of this format template container- Parameters:
uid- uid of the format-template to be found- Returns:
- the format template specified by given uid or
null - Since:
- 4.0.29
-
createTableFormatTemplate
TableFormatTemplate createTableFormatTemplate(String uid, boolean unifyNameOnServer, @Nullable @Nullable Map<Language, String> lang2DisplayName) throws LockException, DuplicateReferenceNameException, ElementDeletedExceptionFactory for aTableFormatTemplatebased on a uid. If requested, the uid will be unified.- Parameters:
uid- The template's uid.unifyNameOnServer- If true, the uid will be unified.lang2DisplayName- A map of language dependent display names for the template.- Returns:
- The resulting template.
- Throws:
LockException- if a required lock could not be acquired.DuplicateReferenceNameException- if the uid is already taken (and unification is off).ElementDeletedException- if the parent container does no longer exist.- Since:
- 4.0.120
-
getTableFormatTemplate
Looks up the template having the given uid.- Parameters:
uid- The The template's uid.- Returns:
- The matching template or
null. - Since:
- 4.0.120
-
createStyleTemplate
StyleTemplate createStyleTemplate(String uid, boolean unifyNameOnServer, @Nullable @Nullable Map<Language, String> lang2DisplayName) throws LockException, DuplicateReferenceNameException, ElementDeletedExceptionFactory for aStyleTemplatebased on a uid. If requested, the uid will be unified.- Parameters:
uid- The template's uid.unifyNameOnServer- If true, the uid will be unified.lang2DisplayName- A map of language dependent display names for the template.- Returns:
- The resulting template.
- Throws:
LockException- if a required lock could not be acquired.DuplicateReferenceNameException- if the uid is already taken (and unification is off).ElementDeletedException- if the parent container does no longer exist.- Since:
- 4.0.120
-
getStyleTemplate
Looks up the template having the given id.- Parameters:
id- The template id.- Returns:
- The matching template or
null. - Since:
- 4.0.120
-