|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.utilities.ObjectsAccessVerifier
public class ObjectsAccessVerifier
Contains some methods to control user exec/dev/test rights.
Constructor Summary | |
---|---|
ObjectsAccessVerifier()
|
Method Summary | |
---|---|
static boolean |
canDev(java.lang.Integer folderId,
it.eng.spago.security.IEngUserProfile profile)
Control if the current user can develop new object into the functionality identified by its id. |
static boolean |
canDev(java.lang.String state,
java.lang.Integer folderId,
it.eng.spago.security.IEngUserProfile profile)
Controls if the current user can develop the object relative to the input folder id. |
static boolean |
canDev(java.lang.String state,
java.util.List folders,
it.eng.spago.security.IEngUserProfile profile)
Metodo che verifica se nell'elenco delle funzionalit� ne esiste almeno una con diritto di esecuzione |
static boolean |
canExec(java.lang.Integer folderId,
it.eng.spago.security.IEngUserProfile profile)
Control if the current user can execute new object into the functionality identified by its id. |
static boolean |
canExec(LowFunctionality folder,
it.eng.spago.security.IEngUserProfile profile)
Control if the current user can execute objects into the input functionality. |
static boolean |
canExec(java.lang.String state,
java.lang.Integer folderId,
it.eng.spago.security.IEngUserProfile profile)
Controls if current user can exec the object relative to the input folder id. |
static boolean |
canExec(java.lang.String state,
java.util.List folders,
it.eng.spago.security.IEngUserProfile profile)
Metodo che verifica se nell'elenco delle funzionalit� ne esiste almeno una con diritto di esecuzione |
static boolean |
canSee(BIObject obj,
it.eng.spago.security.IEngUserProfile profile)
Controls if the current user can see the document: - if the document is in DEV state the user must have the development permission in a folder containing it; - if the document is in TEST state the user must have the test permission in a folder containing it; - if the document is in REL state the user must have the execution permission in a folder containing it. |
static boolean |
canTest(java.lang.Integer folderId,
it.eng.spago.security.IEngUserProfile profile)
Control if the current user can test new object into the functionality identified by its id. |
static boolean |
canTest(java.lang.String state,
java.lang.Integer folderId,
it.eng.spago.security.IEngUserProfile profile)
Control if current user can test the object relative to the folder id. |
static boolean |
canTest(java.lang.String state,
java.util.List folders,
it.eng.spago.security.IEngUserProfile profile)
Metodo che verifica se nell'elenco delle funzionalit� ne esiste almeno una con diritto di esecuzione |
static boolean |
checkProfileVisibility(BIObject obj,
it.eng.spago.security.IEngUserProfile profile)
Checks if the document in input has profiled visibility constraints. |
static java.util.List |
getCorrectRolesForExecution(java.lang.Integer objectId,
it.eng.spago.security.IEngUserProfile profile)
returns the list of correct roles of the input profile for the execution of the document with the specified input |
static int |
getVisibleInstances(java.lang.String initialPath,
java.util.List folders)
Metodo che verifica il numero di istanze visibili del documento |
static boolean |
isAbleToExec(java.lang.String state,
it.eng.spago.security.IEngUserProfile profile)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectsAccessVerifier()
Method Detail |
---|
public static boolean canDev(java.lang.String state, java.lang.Integer folderId, it.eng.spago.security.IEngUserProfile profile)
state
- state of the objectfolderId
- The id of the folder containing te objectprofile
- user profile
public static boolean canExec(java.lang.String state, java.lang.Integer folderId, it.eng.spago.security.IEngUserProfile profile)
state
- state of the objectfolderId
- The id of the folder containing te objectprofile
- user profile
public static boolean canExec(java.lang.String state, java.util.List folders, it.eng.spago.security.IEngUserProfile profile)
state
- profile
-
public static boolean canDev(java.lang.String state, java.util.List folders, it.eng.spago.security.IEngUserProfile profile)
state
- profile
-
public static boolean canTest(java.lang.String state, java.util.List folders, it.eng.spago.security.IEngUserProfile profile)
state
- profile
-
public static int getVisibleInstances(java.lang.String initialPath, java.util.List folders)
state
- userProfile
-
public static boolean isAbleToExec(java.lang.String state, it.eng.spago.security.IEngUserProfile profile)
public static boolean canTest(java.lang.String state, java.lang.Integer folderId, it.eng.spago.security.IEngUserProfile profile)
state
- state of the objectfolderId
- The id of the folder containing the objectprofile
- user profile
public static boolean canDev(java.lang.Integer folderId, it.eng.spago.security.IEngUserProfile profile)
folderId
- The id of the lowFunctionalityprofile
- user profile
public static boolean canTest(java.lang.Integer folderId, it.eng.spago.security.IEngUserProfile profile)
folderId
- The id of the lowFunctionalityprofile
- user profile
public static boolean canExec(LowFunctionality folder, it.eng.spago.security.IEngUserProfile profile)
folder
- The lowFunctionalityprofile
- user profile
public static boolean canExec(java.lang.Integer folderId, it.eng.spago.security.IEngUserProfile profile)
folderId
- The id of the lowFunctionalityprofile
- user profile
public static boolean canSee(BIObject obj, it.eng.spago.security.IEngUserProfile profile) throws it.eng.spago.error.EMFInternalError
obj
- The BIObjectprofile
- user profile
it.eng.spago.error.EMFInternalError
- the EMF internal errorpublic static boolean checkProfileVisibility(BIObject obj, it.eng.spago.security.IEngUserProfile profile) throws it.eng.spago.error.EMFInternalError
obj
- profile
-
it.eng.spago.error.EMFInternalError
public static java.util.List getCorrectRolesForExecution(java.lang.Integer objectId, it.eng.spago.security.IEngUserProfile profile) throws it.eng.spago.error.EMFInternalError, it.eng.spago.error.EMFUserError
objectId
- the document idprofile
- the user profile
it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFInternalError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |