public class PermissionUtils extends Object
| Constructor and Description |
|---|
PermissionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canSadminAccessClient(Mandant client)
TODO Currently sadmin access is restricted only for the cloud version.
|
static boolean |
canUserAccessInbox(Benutzer user,
Integer inboxId) |
static boolean |
canUserAccessInbox(Benutzer user,
Postfach inbox) |
static boolean |
canUserAccessProcess(Benutzer user,
long processId) |
static boolean |
canUserAccessProcess(Benutzer user,
String puid) |
static boolean |
canUserAccessProcess(Benutzer user,
Vorgang process) |
static boolean |
canUserAccessProjectPage(UserContext uc,
Benutzer user,
Projekt project,
EAccessProperty... props)
|
static boolean |
canUserAccessProjectPage(UserContext uc,
Benutzer user,
Rolle role,
Mandant client,
boolean isEditingAllowed,
EAccessProperty... props) |
static boolean |
canUserAccessProjectPage(UserContext uc,
Benutzer user,
Rolle role,
Projekt project,
boolean isEditingAllowed,
EAccessProperty... props)
Whether the user is allowed access to the given project page (or action).
|
static boolean |
hasUserInboxAccess(Benutzer user,
Mandant client)
Checks whether the user has access to inboxes
|
public static final boolean canUserAccessProcess(Benutzer user, Vorgang process)
public static final boolean canUserAccessProcess(Benutzer user, long processId)
public static final boolean hasUserInboxAccess(Benutzer user, Mandant client)
public static boolean canSadminAccessClient(Mandant client)
client - Client to check.null was passed for
the client, returns true.public static final boolean canUserAccessProjectPage(UserContext uc, Benutzer user, Rolle role, Projekt project, boolean isEditingAllowed, EAccessProperty... props)
Projekt.getEditorBenutzerGruppen() (if the project page requires
it)RolleProperties.getFCProperty(EAccessProperty)uc - Current user context.user - User to check.role - The role of the given user.project - Project to check.isEditingAllowed - Whether the given user belongs to any of the Projekt.getEditorBenutzerGruppen()
user groups.props - Some of the EViews corresponding to the following views
EViews.PROJECT_UPDATEEViews.PROJEKT_ACCESSEViews.PROJEKT_COPYEViews.PROJEKT_DATATABLEEViews.PROJEKT_DESIGNEREViews.PROJEKT_INBOXEViews.PROJEKT_PUBLISHEViews.PROJEKT_DOIEViews.PROJEKT_PREVIEWEViews.PROJEKT_RESOURCESEViews.PROJEKT_VERSIONSEViews.PROJEKT_WORKFLOWEViews.PROJEKT_XF_DESIGNEREViews.PROJEKT_XF_DESIGNER_FRAMEEAccessPropertys:
public static final boolean canUserAccessProjectPage(UserContext uc, Benutzer user, Rolle role, Mandant client, boolean isEditingAllowed, EAccessProperty... props)
public static final boolean canUserAccessProjectPage(UserContext uc, Benutzer user, Projekt project, EAccessProperty... props)
uc - Current user context.user - User to check.project - Project to check.props - Project page(s) to check.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.