Interface LinkTemplate
- All Superinterfaces:
ChannelSourceProvider,Comparable<StoreElement>,GomSourceProvider,HistoryProvider,IDProvider,PackagePoolItem,PreviewImageProvider,Referenceable,RulesetContainer,RulesetContainer,SnippetContainer,StoreElement,Template,TemplateContentProvider,TemplateStoreElement,Workflowable
A link template is a container for the rendering template for links.
Since FirstSpirit 4.2 a link template is also a container for the form presented to the editor for this link
(GomSourceProvider).
- 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
FieldsModifier and TypeFieldDescriptionstatic final IDProvider.UidTypeUid type as returned byIDProvider.getUidType().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, RELEASEDFields inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
BLOCKED, MODIFIED, UNMODIFIEDFields inherited from interface de.espirit.firstspirit.access.store.templatestore.Template
CONTENT_TEMPLATE, LINK_TEMPLATE, PAGE_TEMPLATE, SECTION_TEMPLATE -
Method Summary
Modifier and TypeMethodDescriptioncreateLink(Language language) Create a new link instance for this template.@Nullable StringGet the name of the editor that should be used as a drop target.Deprecated.@Nullable StringThe name of the editor which will contain the textual representation of an external "url".Get this template's GOM provider containing the hierarchical definition of the templates GUI including structure and input elements.@NotNull StringgetName()Deprecated.since 4.1.10 - useIDProvider.getUid()@Nullable StringProvides the name of the picture editor component, used for storing a graphical description.Default value is "url".@Nullable StringProvides the name of the text editor component, used for storing the link description (e.g., for DOM).booleanisHidden()State if the template is hidden in the selection-list.voidsetDropEditorName(@Nullable String value) Set the name of the editor that should be used as a drop target.voidsetExternalUrlEditorName(@Nullable String value) Defines the name of the editor component used for external urls.voidsetHidden(boolean hidden) Set if the template should be hidden.voidsetPictureEditorName(@Nullable String value) Set the variable name from theformwhich is used to get an image to display from link instancescreated with this template.voidsetReferenceCategory(String value) Set the reference category which is used to categorize "external" links.voidsetTextEditorName(@Nullable String value) Set the variable name from theformwhich is used to get the display text from link instancescreated with this template.Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.ChannelSourceProvider
getChannelSource, setChannelSourceMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.GomSourceProvider
getDefaults, getFormDefaults, getGomSource, setDefaults, setFormDefaults, setGomProvider, setGomSourceMethods 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.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeStateMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.PreviewImageProvider
getPreviewImage, setPreviewImageMethods inherited from interface de.espirit.firstspirit.access.store.Referenceable
getReferenceNameMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.RulesetContainer
getRulesetDefinition, setRulesetDefinitionMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.SnippetContainer
getSnippet, setSnippetMethods 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, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getPreviousSibling, getProject, 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.store.templatestore.Template
getComment, getType, setCommentMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateContentProvider
getTemplateDocumentMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateStoreElement
getSubRootInStoreMethods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Field Details
-
UID_TYPE
Uid type as returned byIDProvider.getUidType().- Since:
- 4.2
-
-
Method Details
-
getName
Deprecated.since 4.1.10 - useIDProvider.getUid()Same asIDProvider.getUid().- Specified by:
getNamein interfaceStoreElement- Returns:
- The template's uid.
- Since:
- 3.0
-
getEditorName
Deprecated.since 4.2.24 - Since 4.2 this is retained for backward compatibility, all instances which provide a different value thanLink.GENERIC_LINKare considered legacy. - no replacementGet the LinkEditor-name of the current LinkTemplate (e.g. internalLink, externalLink, contentLink, relatedprojectLink)- Returns:
- LinkEditor-name (e.g. internalLink, externalLink, contentLink, relatedprojectLink)
- Since:
- 3.0
-
getGomProvider
Get this template's GOM provider containing the hierarchical definition of the templates GUI including structure and input elements.- Specified by:
getGomProviderin interfaceGomSourceProvider- Returns:
- The GuiXML provider.
- Throws:
ParsingError- If the current template's XML failed to be parsed.GomValidationError- If the current template is invalid.- Since:
- 4.2
-
getTextEditorName
Provides the name of the text editor component, used for storing the link description (e.g., for DOM).- Returns:
- The text editor's name.
- Since:
- 4.2
- See Also:
-
setTextEditorName
Set the variable name from theformwhich is used to get the display text from link instancescreated with this template. This is used in input components like CMS_INPUT_LINK, CMS_INPUT_DOMEDITOR and others to give the user a visual feedback of the link content.- Since:
- 4.2
- See Also:
-
getPictureEditorName
Provides the name of the picture editor component, used for storing a graphical description.- Returns:
- The picture editor's name.
- Since:
- 4.2
- See Also:
-
setPictureEditorName
Set the variable name from theformwhich is used to get an image to display from link instancescreated with this template. This is used in input components like CMS_INPUT_LINK, CMS_INPUT_DOMEDITOR and others to give the user a visual feedback of the link content.- Since:
- 4.2
- See Also:
-
getExternalUrlEditorName
The name of the editor which will contain the textual representation of an external "url". This is used to track external references in the reference graph. External references could becategorized.- Since:
- 4.2
-
setExternalUrlEditorName
Defines the name of the editor component used for external urls.- Parameters:
value- The url editor name.- Since:
- 4.2
- See Also:
-
getReferenceCategory
String getReferenceCategory()Default value is "url".- Returns:
- The reference category.
- Since:
- 4.2
- See Also:
-
setReferenceCategory
Set the reference category which is used to categorize "external" links. Changing this value will not change existing external references to the provided category and will only affect new or changed links based on this template.- Throws:
IllegalArgumentException- If the provided category string is empty.- Since:
- 4.2
- See Also:
-
getDropEditorName
Get the name of the editor that should be used as a drop target.- Returns:
- name of drop editor
- Since:
- 5.1.19
-
setDropEditorName
Set the name of the editor that should be used as a drop target.- Parameters:
value- name of drop editor- Since:
- 5.1.19
-
setHidden
void setHidden(boolean hidden) Set if the template should be hidden. -
isHidden
boolean isHidden()State if the template is hidden in the selection-list. -
createLink
Create a new link instance for this template. Only thedefault valuesare set. Thetemplate of the linkpoints to this link template.
The instance can be used to put it into aneditor valueinstance of typeLinkorList<Link>.- Parameters:
language-- Returns:
- a new link instance
- Since:
- 4.2
- See Also:
-
Link.GENERIC_LINKare considered legacy. - no replacement