public class DefaultPrintcockpitUIAccessRightService extends DefaultUIAccessRightService implements PrintcockpitUIAccessRightService
cockpitUIComponentAccessRightDaomodelService, typeService| Constructor and Description |
|---|
DefaultPrintcockpitUIAccessRightService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(UserModel user,
ItemModel publicationItem)
Returns whether a specific user has read access to a specific publication item (not type).
|
boolean |
canWrite(UserModel user,
ItemModel publicationItem)
Returns whether a specific user has write access to a specific publication item (not type).
|
<T extends ItemModel,C extends Collection<T>> |
getReadableElements(C publicationItems)
Returns filtered publication elements
|
<T extends ItemModel,C extends Collection<T>> |
getReadableElements(C publicationItems,
Principal principal)
Returns filtered publication elements
|
protected Predicate |
getReadablePredicator(Principal principal)
Returns predicator for filtering the list
|
protected boolean |
isPublicationItem(ItemModel publicationItem) |
boolean |
isWritable(ObjectType type,
TypedObject item)
Returns whether the current user has write access to the specified item.
|
boolean |
isWritable(ObjectType type,
TypedObject item,
PropertyDescriptor propDescr,
boolean creationMode)
Returns whether the current user has write access to the specified item property.
|
canRead, canWrite, canWrite, getBaseTypeCode, getSessionContext, getSystemService, getUserService, isReadable, isReadable, isWritable, isWritable, restricts, setCockpitUIComponentAccessRightDao, setSystemService, setUserServicegetEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRead, canWrite, canWrite, isReadable, isReadable, isWritable, isWritablepublic DefaultPrintcockpitUIAccessRightService()
public boolean isWritable(ObjectType type, TypedObject item, PropertyDescriptor propDescr, boolean creationMode)
UIAccessRightServiceisWritable in interface UIAccessRightServiceisWritable in class DefaultUIAccessRightServicetype - item typeitem - item instancepropDescr - item attribute to check access forcreationMode - creation mode or nottrue if user has write access, false otherwisepublic boolean isWritable(ObjectType type, TypedObject item)
UIAccessRightServiceisWritable in interface UIAccessRightServiceisWritable in class DefaultUIAccessRightServicetype - item typeitem - the item instance to check access fortrue if user has write access, false otherwisepublic boolean canRead(UserModel user, ItemModel publicationItem)
PrintcockpitUIAccessRightServicecanRead in interface PrintcockpitUIAccessRightServiceuser - the user to check read access for, if null then session user will be takenpublicationItem - publication, chapter, page or placement etc.true if the user has read access, false otherwisepublic boolean canWrite(UserModel user, ItemModel publicationItem)
PrintcockpitUIAccessRightServicecanWrite in interface PrintcockpitUIAccessRightServiceuser - the user to check write access for, if null then session user will be takenpublicationItem - publication, chapter, page or placement etc.true if the user has write access, false otherwiseprotected boolean isPublicationItem(ItemModel publicationItem)
public <T extends ItemModel,C extends Collection<T>> C getReadableElements(C publicationItems, Principal principal)
PrintcockpitUIAccessRightServicegetReadableElements in interface PrintcockpitUIAccessRightServicepublicationItems - collection of publication items like chapter, pages or placementsprincipal - for whom check read permission, if null then session user will be takenpublic <T extends ItemModel,C extends Collection<T>> C getReadableElements(C publicationItems)
PrintcockpitUIAccessRightServicegetReadableElements in interface PrintcockpitUIAccessRightServicepublicationItems - collection of publication items like chapter, pages or placementsprotected Predicate getReadablePredicator(Principal principal)
principal - Copyright © 2017 SAP SE. All Rights Reserved.