Interface Content2Section
- All Superinterfaces:
Comparable<StoreElement>,DataProvider,HistoryProvider,IDProvider,MultiPageParamsProvider,PackagePoolItem,Section<TableTemplate>,StoreElement,TemplateProvider<TableTemplate>,Workflowable
This is a section which renders new content.
- Since:
- 3.0
- See Also:
-
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
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.pagestore.Section
OPEN_ENDED -
Method Summary
Modifier and TypeMethodDescriptionvoidexcludeFromOutput(Language language) A language cannot be excluded in the output of the generation, so every call will throw an exception.getMultiPageParams(@NotNull Language language) Delivers aContentMultiPageParamswhereContentMultiPageParams.getData()delivers a list with one entry.Returns thenameof theentity typethis content section belongs to.@NotNull TableTemplateReturns thetable templatethis content section belongs to.@NotNull TableTemplateReturns the template of this element.voidincludeInOutput(Language language) Has no effect, no language can be excluded in the output of the generation.booleanisInOutputIncluded(Language language) Returnstrueas content2 sections are categorical included in the output.voidsetLifespan(long from, long to) Content sections support no lifespan - will result in anUnsupportedOperationException.voidsetTemplate(@NotNull TableTemplate template) Throws anUnsupportedOperationExceptionas changing the template is not supported.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.access.store.pagestore.DataProvider
clearCachedData, getData, getFormData, setData, setFormDataMethods 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.pagestore.Section
getLifespan, getName, isInLifespan, isInLifespan, isReference, removeLifespan, resolveSection, setNameMethods 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, 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.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Method Details
-
getTableTemplate
Returns thetable templatethis content section belongs to.- Returns:
- de.espirit.firstspirit.access.store.templatestore.TableTemplate
- Throws:
ReferenceNotFoundException- if table template is missing- Since:
- 3.0
-
getTableName
String getTableName()Returns thenameof theentity typethis content section belongs to.- Returns:
- java.lang.String
- Since:
- 3.0
-
getTemplate
Returns the template of this element.- Specified by:
getTemplatein interfaceSection<TableTemplate>- Specified by:
getTemplatein interfaceTemplateProvider<TableTemplate>- Returns:
- the template of type <T>
- Throws:
ReferenceNotFoundException- if the template is missing- Since:
- 3.0
-
setTemplate
Throws anUnsupportedOperationExceptionas changing the template is not supported.- Specified by:
setTemplatein interfaceSection<TableTemplate>- Parameters:
template- new template- Throws:
UnsupportedOperationException- always- Since:
- 4.1.25
-
setLifespan
Content sections support no lifespan - will result in anUnsupportedOperationException.- Specified by:
setLifespanin interfaceSection<TableTemplate>- 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- Throws:
UnsupportedOperationException- always- Since:
- 3.0
- See Also:
-
includeInOutput
Has no effect, no language can be excluded in the output of the generation.- Specified by:
includeInOutputin interfaceSection<TableTemplate>- Parameters:
language- the language to include this section for- Since:
- 3.0
-
excludeFromOutput
A language cannot be excluded in the output of the generation, so every call will throw an exception.- Specified by:
excludeFromOutputin interfaceSection<TableTemplate>- Parameters:
language- the language to exclude for this section- Throws:
UnsupportedOperationException- always- Since:
- 3.0
-
isInOutputIncluded
Returnstrueas content2 sections are categorical included in the output.- Specified by:
isInOutputIncludedin interfaceSection<TableTemplate>- Parameters:
language- the language to check this section for- Returns:
trueregardless of the parameter- Since:
- 3.0
-
getMultiPageParams
Delivers aContentMultiPageParamswhereContentMultiPageParams.getData()delivers a list with one entry.- Specified by:
getMultiPageParamsin interfaceMultiPageParamsProvider- Parameters:
language- this parameter is ignored- Since:
- 4.0
-