Package de.xima.fc.gui.common.utils
Class PermissionUtils
java.lang.Object
de.xima.fc.gui.common.utils.PermissionUtils
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanSadminAccessClient(Mandant client) static final booleancanUserAccessFormRecord(UserContext uc, Benutzer user, Vorgang process) Deprecated.static final booleancanUserAccessInbox(Benutzer user, Postfach inbox) Deprecated.static final booleancanUserAccessInbox(Benutzer user, Integer inboxId) Deprecated.UseUserMgmtUtils.canAccessInbox(IUser, Postfach)instead.static final booleancanUserAccessProcess(Benutzer user, long processId) Deprecated.static final booleancanUserAccessProcess(Benutzer user, Vorgang process) Deprecated.static final booleancanUserAccessProcess(Benutzer user, String puid) Deprecated.static final booleancanUserAccessProjectPage(UserContext uc, Benutzer user, Projekt project, EAccessProperty... props) Deprecated.static final booleancanUserAccessProjectPage(UserContext uc, Benutzer user, Rolle role, Mandant client, boolean isEditingAllowed, EAccessProperty... props) Deprecated.static final booleancanUserAccessProjectPage(UserContext uc, Benutzer user, Rolle role, Projekt project, boolean isEditingAllowed, EAccessProperty... props) Deprecated.static final booleanhasUserInboxAccess(Benutzer user, Mandant client) Deprecated.static final booleanisFormRecordDataAccessible(Vorgang formRecord) static final booleanisTestCloudClient(Mandant client) Whether the client is a test client with the system license of typeELicenseType.CLOUD.static final booleanisTestCloudClient(Mandant client, Benutzer user) Deprecated.UseisTestCloudClient(Mandant)instead.
-
Constructor Details
-
PermissionUtils
public PermissionUtils()
-
-
Method Details
-
canSadminAccessClient
- Parameters:
client- Client to check.- Returns:
- Whether the super administrator is allowed access to the given client. If
nullwas passed for the client, returnstrue.
-
isFormRecordDataAccessible
-
isTestCloudClient
Whether the client is a test client with the system license of typeELicenseType.CLOUD.- Parameters:
client- Client to check.- Returns:
- Whether the client is a test client of the CLOUD.
-
canUserAccessProjectPage
@Deprecated public static final boolean canUserAccessProjectPage(UserContext uc, Benutzer user, Projekt project, EAccessProperty... props) Deprecated.- Parameters:
uc- Current user context.user- User to check.project- Project to check.props- Project page(s) to check.- Returns:
- Whether the user is allowed access to all the given properties.
-
canUserAccessFormRecord
@Deprecated public static final boolean canUserAccessFormRecord(UserContext uc, Benutzer user, Vorgang process) Deprecated.Checks whether or not the user has permission to access meta information of form record such as its history- Parameters:
uc-UserContextto useuser-Benutzerto check permission forprocess-Vorgangto check- Returns:
- whether or not the user can access meta info of the form record
-
hasUserInboxAccess
Deprecated.Checks whether the user has access to inboxes -
canUserAccessProjectPage
@Deprecated public static final boolean canUserAccessProjectPage(UserContext uc, Benutzer user, Rolle role, Projekt project, boolean isEditingAllowed, EAccessProperty... props) Deprecated.Whether the user is allowed access to the given project page (or action). They need to have the correct role property, and if the project page allows editing, they also need to be in the correct user group. This checks whether- the user is a member of one of the
Projekt.getEditorBenutzerGruppen()(if the project page requires it) - the user is granted to the correct
RolleProperties.getFCProperty(EAccessProperty)
- Parameters:
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 theProjekt.getEditorBenutzerGruppen()user groups.props- Some of theEViewscorresponding to the following viewsEViews.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_DESIGNER_FORMEViews.PROJEKT_DESIGNER_WORKFLOW
EAccessPropertys:- Returns:
- Whether the user is allowed to access the given project page for the given project.
- the user is a member of one of the
-
canUserAccessProjectPage
@Deprecated public static final boolean canUserAccessProjectPage(UserContext uc, Benutzer user, Rolle role, Mandant client, boolean isEditingAllowed, EAccessProperty... props) Deprecated. -
canUserAccessProcess
Deprecated. -
canUserAccessProcess
Deprecated. -
canUserAccessProcess
Deprecated. -
canUserAccessInbox
Deprecated.UseUserMgmtUtils.canAccessInbox(IUser, Postfach)instead. -
canUserAccessInbox
Deprecated.UseUserMgmtUtils.canAccessInbox(IUser, Postfach)instead. -
isTestCloudClient
Deprecated.UseisTestCloudClient(Mandant)instead. Whether the client is a test client with the system license of typeELicenseType.CLOUD.- Parameters:
client- Client to check.user- User to check.- Returns:
- Whether the client is a test client of the CLOUD.
-
UserMgmtUtils.canAccessInbox(IUser, Postfach)instead.