T
- type of entityK
- type of entity IDpublic interface GroupDatasource<T extends Entity<K>,K> extends CollectionDatasource<T,K>
CollectionDatasource.Aggregatable<T extends Entity<K>,K>, CollectionDatasource.CollectionChangeEvent<T extends Entity<K>,K>, CollectionDatasource.CollectionChangeListener<T extends Entity<K>,K>, CollectionDatasource.Indexed<T extends Entity<K>,K>, CollectionDatasource.Lazy<T extends Entity<K>,K>, CollectionDatasource.Operation, CollectionDatasource.Ordered<T extends Entity<K>,K>, CollectionDatasource.RefreshMode, CollectionDatasource.Sortable<T extends Entity<K>,K>, CollectionDatasource.SupportsApplyToSelected<T extends Entity<K>,K>, CollectionDatasource.SupportsPaging<T extends Entity<K>,K>, CollectionDatasource.SupportsRefreshMode<T extends Entity<K>,K>, CollectionDatasource.Suspendable<T extends Entity<K>,K>
Datasource.CommitMode, Datasource.ItemChangeEvent<T extends Entity>, Datasource.ItemChangeListener<T extends Entity>, Datasource.ItemPropertyChangeEvent<T extends Entity>, Datasource.ItemPropertyChangeListener<T extends Entity>, Datasource.State, Datasource.StateChangeEvent<T extends Entity>, Datasource.StateChangeListener<T extends Entity>
Modifier and Type | Method and Description |
---|---|
boolean |
containsGroup(GroupInfo groupId)
Indicates that a group is contained in the groups tree
|
java.util.List<Entity> |
getChildItems(GroupInfo groupId) |
java.util.List<GroupInfo> |
getChildren(GroupInfo groupId) |
java.util.Collection<K> |
getGroupItemIds(GroupInfo groupId) |
int |
getGroupItemsCount(GroupInfo groupId) |
java.util.List<GroupInfo> |
getGroupPath(Entity entity) |
java.util.Collection<?> |
getGroupProperties() |
java.lang.Object |
getGroupProperty(GroupInfo groupId) |
java.lang.Object |
getGroupPropertyValue(GroupInfo groupId) |
java.util.List<Entity> |
getOwnChildItems(GroupInfo groupId) |
GroupInfo |
getParentGroup(Entity entity) |
void |
groupBy(java.lang.Object[] properties)
Perform grouping by the list of properties
|
boolean |
hasChildren(GroupInfo groupId)
Indicates that group has nested groups
|
boolean |
hasGroups()
Indicated that a datasource has groups
|
java.util.List<GroupInfo> |
rootGroups() |
addCollectionChangeListener, addItem, clear, containsItem, excludeItem, getCompiledLoadContext, getItem, getItemIds, getItemNN, getItems, getLastRefreshParameters, getMaxResults, getQuery, getQueryFilter, getRefreshOnComponentValueChange, includeItem, isCacheable, isSoftDeletion, modifyItem, refresh, removeCollectionChangeListener, removeItem, resumeListeners, revert, setCacheable, setMaxResults, setQuery, setQuery, setQueryFilter, setRefreshOnComponentValueChange, setSoftDeletion, size, suspendListeners, updateItem
addItemChangeListener, addItemPropertyChangeListener, addListener, addStateChangeListener, commit, getCommitMode, getDataSupplier, getDsContext, getId, getItem, getItemIfValid, getLoadDynamicAttributes, getMetaClass, getState, getView, invalidate, isAllowCommit, isModified, refresh, removeItemChangeListener, removeItemPropertyChangeListener, removeListener, removeStateChangeListener, setAllowCommit, setItem, setLoadDynamicAttributes, setup
void groupBy(java.lang.Object[] properties)
java.util.List<GroupInfo> rootGroups()
boolean hasChildren(GroupInfo groupId)
java.util.List<GroupInfo> getChildren(GroupInfo groupId)
java.util.List<Entity> getOwnChildItems(GroupInfo groupId)
java.util.List<Entity> getChildItems(GroupInfo groupId)
@Nullable GroupInfo getParentGroup(Entity entity)
java.util.List<GroupInfo> getGroupPath(Entity entity)
java.lang.Object getGroupProperty(GroupInfo groupId)
java.lang.Object getGroupPropertyValue(GroupInfo groupId)
java.util.Collection<K> getGroupItemIds(GroupInfo groupId)
int getGroupItemsCount(GroupInfo groupId)
boolean hasGroups()
java.util.Collection<?> getGroupProperties()
boolean containsGroup(GroupInfo groupId)