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.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 bygetUidType()
.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.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.void
appendChild
(StoreElement child) Appends a child element to this group, which must be an instance of eitherDocLink
whith aPageRef
orSiteStoreFolder
.void
appendChildBefore
(@NotNull StoreElement child, @Nullable StoreElement before) Appends a child element to this group, inserting it before a reference element.boolean
containsElement
(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 String
Provides the file name of this group.The template sets for which this document group should be generatedboolean
Indicates, whether to generate for all template sets.@Nullable PageTemplate
Get the template which is used to render the prefix, e.g. a table of contents@Nullable PageTemplate
Get the template which is used to render the suffix, e.g. an indexValue of the extension used when resolving templates.@NotNull IDProvider.UidType
ReturnUID_TYPE
.void
replaceChild
(StoreElement oldChild, StoreElement newChild) Replaces a child element with another.void
setComment
(String value) Defines the comment for this group.void
setDefaultTemplateSet
(TemplateSet value) Defines the default template set to be used.void
setFilename
(String value) Defines the file name for this group.void
setGenerateFor
(TemplateSet[] value) Defines to generate this group for the given list of template sets.void
Defines to generate for all template sets.void
setPrefixTemplate
(PageTemplate value) Set the template which is used to render the prefix, e.g. a table of contentsvoid
setSuffixTemplate
(PageTemplate value) Set the template which is used to render the suffix, e.g. an indexvoid
setTemplateExtension
(String value) Defines the extension used for resolving templates.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.espirit.firstspirit.access.store.ContentProducer
createContent, getExtension, getMultiPageParams, getStoredUrl, getUrl
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, hasMeta, hasUid, isInReleaseStore, isReleased, isReleaseSupported, moveChild, moveChild, release, release, revert, setDisplayName, setMeta, setMetaFormData, setUid
Methods inherited from interface de.espirit.firstspirit.access.store.Previewable
getPreviewUrl, getPreviewUrlObject
Methods inherited from interface de.espirit.firstspirit.access.store.Referenceable
getReferenceName
Methods 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, 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, toXml
Methods 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:
getFilename
in 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:
true
if the provided element part this document group, either direct by alink
or indirect by alink
on 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 eitherDocLink
whith aPageRef
orSiteStoreFolder
.- Specified by:
appendChild
in 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 eitherDocLink
whith aPageRef
orSiteStoreFolder
.- Specified by:
appendChildBefore
in 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:
replaceChild
in 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:
getUidType
in interfaceIDProvider
- Returns:
- the unique identifier
- Since:
- 4.0.24
- See Also:
-