public interface LinkTemplates extends IDProvider, RootFolder, StoreElementFolder, TemplateContainer<LinkTemplate>
linktemplates
in templatestore.IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
LinkTemplateFolder |
createLinkTemplateFolder(String name,
String linkTypeAlias)
Deprecated.
since 4.2 - use generic links, see
createTemplate(String) . |
LinkTemplateFolder |
createLinkTemplateFolder(String uidSuggestion,
String linkTypeAlias,
boolean unifyUidOnServer)
Deprecated.
since 4.2 - use generic links, see
createTemplate(String, java.util.Map, boolean) . |
LinkTemplate |
createTemplate(String uid)
Create a new template in this folder.
|
LinkTemplate |
createTemplate(String uid,
boolean unifyNamesOnServer)
Create a new template in this folder.
|
LinkTemplate |
createTemplate(String uid,
Map<Language,String> lang2DisplayName,
boolean unifyNamesOnServer)
Create a new template in this folder.
|
TemplateFolder<LinkTemplate> |
createTemplateFolder(String name)
Create a new sub-folder in this folder
|
TemplateFolder<LinkTemplate> |
createTemplateFolder(String name,
Map<Language,String> lang2DisplayName)
Create a new sub-folder in this folder
|
List<de.espirit.firstspirit.server.componentmanagement.LinkEditorInfo> |
getLinkEditorClassInfos(UserService userService)
Deprecated.
since 4.2 - use generic links instead
|
LinkTemplate |
getTemplate(String uid)
Returns page template with the given uid or
null . |
Class<LinkTemplate> |
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
@Deprecated List<de.espirit.firstspirit.server.componentmanagement.LinkEditorInfo> getLinkEditorClassInfos(UserService userService)
@Deprecated LinkTemplateFolder createLinkTemplateFolder(String name, String linkTypeAlias) throws LockException, ElementDeletedException
createTemplate(String)
.LockException
ElementDeletedException
@Deprecated LinkTemplateFolder createLinkTemplateFolder(String uidSuggestion, String linkTypeAlias, boolean unifyUidOnServer) throws LockException, ElementDeletedException
createTemplate(String, java.util.Map, boolean)
.getLinkEditorClassInfos(UserService)
and calling
LinkEditorInfo.getAliasName()
on the elements. The
build in types have the alias names "internalLink", "externalLink", and "contentLink".
Use unifyUidOnServer == true
to unify uid on the server. Otherwise a
DuplicateReferenceNameException
will be thrown if a link template folder with the given uid already exists on the server.linkTypeAlias
- the link type alias to create the link template for (use
getLinkEditorClassInfos(UserService)
and LinkEditorInfo.getAliasName()
to get a list of supported values)uidSuggestion
- the suggestion for the uid for the created table templateunifyUidOnServer
- indicates wether the given uid should be unified on the server or notLockException
- if this LinkTemplates sub root is locked on the server in a different sessionDuplicateReferenceNameException
- if a link template folder with the given uid already exists
and param unifyUidOnServer == false
ElementDeletedException
Class<LinkTemplate> getTemplateType()
getTemplateType
in interface TemplateContainer<LinkTemplate>
TemplateFolder<LinkTemplate> createTemplateFolder(@NotNull String name) throws LockException, ElementDeletedException
createTemplateFolder
in interface TemplateContainer<LinkTemplate>
name
- name of the new folderLockException
ElementDeletedException
TemplateFolder<LinkTemplate> createTemplateFolder(@NotNull String name, @Nullable Map<Language,String> lang2DisplayName) throws LockException, ElementDeletedException
createTemplateFolder
in interface TemplateContainer<LinkTemplate>
name
- name of the new folderLockException
ElementDeletedException
LinkTemplate createTemplate(@NotNull String uid) throws LockException, DuplicateReferenceNameException, ElementDeletedException
createTemplate
in interface TemplateContainer<LinkTemplate>
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
LinkTemplate 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<LinkTemplate>
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
LinkTemplate 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<LinkTemplate>
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
LinkTemplate getTemplate(@NotNull String uid)
null
.getTemplate
in interface TemplateContainer<LinkTemplate>
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