Interface Section<T extends SectionTemplate>
- All Superinterfaces:
- Comparable<StoreElement>,- DataProvider,- HistoryProvider,- IDProvider,- PackagePoolItem,- StoreElement,- TemplateProvider<T>,- Workflowable
- All Known Subinterfaces:
- Content2Section,- GCASection,- SectionReference<T>
@NonExtendable
public interface Section<T extends SectionTemplate>
extends DataProvider, TemplateProvider<T>, PackagePoolItem
This interface provides methods to handle the sections of Pages in the PageStore.
 A Page-Body in PageStore can have zero or several sections.
 To get all sections for a Page-body, use 
Body.getChildren(Section.class).- Since:
- 3.0
- 
Nested Class SummaryNested classes/interfaces inherited from interface de.espirit.firstspirit.storage.HistoryProviderHistoryProvider.RevisionProviderNested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProviderIDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
- 
Field SummaryFieldsFields inherited from interface de.espirit.firstspirit.storage.HistoryProviderALL_REVISIONS, EVER_SINCE, UNTIL_NOWFields inherited from interface de.espirit.firstspirit.access.store.IDProviderCHANGED, NEVER_RELEASED, RELEASEDFields inherited from interface de.espirit.firstspirit.access.store.PackagePoolItemBLOCKED, MODIFIED, UNMODIFIED
- 
Method SummaryModifier and TypeMethodDescriptionvoidexcludeFromOutput(Language language) Excludes this section from the output for the given language.long @Nullable []Get the lifespan of the current section if there is one defined.@NotNull StringgetName()Get the name of the sectionReturns the template of this element.voidincludeInOutput(Language language) Includes this section in the output for the given language.booleanIndicates whether theactual timeis included in the lifespan of this section.booleanisInLifespan(long time) Indicates whether the given timestamp is included in the lifespan of this section.booleanisInOutputIncluded(Language language) Checks if this section is included in the output for the given language.booleanIs this a reference section?voidRemove lifespan of the current section.Resolves the actualSectionby following all references.voidsetLifespan(long from, long to) Set the lifespan of the current section.voidSet the name of a sectionvoidsetTemplate(T template) Set the template for this section.Methods inherited from interface java.lang.ComparablecompareToMethods inherited from interface de.espirit.firstspirit.access.store.pagestore.DataProviderclearCachedData, getData, getFormData, setData, setFormDataMethods inherited from interface de.espirit.firstspirit.storage.HistoryProviderasRevisionProvider, getHistory, getHistoryMethods inherited from interface de.espirit.firstspirit.access.store.IDProvidercontrastWith, 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.PackagePoolItemaddToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeStateMethods inherited from interface de.espirit.firstspirit.access.store.StoreElementappendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getPreviousSibling, getProject, getReferenceName, 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.WorkflowablegetColor, getTask, hasTask, removeTask, setColor, setTask
- 
Field Details- 
OPEN_ENDEDstatic final long OPEN_ENDEDIndicator for open ended lifespan- Since:
- 4.0.129
- See Also:
 
 
- 
- 
Method Details- 
getNameGet the name of the section- Specified by:
- getNamein interface- StoreElement
- Returns:
- name of the section
- Since:
- 3.0
 
- 
setNameSet the name of a section- Parameters:
- name- new name of a section
- Since:
- 3.0
 
- 
getTemplate@ApiDoc(comment="Returns the template of this element.", since="3.0") @NotNull T getTemplate() throws ReferenceNotFoundExceptionReturns the template of this element.- Specified by:
- getTemplatein interface- TemplateProvider<T extends SectionTemplate>
- Returns:
- the template of type <T>
- Throws:
- ReferenceNotFoundException- if the template is missing
- Since:
- 3.0
 
- 
setTemplate@ApiDoc(comment="Set the template for this section.", since="4.1.25") void setTemplate(@NotNull T template) Set the template for this section.- Parameters:
- template- new template
- Throws:
- NullPointerException- if- sectionTemplateis- null
- Since:
- 4.1.25
 
- 
getLifespan@ApiDoc(comment="Get the lifespan of the current section if there is one defined.", since="3.0") long @Nullable [] getLifespan()Get the lifespan of the current section if there is one defined.- Returns:
- nullor an array with two elements: 1.) start date, 2.) end date or- -1Lfor no restriction.
- Since:
- 3.0
- See Also:
 
- 
setLifespan@ApiDoc(comment="Set the lifespan of the current section.", since="3.0") void setLifespan(long from, long to) Set the lifespan of the current section.- Parameters:
- from- start date for lifespan (in milliseconds since 1.1.1970 0:00 UTC)
- to- end date for lifespan (in milliseconds since 1.1.1970 0:00 UTC) or- -1Lfor no restriction
- Since:
- 3.0
- See Also:
 
- 
removeLifespanRemove lifespan of the current section.- Since:
- 3.0
- See Also:
 
- 
isInLifespan@ApiDoc(comment="Indicates whether the actual time is included in the lifespan of this section.", since="4.0") boolean isInLifespan()Indicates whether theactual timeis included in the lifespan of this section. CallsisInLifepan(System.currentTimeMillis()).- Returns:
- trueif no lifespan is set or the actual time is included in the lifespan.
- Since:
- 4.0
- See Also:
 
- 
isInLifespan@ApiDoc(comment="Indicates whether the given timestamp is included in the lifespan of this section.", since="4.2.200") boolean isInLifespan(long time) Indicates whether the given timestamp is included in the lifespan of this section.- Parameters:
- time- the timestamp to check the lifespan for
- Returns:
- trueif no lifespan is set or the given time is included in the lifespan,- falseotherwise
- Since:
- 4.2.200
- See Also:
 
- 
includeInOutput@ApiDoc(comment="Includes this section in the output for the given language.", since="3.0") void includeInOutput(Language language) Includes this section in the output for the given language.- Parameters:
- language- the language to include this section for
- Since:
- 3.0
 
- 
excludeFromOutput@ApiDoc(comment="Excludes this section from the output for the given language.", since="3.0") void excludeFromOutput(Language language) Excludes this section from the output for the given language.- Parameters:
- language- the language to exclude for this section
- Since:
- 3.0
 
- 
isInOutputIncluded@ApiDoc(comment="Checks if this section is included in the output for the given language.", since="3.0") boolean isInOutputIncluded(Language language) Checks if this section is included in the output for the given language.- Parameters:
- language- the language to check this section for
- Returns:
- trueif this section is included in the output for this language
- Since:
- 3.0
 
- 
isReferenceIs this a reference section?- Returns:
- trueif this section is a reference section
- Since:
- 3.0
 
- 
resolveSectionResolves the actualSectionby following all references.- Returns:
- The referenced section that is not a SectionReference, i.e. whereisReference()returns false.
- Since:
- 5.2.250502
 
 
-