|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primavera.integration.util.SecurityHelper
public final class SecurityHelper
Helper class providing convenience methods for determining a user's global or project security privileges
Method Summary | |
---|---|
static java.util.Set<GlobalPrivilege> |
getGlobalPrivileges(Session session)
Gets the set of global privileges for the current user |
static java.util.Set<ProjectPrivilege> |
getProjectPrivilegesByEPS(Session session,
ObjectId epsObjectId)
Gets the set of project privileges defined for a specific EPS for the current user |
static java.util.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 java.util.Set<ProjectPrivilege> |
getProjectPrivilegesByProject(Session session,
ObjectId projectObjectId)
Gets the set of project privileges defined for a specific project for the current user |
static java.util.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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isSuperUser(Session session) throws ServerException, NetworkException
session
- the current session
ServerException
- if a problem occurred on the server-side
NetworkException
- 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 user
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layerpublic static java.util.Set<GlobalPrivilege> getGlobalPrivileges(Session session) throws BusinessObjectException, ServerException, NetworkException
session
- the current session
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static java.util.Set<ProjectPrivilege> getProjectPrivilegesByProject(Session session, ObjectId projectObjectId) throws BusinessObjectException, ServerException, NetworkException
session
- the current sessionprojectObjectId
- the unique ID of the project
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static java.util.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 user
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static java.util.Set<ProjectPrivilege> getProjectPrivilegesByEPS(Session session, ObjectId epsObjectId) throws BusinessObjectException, ServerException, NetworkException
session
- the current sessionepsObjectId
- the unique ID of the EPS
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static java.util.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 user
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static boolean hasAllResourceAccess(Session session) throws BusinessObjectException, ServerException, NetworkException
session
- the current session
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- 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 user
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objects
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |