public final class SecurityHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Set<GlobalPrivilege> |
getGlobalPrivileges(Session session)
Gets the set of global privileges for the current user
|
static Set<ProjectPrivilege> |
getProjectPrivilegesByEPS(Session session,
ObjectId epsObjectId)
Gets the set of project privileges defined for a specific EPS
for the current user
|
static Set<ProjectPrivilege> |
getProjectPrivilegesByEPS(Session session,
ObjectId epsObjectId,
ObjectId userObjectId)
Gets the set of project privileges defined for a specific EPS
and a specific user
|
static Set<ProjectPrivilege> |
getProjectPrivilegesByProject(Session session,
ObjectId projectObjectId)
Gets the set of project privileges defined for a specific project
for the current user
|
static Set<ProjectPrivilege> |
getProjectPrivilegesByProject(Session session,
ObjectId projectObjectId,
ObjectId userObjectId)
Gets the set of project privileges defined for a specific project
and a specific user
|
static boolean |
hasAllResourceAccess(Session session)
Checks if the current user has all resource access
|
static boolean |
hasAllResourceAccess(Session session,
ObjectId userObjectId)
Checks if the current user has all resource access
|
static boolean |
isSuperUser(Session session)
Checks if the current user is an Admin Superuser
|
static boolean |
isSuperUser(Session session,
ObjectId userObjectId)
Checks if the a specific user is an Admin Superuser
|
public static boolean isSuperUser(Session session) throws ServerException, NetworkException
session - the current sessionServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerpublic static boolean isSuperUser(Session session, ObjectId userObjectId) throws ServerException, NetworkException
session - the current sessionuserObjectId - the unique ID of the userServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerpublic static Set<GlobalPrivilege> getGlobalPrivileges(Session session) throws BusinessObjectException, ServerException, NetworkException
session - the current sessionServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static Set<ProjectPrivilege> getProjectPrivilegesByProject(Session session, ObjectId projectObjectId) throws BusinessObjectException, ServerException, NetworkException
session - the current sessionprojectObjectId - the unique ID of the projectServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static Set<ProjectPrivilege> getProjectPrivilegesByProject(Session session, ObjectId projectObjectId, ObjectId userObjectId) throws BusinessObjectException, ServerException, NetworkException
session - the current sessionprojectObjectId - the unique ID of the projectuserObjectId - the unique ID of the userServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static Set<ProjectPrivilege> getProjectPrivilegesByEPS(Session session, ObjectId epsObjectId) throws BusinessObjectException, ServerException, NetworkException
session - the current sessionepsObjectId - the unique ID of the EPSServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static Set<ProjectPrivilege> getProjectPrivilegesByEPS(Session session, ObjectId epsObjectId, ObjectId userObjectId) throws BusinessObjectException, ServerException, NetworkException
session - the current sessionepsObjectId - the unique ID of the EPSuserObjectId - the unique ID of the userServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static boolean hasAllResourceAccess(Session session) throws BusinessObjectException, ServerException, NetworkException
session - the current sessionServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectspublic static boolean hasAllResourceAccess(Session session, ObjectId userObjectId) throws BusinessObjectException, ServerException, NetworkException
session - the current sessionuserObjectId - unique ID of the userServerException - if a problem occurred on the server-sideNetworkException - if a problem occurred in the network layerBusinessObjectException - if a problem occurred in the client-side business objectsCopyright © 2003, 2022, Oracle and/or its affiliates.
Oracle®, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.