Interface DocumentGroup
- All Superinterfaces:
Comparable<StoreElement>,ContentProducer,HistoryProvider,IDProvider,Previewable,Referenceable,StoreElement,Workflowable
A DocumentGroup groups
DocumentGroupLink's as their child nodes (see
StoreElement.getChildren()).- Since:
- 3.0.54
-
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 bygetUidType().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.Previewable
PARAM_REVISION, PREVIEWMODE_DEFAULT, PREVIEWMODE_DEFAULT_REFRESH, PREVIEWMODE_FORCE_REFRESH, PREVIEWMODE_FULL_QUALIFIED, PREVIEWMODE_NONE, PREVIEWMODE_SSO, PREVIEWMODE_WEBEDIT, PREVIEWMODE_WEBEDIT_FULL_QUALIFIED, PREVIEWMODE_WITHOUT_CONTEXTNAME -
Method Summary
Modifier and TypeMethodDescriptionaddLink(IDProvider target) Adds a link to the given target element.voidappendChild(StoreElement child) Appends a child element to this group, which must be an instance of eitherDocLinkwhith aPageReforSiteStoreFolder.voidappendChildBefore(@NotNull StoreElement child, @Nullable StoreElement before) Appends a child element to this group, inserting it before a reference element.booleancontainsElement(StoreElement element) Indicates whether the given element is part of this document group.Provides a comment for this group.Gives the default template set to be used.@NotNull StringProvides the file name of this group.The template sets for which this document group should be generatedbooleanIndicates, whether to generate for all template sets.@Nullable PageTemplateGet the template which is used to render the prefix, e.g. a table of contents@Nullable PageTemplateGet the template which is used to render the suffix, e.g. an indexValue of the extension used when resolving templates.@NotNull IDProvider.UidTypeReturnUID_TYPE.voidreplaceChild(StoreElement oldChild, StoreElement newChild) Replaces a child element with another.voidsetComment(String value) Defines the comment for this group.voidsetDefaultTemplateSet(TemplateSet value) Defines the default template set to be used.voidsetFilename(String value) Defines the file name for this group.voidsetGenerateFor(TemplateSet[] value) Defines to generate this group for the given list of template sets.voidDefines to generate for all template sets.voidsetPrefixTemplate(PageTemplate value) Set the template which is used to render the prefix, e.g. a table of contentsvoidsetSuffixTemplate(PageTemplate value) Set the template which is used to render the suffix, e.g. an indexvoidsetTemplateExtension(String value) Defines the extension used for resolving templates.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.access.store.ContentProducer
createContent, getExtension, getMultiPageParams, getStoredUrl, getUrlMethods 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, 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.Previewable
getPreviewUrl, getPreviewUrlObjectMethods inherited from interface de.espirit.firstspirit.access.store.Referenceable
getReferenceNameMethods inherited from interface de.espirit.firstspirit.access.store.StoreElement
delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, 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, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXmlMethods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Field Details
-
UID_TYPE
Uid type as returned bygetUidType().- Since:
- 4.0.24
-
-
Method Details
-
getPrefixTemplate
Get the template which is used to render the prefix, e.g. a table of contents- Since:
- 3.0.57
-
setPrefixTemplate
Set the template which is used to render the prefix, e.g. a table of contents- Since:
- 3.0.57
-
getSuffixTemplate
Get the template which is used to render the suffix, e.g. an index- Since:
- 3.0.57
-
setSuffixTemplate
Set the template which is used to render the suffix, e.g. an index- Since:
- 3.0.57
-
getGenerateFor
TemplateSet[] getGenerateFor()The template sets for which this document group should be generated- Since:
- 3.0.54
-
setGenerateFor
Defines to generate this group for the given list of template sets.- Parameters:
value- An array of template sets.- Since:
- 3.0.56
-
setGenerateForToAll
void setGenerateForToAll()Defines to generate for all template sets.- Since:
- 3.0.57
-
getGenerateForAll
boolean getGenerateForAll()Indicates, whether to generate for all template sets.- Returns:
true, if to generate for all.- Since:
- 3.0.57
-
getFilename
Provides the file name of this group.- Specified by:
getFilenamein interfaceContentProducer- Returns:
- The file name.
- Since:
- 3.0.57
-
setFilename
Defines the file name for this group.- Parameters:
value- The file name.- Since:
- 3.0.57
-
getComment
String getComment()Provides a comment for this group.- Returns:
- A comment.
- Since:
- 3.0.64
-
setComment
Defines the comment for this group.- Parameters:
value- The comment.- Since:
- 3.0.64
-
getTemplateExtension
String getTemplateExtension()Value of the extension used when resolving templates.- Returns:
- The value.
- Since:
- 3.0.57
-
setTemplateExtension
Defines the extension used for resolving templates.- Parameters:
value- The extension.- Since:
- 3.0.57
-
containsElement
Indicates whether the given element is part of this document group.- Parameters:
element- the element to test- Returns:
trueif the provided element part this document group, either direct by alinkor indirect by alinkon one of its anchestores- Throws:
NullPointerException- when provided element isnull- Since:
- 3.0.57
-
getDefaultTemplateSet
TemplateSet getDefaultTemplateSet()Gives the default template set to be used.- Returns:
- The default template set.
- Since:
- 3.0.57
-
setDefaultTemplateSet
Defines the default template set to be used.- Parameters:
value- A template set.- Since:
- 3.0.57
-
addLink
Adds a link to the given target element.- Parameters:
target- The target element.- Returns:
- A targetting link.
- Since:
- 4.0
-
appendChild
Appends a child element to this group, which must be an instance of eitherDocLinkwhith aPageReforSiteStoreFolder.- Specified by:
appendChildin interfaceStoreElement- Parameters:
child- The child element.- Throws:
IllegalArgumentException- if the child does not fulfills the restrictions above- Since:
- 3.0
- See Also:
-
appendChildBefore
void appendChildBefore(@NotNull @NotNull StoreElement child, @Nullable @Nullable StoreElement before) Appends a child element to this group, inserting it before a reference element. The child to add must be an instance of eitherDocLinkwhith aPageReforSiteStoreFolder.- Specified by:
appendChildBeforein interfaceStoreElement- Parameters:
child- The child element.before- The reference element.- Throws:
IllegalArgumentException- if the child does not fulfills the restrictions above- Since:
- 3.0.3
- See Also:
-
replaceChild
Replaces a child element with another.- Specified by:
replaceChildin interfaceStoreElement- Parameters:
oldChild- The old child.newChild- The new child.- Throws:
IllegalArgumentException- if the new child does not fulfills the restrictions above- Since:
- 3.0.7
- See Also:
-
getUidType
ReturnUID_TYPE.- Specified by:
getUidTypein interfaceIDProvider- Returns:
- the unique identifier
- Since:
- 4.0.24
- See Also:
-