Class hasPriv
java.lang.Object
edu.internet2.middleware.grouper.app.gsh.hasPriv
Check if subject has privilege.
- Since:
- 0.0.1
- Version:
- $Id: hasPriv.java,v 1.4 2009-11-02 03:50:51 mchyzer Exp $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Check if subject has privilege.static boolean
invoke
(GrouperSession grouperSession, String name, String subjId, Privilege priv) Check if subject has privilege.
-
Constructor Details
-
hasPriv
public hasPriv()
-
-
Method Details
-
invoke
public static boolean invoke(bsh.Interpreter i, bsh.CallStack stack, String name, String subjId, Privilege priv) throws GrouperShellException Check if subject has privilege.- Parameters:
i
- BeanShell interpreter.stack
- BeanShell call stack.name
- Check for privilege on thisGroup
orStem
.subjId
- Check if thisSubject
has privilege.priv
- Check thisAccessPrivilege
.- Returns:
- True if succeeds.
- Throws:
GrouperShellException
- Since:
- 0.0.1
-
invoke
public static boolean invoke(GrouperSession grouperSession, String name, String subjId, Privilege priv) Check if subject has privilege.- Parameters:
grouperSession
-name
- Check for privilege on thisGroup
orStem
.subjId
- Check if thisSubject
has privilege.priv
- Check thisAccessPrivilege
.- Returns:
- True if succeeds.
-