org.edg.security.voms.operation
Class RemoveRoleMemberAction
java.lang.Object
|
+--org.edg.security.voms.operation.ActionHelper
|
+--org.edg.security.voms.operation.RemoveRoleMemberAction
- All Implemented Interfaces:
- Action, java.io.Serializable
- public final class RemoveRoleMemberAction
- extends ActionHelper
An action for removing a user from a role.
- Version:
- $Name: v0_7_0 $
- Author:
- Karoly Lorentey
- See Also:
- Serialized Form
Field Summary |
private java.lang.String |
groupname
|
private static org.apache.log4j.Logger |
log
Logger. |
private java.lang.String |
rolename
|
private java.lang.String |
userca
|
private java.lang.String |
username
|
Fields inherited from class org.edg.security.voms.operation.ActionHelper |
cns |
Constructor Summary |
RemoveRoleMemberAction(java.lang.String groupname,
java.lang.String rolename,
java.lang.String username,
java.lang.String userca)
|
Method Summary |
void |
checkPermission()
Check that the current client (as specified by the current security
context) has the right to perform this action. |
void |
perform()
Do the operation that this action represents, without ACL checks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.log4j.Logger log
- Logger.
groupname
private java.lang.String groupname
rolename
private java.lang.String rolename
username
private java.lang.String username
userca
private java.lang.String userca
RemoveRoleMemberAction
public RemoveRoleMemberAction(java.lang.String groupname,
java.lang.String rolename,
java.lang.String username,
java.lang.String userca)
checkPermission
public void checkPermission()
throws VOMSException
- Description copied from interface:
Action
- Check that the current client (as specified by the current security
context) has the right to perform this action. The method returns
normally when the access is granted. Otherwise, it throws a
VOMSSecurityException
.
- Specified by:
checkPermission
in interface Action
- Overrides:
checkPermission
in class ActionHelper
VOMSException
- See Also:
SecurityContext
perform
public void perform()
throws VOMSException
- Description copied from interface:
Action
- Do the operation that this action represents, without ACL checks. Any
errors must be signalled by throwing an exception. This is essentially
a shorthand for
Action.performWithResult()
, for actions that do not need
a return value. Most actions are like this, so the elimination of the
extra return statement seems worthwhile.
- Specified by:
perform
in interface Action
- Overrides:
perform
in class ActionHelper
VOMSException