Package de.xima.fc.user
Class UserAccess
java.lang.Object
de.xima.fc.user.UserAccess
- Author:
- XIMA MEDIA GmbH, Dresden
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the licenseAccessbooleanhasAccess(Benutzer user, EAccessProperty property) Deprecated.booleanhasClientAccess(IUser user, Mandant client, IAccessProperty property) Checks if a user has client access.booleanhasClientOrGeneralAccess(IUser user, Mandant client, IAccessProperty property) Checks if a user has general or client access for the given permission.booleanhasGeneralAccess(IUser user, IAccessProperty property) Checks if a user has general access.booleanhasProjectAccess(IUser user, Projekt project, IAccessProperty property) Checks if a user has project access.booleanhasSystemAccess(IUser user, IAccessProperty property) Checks if a user has system access.booleanhasSystemAccess(IUser user, IAccessProperty property, boolean ignoreLicenseAccesses) Checks if a user has system access.
-
Constructor Details
-
UserAccess
-
-
Method Details
-
hasProjectAccess
Checks if a user has project access. Note: The user needs to be able to edit the project in order for this method to returntrue.- Parameters:
user- the userproperty- the property to check- Returns:
trueif user has access,falseotherwhise
-
hasClientAccess
Checks if a user has client access.- Parameters:
user- The user for which to check whether they are allowed access to the client.client- The client scope where to check for the given access property.property- The property to check.- Returns:
trueif user has access,falseotherwise.
-
hasSystemAccess
Checks if a user has system access.- Parameters:
user- the userproperty- the property to check- Returns:
trueif user has access,falseotherwhise
-
hasSystemAccess
Checks if a user has system access.- Parameters:
user- the userproperty- the property to checkignoreLicenseAccesses- if the license access of property should not be checked- Returns:
trueif user has access,falseotherwhise
-
hasGeneralAccess
Checks if a user has general access. General permissions are independent of scope.- Parameters:
user- The user for which to check whether they are granted the given property.property- The property to check.- Returns:
trueif user has access,falseotherwise.
-
hasClientOrGeneralAccess
Checks if a user has general or client access for the given permission.- Parameters:
user- The user for which to check whether they are granted the given property.client- The client scope where to check for the given access property.property- The property to check.- Returns:
trueif the user has the given permission through general or client access andfalseotherwise.
-
getLicenseAccess
Gets the licenseAccess- Returns:
- the licenseAccess
-
hasAccess
Deprecated.Checks if an user has access.- Parameters:
user- the userproperty- the property to check- Returns:
trueif user has access,falseotherwhise
-
hasClientAccess(IUser, Mandant, IAccessProperty),hasSystemAccess(IUser, IAccessProperty)orhasProjectAccess(IUser, Projekt, IAccessProperty)instead.