public class MultiplePermissionTargetsDatasource extends CollectionDatasourceImpl<MultiplePermissionTarget,java.lang.String>
AbstractCollectionDatasource.ComponentValueListener
AbstractDatasource.ItemListener
CollectionDatasource.Sortable.Order, CollectionDatasource.Sortable.SortInfo<P>
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.SortDelegate<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.SupportsSortDelegate<T extends Entity<K>,K>, CollectionDatasource.Suspendable<T extends Entity<K>,K>, CollectionDatasource.UnmuteEventsMode
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 | Field and Description |
---|---|
protected CollectionDatasource<Permission,java.util.UUID> |
permissionDs |
protected java.util.function.Predicate<MultiplePermissionTarget> |
permissionsFilter |
protected java.util.function.Predicate<MultiplePermissionTarget> |
permittedEntityFilter
Filters out entities which user doesn't have permission to any CRUD operation for
|
protected java.util.List<MultiplePermissionTarget> |
targets |
protected UserSessionSource |
userSessionSource |
aggregatableDelegate, data, firstResult, inRefresh, lastQuery, prevQueries, queryKey, refreshOnResumeRequired, sortDelegate, sortOnDb, suspended
cacheable, componentValueListener, dataLoadError, filter, listenersSuspended, maxResults, query, queryParameters, refreshMode, refreshOnComponentValueChange, savedParameters, softDeletion, sortInfos, suspendedEvents, userSession
dataSupplier, dsContext, item, metaClass, state, view
allowCommit, backgroundWorker, commitMode, id, itemsToCreate, itemsToDelete, itemsToUpdate, listener, listenersEnabled, loadDynamicAttributes, metadata, modified, parentDs
Constructor and Description |
---|
MultiplePermissionTargetsDatasource() |
Modifier and Type | Method and Description |
---|---|
java.util.function.Predicate<MultiplePermissionTarget> |
getFilter() |
CollectionDatasource<Permission,java.util.UUID> |
getPermissionDs() |
boolean |
isModified() |
protected void |
loadData(java.util.Map<java.lang.String,java.lang.Object> params)
Load data from middleware into
CollectionDatasourceImpl.data field. |
void |
setFilter(java.util.function.Predicate<MultiplePermissionTarget> filter) |
void |
setPermissionDs(CollectionDatasource<Permission,java.util.UUID> permissionDs) |
addItem, addItemFirst, afterLoadData, afterRefresh, aggregate, aggregateValues, beforeLoadData, beforeRefresh, checkState, checkStateBeforeAdd, clear, committed, containsAllDataFromDb, containsItem, detachListener, doSort, excludeItem, firstItemId, getCompiledLoadContext, getFirstResult, getIdByIndex, getItem, getItemIds, getItemIds, getItems, getItemValue, includeItem, includeItemFirst, incrementQueryKey, indexOfId, internalAddItem, internalIncludeItem, isFirstId, isLastId, isSuspended, lastItemId, modifyItem, needLoading, nextItemId, pinQuery, prepareLoadContext, prevItemId, refresh, refresh, refreshIfNotSuspended, refreshIfNotSuspended, removeItem, resetSortOrder, revert, setFirstResult, setSortDelegate, setSuspended, size, sort, unpinAllQuery, unpinLastQuery, updateItem
addCollectionChangeListener, checkDataLoadError, commit, createDataQuery, createEntityComparator, fireCollectionChanged, getCount, getItemNN, getJPQLQuery, getLastRefreshParameters, getLoggingTag, getMaxResults, getQuery, getQueryFilter, getQueryParameters, getRefreshMode, getRefreshOnComponentValueChange, getTemplateParams, isCacheable, isSoftDeletion, makeCaseInsensitive, mute, removeCollectionChangeListener, resumeListeners, setCacheable, setItem, setMaxResults, setQuery, setQuery, setQueryFilter, setRefreshMode, setRefreshOnComponentValueChange, setSoftDeletion, setSortDirection, suspendListeners, unmute
__setItem, getDataSupplier, getDsContext, getItem, getItemIfValid, getMetaClass, getState, getView, initialized, invalidate, setDataSupplier, setDsContext, setMetaClass, setup, setView, setView, valid
addItemChangeListener, addItemPropertyChangeListener, addParentsToNested, addStateChangeListener, attachListener, clearCommitLists, deleted, detachListener, enableListeners, fireItemChanged, fireStateChanged, getCommitMode, getEventRouter, getId, getItemsToCreate, getItemsToDelete, getItemsToUpdate, getLoadDynamicAttributes, getParent, isAllowCommit, modified, removeItemChangeListener, removeItemPropertyChangeListener, removeStateChangeListener, setAllowCommit, setCommitMode, setLoadDynamicAttributes, setModified, setParent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addCollectionChangeListener, getItemNN, getLastRefreshParameters, getMaxResults, getQuery, getQueryFilter, getRefreshOnComponentValueChange, isCacheable, isSoftDeletion, mute, removeCollectionChangeListener, resumeListeners, setCacheable, setMaxResults, setQuery, setQuery, setQueryFilter, setRefreshOnComponentValueChange, setSoftDeletion, suspendListeners, unmute
addItemChangeListener, addItemPropertyChangeListener, addStateChangeListener, commit, getCommitMode, getDataSupplier, getDsContext, getId, getItem, getItemIfValid, getLoadDynamicAttributes, getMetaClass, getState, getView, invalidate, isAllowCommit, removeItemChangeListener, removeItemPropertyChangeListener, removeStateChangeListener, setAllowCommit, setItem, setLoadDynamicAttributes, setup
getCount
clearCommitLists, deleted, enableListeners, getItemsToCreate, getItemsToDelete, getItemsToUpdate, getParent, modified, setCommitMode, setModified, setParent
protected java.util.List<MultiplePermissionTarget> targets
protected java.util.function.Predicate<MultiplePermissionTarget> permissionsFilter
protected java.util.function.Predicate<MultiplePermissionTarget> permittedEntityFilter
protected CollectionDatasource<Permission,java.util.UUID> permissionDs
protected UserSessionSource userSessionSource
public boolean isModified()
isModified
in interface Datasource<MultiplePermissionTarget>
isModified
in class AbstractDatasource<MultiplePermissionTarget>
protected void loadData(java.util.Map<java.lang.String,java.lang.Object> params)
CollectionDatasourceImpl
CollectionDatasourceImpl.data
field.
In case of error sets AbstractCollectionDatasource.dataLoadError
field to the exception object.
loadData
in class CollectionDatasourceImpl<MultiplePermissionTarget,java.lang.String>
params
- datasource parameters, as described in CollectionDatasource.refresh(java.util.Map)
public java.util.function.Predicate<MultiplePermissionTarget> getFilter()
public void setFilter(java.util.function.Predicate<MultiplePermissionTarget> filter)
public CollectionDatasource<Permission,java.util.UUID> getPermissionDs()
public void setPermissionDs(CollectionDatasource<Permission,java.util.UUID> permissionDs)