public interface SectionReference<T extends SectionTemplate> extends Section<T>
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
OPEN_ENDED
BLOCKED, MODIFIED, UNMODIFIED
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
long[] |
getLifespan()
Get the lifespan of the referenced source section if there is one defined.
|
Section<T> |
getReference()
Return the referenced source
Section . |
boolean |
isInLifespan()
Indicates whether the
actual time is included in the lifespan of of the
referenced source section. |
boolean |
isInLifespan(long time)
Indicates whether the given timestamp is included in the lifespan of of the referenced source section.
|
void |
removeLifespan()
Throws an
UnsupportedOperationException . |
void |
setLifespan(long from,
long to)
Throws an
UnsupportedOperationException . |
void |
setTemplate(SectionTemplate template)
Throws an
UnsupportedOperationException . |
excludeFromOutput, getName, getTemplate, includeInOutput, isInOutputIncluded, isReference, setName
clearCachedData, getData, getFormData, setData, setFormData
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeState
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, setMeta, setMetaFormData, setUid
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getProject, getReferenceName, 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, update
getColor, getTask, hasTask, removeTask, setColor, setTask
compareTo
asRevisionProvider, getHistory, getHistory
void setTemplate(@NotNull SectionTemplate template)
UnsupportedOperationException
.setTemplate
in interface Section<T extends SectionTemplate>
template
- new templateUnsupportedOperationException
- always@NotNull Section<T> getReference() throws ReferenceNotFoundException
Section
.ReferenceNotFoundException
- if source section is missing@Nullable long[] getLifespan()
getLifespan
in interface Section<T extends SectionTemplate>
null
or an array with two elements: 1.) start date, 2.) end date or -1L
for no restriction.isInLifespan()
void setLifespan(long from, long to)
UnsupportedOperationException
.setLifespan
in interface Section<T extends SectionTemplate>
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 -1L
for no restrictionUnsupportedOperationException
- alwaysSection.getLifespan()
,
Section.removeLifespan()
,
Section.isInLifespan()
void removeLifespan()
UnsupportedOperationException
.removeLifespan
in interface Section<T extends SectionTemplate>
UnsupportedOperationException
- alwaysSection.getLifespan()
,
Section.setLifespan(long, long)
,
Section.isInLifespan()
boolean isInLifespan()
actual time
is included in the lifespan of of the
referenced source section. Calls isInLifepan(System.currentTimeMillis())
.isInLifespan
in interface Section<T extends SectionTemplate>
true
if no lifespan is set or the actual time is included in the lifespan.getLifespan()
boolean isInLifespan(long time)
isInLifespan
in interface Section<T extends SectionTemplate>
time
- the timestamp to check the lifespan fortrue
if no lifespan is set or the given time is included in the lifespan, false
otherwisegetLifespan()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500