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_UPDATE
EViews.PROJEKT_ACCESS
EViews.PROJEKT_COPY
EViews.PROJEKT_DATATABLE
EViews.PROJEKT_DESIGNER
EViews.PROJEKT_INBOX
EViews.PROJEKT_PUBLISH
EViews.PROJEKT_DOI
EViews.PROJEKT_PREVIEW
EViews.PROJEKT_RESOURCES
EViews.PROJEKT_VERSIONS
EViews.PROJEKT_WORKFLOW
EViews.PROJEKT_XF_DESIGNER
EViews.PROJEKT_XF_DESIGNER_FRAME
EAccessProperty
s:
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.