public interface TemplateContainer<T extends Template> extends IDProvider, StoreElementFolder
templates
as children.IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
T |
createTemplate(String uid)
Create a new template in this folder.
|
T |
createTemplate(String uid,
boolean unifyNamesOnServer)
Create a new template in this folder.
|
T |
createTemplate(String uid,
Map<Language,String> lang2DisplayName,
boolean unifyNamesOnServer)
Create a new template in this folder.
|
TemplateFolder<T> |
createTemplateFolder(String name)
Create a new sub-folder in this folder
|
TemplateFolder<T> |
createTemplateFolder(String name,
Map<Language,String> lang2DisplayName)
Create a new sub-folder in this folder
|
T |
getTemplate(String uid)
Returns page template with the given uid or
null . |
Class<T> |
getTemplateType()
Generic type information of the template type this template container may hold.
|
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, setMeta, setMetaFormData, setUid
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, 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, update
getColor, getTask, hasTask, removeTask, setColor, setTask
compareTo
asRevisionProvider, getHistory, getHistory
Class<T> getTemplateType()
TemplateFolder<T> createTemplateFolder(@NotNull String name) throws LockException, ElementDeletedException
name
- name of the new folderLockException
ElementDeletedException
TemplateFolder<T> createTemplateFolder(@NotNull String name, @Nullable Map<Language,String> lang2DisplayName) throws LockException, ElementDeletedException
name
- name of the new folderLockException
ElementDeletedException
T createTemplate(@NotNull String uid) throws LockException, DuplicateReferenceNameException, ElementDeletedException
uid
- the uid of the new templateDuplicateReferenceNameException
- if a template with the given uid
already exists on the serverLockException
- if this template container is locked in another sessionElementDeletedException
T createTemplate(@NotNull String uid, boolean unifyNamesOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedException
unifyNameOnServer == true
and will be unified on the server if it is necessary.uid
- the uid
of the new templateunifyNamesOnServer
- if true
the given uid will be unified on server if necessary, otherwise a
DuplicateReferenceNameException
will be thrown, if a template with the given uid already existDuplicateReferenceNameException
- if a template with the given uid
already exists on the server and unifyNamesOnServer == false
LockException
- if this template container is locked in another sessionElementDeletedException
T createTemplate(@NotNull String uid, @Nullable Map<Language,String> lang2DisplayName, boolean unifyNamesOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedException
unifyNameOnServer == true
and will be unified on the server if it is necessary.uid
- the uid
of the new templatelang2DisplayName
- mapping of language to language specific displayname; used to create
LanguageInfo
nodesunifyNamesOnServer
- if true
the given uid will be unified on server if necessary, otherwise a
DuplicateReferenceNameException
will be thrown, if a template with the given uid already existDuplicateReferenceNameException
- if a template with the given uid
already exists on the server and unifyNamesOnServer == false
LockException
- if this template container is locked in another sessionElementDeletedException
@Nullable T getTemplate(@NotNull String uid)
null
.uid
- unique identifier without type prefix.null
.Store.getStoreElement(String, de.espirit.firstspirit.access.store.IDProvider.UidType)
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500