org.glite.security.voms.operation
Class AddRoleMemberAction
java.lang.Object
org.glite.security.voms.operation.ActionHelper
org.glite.security.voms.operation.AddRoleMemberAction
- All Implemented Interfaces:
- Action, java.io.Serializable
- public final class AddRoleMemberAction
- extends ActionHelper
An action for adding a user to a role.
- Author:
- Karoly Lorentey
- See Also:
- Serialized Form
Fields inherited from class org.glite.security.voms.operation.ActionHelper |
cns |
Constructor Summary |
AddRoleMemberAction(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. |
java.lang.String |
getGroupname()
|
java.lang.String |
getRolename()
|
java.lang.String |
getUserCA()
|
java.lang.String |
getUsername()
|
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 |
AddRoleMemberAction
public AddRoleMemberAction(java.lang.String groupname,
java.lang.String rolename,
java.lang.String username,
java.lang.String userca)
getGroupname
public java.lang.String getGroupname()
getRolename
public java.lang.String getRolename()
getUsername
public java.lang.String getUsername()
getUserCA
public java.lang.String getUserCA()
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
- Throws:
VOMSException
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
- Throws:
VOMSException