public interface SectionTemplates extends TemplateContainer<SectionTemplate>, RootFolder
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
SectionTemplate |
createTemplate(String uid)
Create a new template in this folder.
|
SectionTemplate |
createTemplate(String uid,
boolean unifyNamesOnServer)
Create a new template in this folder.
|
SectionTemplate |
createTemplate(String uid,
Map<Language,String> lang2DisplayName,
boolean unifyNamesOnServer)
Create a new template in this folder.
|
TemplateFolder<SectionTemplate> |
createTemplateFolder(String name)
Create a new sub-folder in this folder
|
TemplateFolder<SectionTemplate> |
createTemplateFolder(String name,
Map<Language,String> lang2DisplayName)
Create a new sub-folder in this folder
|
SectionTemplate |
getTemplate(String uid)
Returns page template with the given uid or
null . |
Class<SectionTemplate> |
getTemplateType()
Generic type information of the template type this template container may hold.
|
void |
setName(String name)
Setting the name has no effect, calls will be ignored.
|
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
void setName(String name)
Class<SectionTemplate> getTemplateType()
getTemplateType
in interface TemplateContainer<SectionTemplate>
TemplateFolder<SectionTemplate> createTemplateFolder(@NotNull String name) throws LockException, ElementDeletedException
createTemplateFolder
in interface TemplateContainer<SectionTemplate>
name
- name of the new folderLockException
ElementDeletedException
TemplateFolder<SectionTemplate> createTemplateFolder(@NotNull String name, @Nullable Map<Language,String> lang2DisplayName) throws LockException, ElementDeletedException
createTemplateFolder
in interface TemplateContainer<SectionTemplate>
name
- name of the new folderLockException
ElementDeletedException
SectionTemplate createTemplate(@NotNull String uid) throws LockException, DuplicateReferenceNameException, ElementDeletedException
createTemplate
in interface TemplateContainer<SectionTemplate>
uid
- the uid of the new templateLockException
- if this template container is locked in another sessionDuplicateReferenceNameException
- if a template with the given uid
already exists on the serverElementDeletedException
SectionTemplate createTemplate(@NotNull String uid, boolean unifyNamesOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedException
unifyNameOnServer == true
and will be unified on the server if it is necessary.createTemplate
in interface TemplateContainer<SectionTemplate>
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 existLockException
- if this template container is locked in another sessionDuplicateReferenceNameException
- if a template with the given uid
already exists on the server and unifyNamesOnServer == false
ElementDeletedException
SectionTemplate 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.createTemplate
in interface TemplateContainer<SectionTemplate>
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 existLockException
- if this template container is locked in another sessionDuplicateReferenceNameException
- if a template with the given uid
already exists on the server and unifyNamesOnServer == false
ElementDeletedException
SectionTemplate getTemplate(@NotNull String uid)
null
.getTemplate
in interface TemplateContainer<SectionTemplate>
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