Interface Content2
- All Superinterfaces:
Comparable<StoreElement>
,DatasetProvider
,HistoryProvider
,IDProvider
,PackagePoolItem
,StoreElement
,StoreElementFolder
,TemplateProvider<TableTemplate>
,Workflowable
public interface Content2
extends TemplateProvider<TableTemplate>, PackagePoolItem, StoreElementFolder, DatasetProvider
Interface providing means to operate on content2 elements.
- Since:
- 3.0
-
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 byIDProvider.getUidType()
.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.PackagePoolItem
BLOCKED, MODIFIED, UNMODIFIED
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.@NotNull Content2Params
Returns the params of this content2.getData()
Deprecated.since 5.1.102, usegetDatasets()
Deprecated.since 5.1.102, usegetDatasets(Language)
.@NotNull Dataset
getDataset
(@NotNull Entity entity) Get a dataset for the given entity.Returns the list of datasets respecting defined filter and ordering.
Shortcut forgetData(getProject().getMasterLanguage()))
.getDatasets
(@NotNull Language language) Returns the list of datasets respecting defined filter and ordering.
Internally this list is constructed lazily, to maintain this feature one should wrap this list if e.g. onlyDataset.getEntity()
is needed:@Nullable Entity
Returns the entity found for givenkeyValue
ornull
.@NotNull EntityType
Returns the entity type this content2 belongs to.@NotNull Schema
Returns the schema this content2 refers to.@NotNull TableTemplate
Returns theTableTemplate
of this content2 node.@Nullable Workflowable
getWorkflowable
(Entity entity) Get a workflowable instance for the provided entity.boolean
boolean
Deprecated.since 5.2.201 - useStoreElement.isLocked()
instead.boolean
isLockedOnServer
(Entity entity, boolean allSessions) Deprecated.since 5.2.201 - useStoreElement.isLockedOnServer(boolean)
instead.void
Deprecated.since 5.2.201 - useDataset#setLock(true)
instead.void
Deprecated.since 5.2.201 - useIDProvider.release()
instead.void
Deprecated.since 5.2.201 - useIDProvider.release()
instead.void
Deprecated.since 5.2.201 - useDataset#setLock(false)
instead.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.espirit.firstspirit.access.store.contentstore.DatasetProvider
createDataset, getDataset
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, getUidType, hasMeta, hasUid, isInReleaseStore, isReleased, isReleaseSupported, moveChild, moveChild, release, release, revert, setDisplayName, setMeta, setMetaFormData, setUid
Methods inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeState
Methods 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, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getPreviousSibling, 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
Methods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Field Details
-
UID_TYPE
Uid type as returned byIDProvider.getUidType()
.- Since:
- 4.0.43
-
-
Method Details
-
getSchema
Returns the schema this content2 refers to.- Specified by:
getSchema
in interfaceDatasetProvider
- Returns:
- The schema.
- Since:
- 3.0
-
getTemplate
Returns theTableTemplate
of this content2 node.- Specified by:
getTemplate
in interfaceTemplateProvider<TableTemplate>
- Returns:
- the template of type <T>
- Throws:
ReferenceNotFoundException
- if the template is missing- Since:
- 3.0
-
getEntityType
Returns the entity type this content2 belongs to.- Specified by:
getEntityType
in interfaceDatasetProvider
- Returns:
- the belonging EntityType or throws
EntityTypeNotFoundException
- Since:
- 4.0
-
getEntity
Returns the entity found for givenkeyValue
ornull
.- Returns:
- The entity found for given
keyValue
ornull
. - Since:
- 4.0
-
getData
Deprecated.since 5.1.102, usegetDatasets()
Returns the list of entities respecting defined filter and ordering.
Shortcut forgetData(getProject().getMasterLanguage()))
.- Returns:
- The list of entities respecting defined filter and ordering.
- Since:
- 3.0
- See Also:
-
getDatasets
Returns the list of datasets respecting defined filter and ordering.
Shortcut forgetData(getProject().getMasterLanguage()))
.- Returns:
- The list of entities respecting defined filter and ordering.
- Since:
- 5.1.102
- See Also:
-
getData
Deprecated.since 5.1.102, usegetDatasets(Language)
.Returns the list of entities respecting defined filter and ordering.- Parameters:
language
- The project language to be used for select.- Returns:
- The list of entities respecting defined filter and ordering.
- Since:
- 4.2.442
- See Also:
-
getDatasets
Returns the list of datasets respecting defined filter and ordering.
Internally this list is constructed lazily, to maintain this feature one should wrap this list if e.g. onlyDataset.getEntity()
is needed:final List<Dataset> datasets = content.getDatasets(language); final List<Entity> entities = new AbstractList<Entity>() { public Entity get(int i) { return datasets.get(i).getEntity(); } public int size() { return datasets.size() } };
- Parameters:
language
- The project language to be used for select.- Returns:
- The list of entities respecting defined filter and ordering.
- Since:
- 5.1.102
- See Also:
-
lock
Deprecated.since 5.2.201 - useDataset#setLock(true)
instead.- Throws:
LockException
- Since:
- 4.0
-
unlock
Deprecated.since 5.2.201 - useDataset#setLock(false)
instead.- Throws:
LockException
- Since:
- 4.0
-
isLocked
Deprecated.since 5.2.201 - useStoreElement.isLocked()
instead.Indicates that the given entity is in lock state in the current session.- Parameters:
entity
- The entity to check its state of.- Returns:
true
, if the entity is locked,false
else- Since:
- 4.2.30
-
isLockedOnServer
Deprecated.since 5.2.201 - useStoreElement.isLockedOnServer(boolean)
instead.Indicates that the given entity is locked on server side.- Parameters:
entity
- The entity in question.allSessions
- Iftrue
, all sessions are checked, otherwise, only the current session is checked.- Returns:
true
, if locked on server.- Since:
- 5.0.404
-
release
Deprecated.since 5.2.201 - useIDProvider.release()
instead.- Throws:
LockException
- Since:
- 4.0
-
release
Deprecated.since 5.2.201 - useIDProvider.release()
instead.- Throws:
LockException
- Since:
- 4.1.23
-
delete
Deprecated.since 5.2.201 - useStoreElement.delete()
instead.- Throws:
LockException
- Since:
- 4.0
-
getWorkflowable
Get a workflowable instance for the provided entity. Returnsnull
if the provided entity isnull
or workflows for the provided entity are not supported (e.g. because the corresponding schema isread only
).- Since:
- 4.0
-
getDataset
Get a dataset for the given entity.- Specified by:
getDataset
in interfaceDatasetProvider
- Parameters:
entity
- The entity to get as Dataset.- Returns:
- A dataset on the given entity.
- Since:
- 4.0.30
-
getContent2Params
Returns the params of this content2.- Returns:
- The params of this content2.
- Since:
- 4.0.130
-
isFiltered
boolean isFiltered()- Since:
- 4.1
- See Also:
-
StoreElement.delete()
instead.