public interface Content2 extends TemplateProvider<TableTemplate>, PackagePoolItem, StoreElementFolder, DatasetProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
Modifier and Type | Field and Description |
---|---|
static IDProvider.UidType |
UID_TYPE
Uid type as returned by
IDProvider.getUidType() . |
BLOCKED, MODIFIED, UNMODIFIED
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
void |
delete(Entity entity)
Deprecated.
since 5.2.201 - use
StoreElement.delete() instead. |
Content2Params |
getContent2Params()
Returns the params of this content2.
|
List<? extends Entity> |
getData()
Deprecated.
since 5.1.102, use
getDatasets() |
List<? extends Entity> |
getData(Language language)
Deprecated.
since 5.1.102, use
getDatasets(Language) . |
Dataset |
getDataset(Entity entity)
Get a dataset for the given entity.
|
List<Dataset> |
getDatasets()
Returns the list of datasets respecting defined filter and ordering.
|
List<Dataset> |
getDatasets(Language language)
Returns the list of datasets respecting defined filter and ordering.
|
Entity |
getEntity(Object keyValue)
Returns the entity found for given
keyValue or null . |
EntityType |
getEntityType()
Returns the entity type this content2 belongs to.
|
Schema |
getSchema()
Returns the schema this content2 refers to.
|
TableTemplate |
getTemplate()
Returns the
TableTemplate of this content2 node. |
Workflowable |
getWorkflowable(Entity entity)
Get a workflowable instance for the provided entity.
|
boolean |
isFiltered()
Returns
true if the view is filterd
(getContent2Params() . |
boolean |
isLocked(Entity entity)
Deprecated.
since 5.2.201 - use
StoreElement.isLocked() instead. |
boolean |
isLockedOnServer(Entity entity,
boolean allSessions)
Deprecated.
since 5.2.201 - use
StoreElement.isLockedOnServer(boolean) instead. |
void |
lock(Entity entity)
Deprecated.
since 5.2.201 - use
Dataset#setLock(true) instead. |
void |
release(Entity entity)
Deprecated.
since 5.2.201 - use
IDProvider.release() instead. |
void |
release(Entity entity,
String comment)
Deprecated.
since 5.2.201 - use
IDProvider.release() instead. |
void |
unlock(Entity entity)
Deprecated.
since 5.2.201 - use
Dataset#setLock(false) instead. |
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, setDisplayName, setMeta, setMetaFormData, setUid
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
getColor, getTask, hasTask, removeTask, setColor, setTask
compareTo
asRevisionProvider, getHistory, getHistory
createDataset, getDataset
static final IDProvider.UidType UID_TYPE
IDProvider.getUidType()
.@NotNull Schema getSchema()
getSchema
in interface DatasetProvider
@NotNull TableTemplate getTemplate()
TableTemplate
of this content2 node.getTemplate
in interface TemplateProvider<TableTemplate>
@NotNull EntityType getEntityType()
getEntityType
in interface DatasetProvider
EntityTypeNotFoundException
@Nullable Entity getEntity(Object keyValue)
keyValue
or null
.keyValue
or null
.@Deprecated List<? extends Entity> getData()
getDatasets()
getData(getProject().getMasterLanguage()))
.getContent2Params()
,
isFiltered()
List<Dataset> getDatasets()
getData(getProject().getMasterLanguage()))
.getContent2Params()
,
isFiltered()
@Deprecated List<? extends Entity> getData(@NotNull Language language)
getDatasets(Language)
.language
- The project language to be used for select.getContent2Params()
,
isFiltered()
List<Dataset> getDatasets(@NotNull Language language)
Dataset.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() }
};
language
- The project language to be used for select.getContent2Params()
,
isFiltered()
@Deprecated void lock(Entity entity) throws LockException
Dataset#setLock(true)
instead.LockException
@Deprecated void unlock(Entity entity) throws LockException
Dataset#setLock(false)
instead.LockException
@Deprecated boolean isLocked(Entity entity)
StoreElement.isLocked()
instead.entity
- The entity to check its state of.true
, if the entity is locked, false
else@Deprecated boolean isLockedOnServer(Entity entity, boolean allSessions)
StoreElement.isLockedOnServer(boolean)
instead.entity
- The entity in question.allSessions
- If true
, all sessions are checked, otherwise, only the current session is checked.true
, if locked on server.@Deprecated void release(Entity entity) throws LockException
IDProvider.release()
instead.LockException
@Deprecated void release(Entity entity, String comment) throws LockException
IDProvider.release()
instead.LockException
@Deprecated void delete(Entity entity) throws LockException
StoreElement.delete()
instead.LockException
@Nullable Workflowable getWorkflowable(Entity entity)
null
if the provided entity is null
or workflows for the provided entity are not supported (e.g. because the corresponding schema is
read only
).@NotNull Dataset getDataset(@NotNull Entity entity)
getDataset
in interface DatasetProvider
entity
- The entity to get as Dataset.@NotNull Content2Params getContent2Params()
boolean isFiltered()
getContent2Params()
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210