public interface PrintcockpitUIAccessRightService extends UIAccessRightService
| 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
|
canRead, canWrite, canWrite, isReadable, isReadable, isWritable, isWritable, isWritable, isWritableboolean canRead(UserModel user, ItemModel publicationItem)
user - 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 otherwiseboolean canWrite(UserModel user, ItemModel publicationItem)
user - 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 otherwise<T extends ItemModel,C extends Collection<T>> C getReadableElements(C publicationItems, Principal principal)
publicationItems - collection of publication items like chapter, pages or placementsprincipal - for whom check read permission, if null then session user will be taken<T extends ItemModel,C extends Collection<T>> C getReadableElements(C publicationItems)
publicationItems - collection of publication items like chapter, pages or placementsCopyright © 2017 SAP SE. All Rights Reserved.