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.RevisionProvider
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IDProvider.UidType
Uid type as returned byIDProvider.getUidType()
.Fields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Fields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASED
Fields inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
BLOCKED, MODIFIED, UNMODIFIED
Fields 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 String
Get the name of the editor that should be used as a drop target.Deprecated.@Nullable String
The 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 String
getName()
Deprecated.since 4.1.10 - useIDProvider.getUid()
@Nullable String
Provides the name of the picture editor component, used for storing a graphical description.Default value is "url".@Nullable String
Provides the name of the text editor component, used for storing the link description (e.g., for DOM).boolean
isHidden()
State if the template is hidden in the selection-list.void
setDropEditorName
(@Nullable String value) Set the name of the editor that should be used as a drop target.void
setExternalUrlEditorName
(@Nullable String value) Defines the name of the editor component used for external urls.void
setHidden
(boolean hidden) Set if the template should be hidden.void
setPictureEditorName
(@Nullable String value) Set the variable name from theform
which is used to get an image to display from link instancescreated with this template
.void
setReferenceCategory
(String value) Set the reference category which is used to categorize "external" links.void
setTextEditorName
(@Nullable String value) Set the variable name from theform
which 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, setChannelSource
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.GomSourceProvider
getDefaults, getFormDefaults, getGomSource, setDefaults, setFormDefaults, setGomProvider, setGomSource
Methods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistory
Methods inherited from interface de.espirit.firstspirit.access.store.IDProvider
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, setDisplayName, setMeta, setMetaFormData, setUid
Methods inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeState
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.PreviewImageProvider
getPreviewImage, setPreviewImage
Methods inherited from interface de.espirit.firstspirit.access.store.Referenceable
getReferenceName
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.RulesetContainer
getRulesetDefinition, setRulesetDefinition
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.SnippetContainer
getSnippet, setSnippet
Methods 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, 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
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.Template
getComment, getType, setComment
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateContentProvider
getTemplateDocument
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateStoreElement
getSubRootInStore
Methods 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:
getName
in 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_LINK
are 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:
getGomProvider
in 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 theform
which 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 theform
which 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 values
are set. Thetemplate of the link
points to this link template.
The instance can be used to put it into aneditor value
instance of typeLink
orList<Link>
.- Parameters:
language
-- Returns:
- a new link instance
- Since:
- 4.2
- See Also:
-
Link.GENERIC_LINK
are considered legacy. - no replacement