Interface Content2
- All Superinterfaces:
Comparable<StoreElement>,DatasetProvider,HistoryProvider,IDProvider,PackagePoolItem,StoreElement,StoreElementFolder,TemplateProvider<TableTemplate>,Workflowable
@NonExtendable
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.RevisionProviderNested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IDProvider.UidTypeUid type as returned byIDProvider.getUidType().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, UNMODIFIED -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.@NotNull Content2ParamsReturns the params of this content2.getData()Deprecated.since 5.1.102, usegetDatasets()Deprecated.since 5.1.102, usegetDatasets(Language).@NotNull DatasetgetDataset(@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(boolean release) Returns the list of datasets respecting defined filter, ordering and release state by using the projects master language.
Shortcut forgetDatasets(getProject().getMasterLanguage(), release)).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:getDatasets(@NotNull Language language, boolean release) Returns the list of datasets respecting defined filter, ordering and release state.
Internally this list is constructed lazily, to maintain this feature one should wrap this list if e.g. onlyDataset.getEntity()is needed:@Nullable EntityReturns the entity found for givenkeyValueornull.@NotNull EntityTypeReturns the entity type this content2 belongs to.@NotNull SchemaReturns the schema this content2 refers to.@NotNull TableTemplateReturns theTableTemplateof this content2 node.@Nullable WorkflowablegetWorkflowable(Entity entity) Get a workflowable instance for the provided entity.booleanbooleanDeprecated.since 5.2.201 - useStoreElement.isLocked()instead.booleanisLockedOnServer(Entity entity, boolean allSessions) Deprecated.since 5.2.201 - useStoreElement.isLockedOnServer(boolean)instead.voidDeprecated.since 5.2.201 - useDataset#setLock(true)instead.voidDeprecated.since 5.2.201 - useIDProvider.release()instead.voidDeprecated.since 5.2.201 - useIDProvider.release()instead.voidDeprecated.since 5.2.201 - useDataset#setLock(false)instead.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.access.store.contentstore.DatasetProvider
createDataset, getDatasetMethods 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.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, 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
-
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:
getSchemain interfaceDatasetProvider- Returns:
- The schema.
- Since:
- 3.0
-
getTemplate
Returns theTableTemplateof this content2 node.- Specified by:
getTemplatein 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:
getEntityTypein interfaceDatasetProvider- Returns:
- the belonging EntityType or throws
EntityTypeNotFoundException - Since:
- 4.0
-
getEntity
Returns the entity found for givenkeyValueornull.- Returns:
- The entity found for given
keyValueornull. - 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:
-
getDatasets
Returns the list of datasets respecting defined filter, ordering and release state by using the projects master language.
Shortcut forgetDatasets(getProject().getMasterLanguage(), release)).- Returns:
- The list of entities respecting defined filter, ordering and release state.
- Since:
- 5.2.250807
- 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:
-
getDatasets
Returns the list of datasets respecting defined filter, ordering and release state.
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, release); 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.release- Iftrue, the datasets in release state are returned, otherwise the datasets in the current state are returned.- Returns:
- The list of entities respecting defined filter, ordering and release state.
- Since:
- 5.2.250807
- 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,falseelse- 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. Returnsnullif the provided entity isnullor 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:
getDatasetin 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.