|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.security.voms.operation.ActionHelper | +--org.edg.security.voms.operation.AddGroupMemberAction
An action for adding a user to a group.
Field Summary | |
private java.lang.String |
groupname
|
private static org.apache.log4j.Logger |
log
Logger. |
private java.lang.String |
userca
|
private java.lang.String |
username
|
Fields inherited from class org.edg.security.voms.operation.ActionHelper |
cns |
Constructor Summary | |
AddGroupMemberAction(java.lang.String groupname,
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.util.List |
getAdminUsers()
Return the list of User objects,
who are allowed to perform the action. |
java.lang.String |
getContainerName()
Return the FQCN of the container that this action changes. |
java.lang.String |
getDescription()
Return a human-readable description of this action. |
java.lang.String |
getGroupname()
|
java.lang.String |
getUserCA()
|
java.lang.String |
getUsername()
|
void |
perform()
Do the operation that this action represents, without ACL checks. |
Methods inherited from class org.edg.security.voms.operation.ActionHelper |
getParameters, performWithResult |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.log4j.Logger log
private java.lang.String groupname
private java.lang.String username
private java.lang.String userca
Constructor Detail |
public AddGroupMemberAction(java.lang.String groupname, java.lang.String username, java.lang.String userca)
Method Detail |
public java.lang.String getGroupname()
public java.lang.String getUsername()
public java.lang.String getUserCA()
public java.lang.String getContainerName()
ActionHelper
getContainerName
in interface Action
getContainerName
in class ActionHelper
public java.lang.String getDescription()
ActionHelper
getDescription
in interface Action
getDescription
in class ActionHelper
public void checkPermission() throws VOMSException
Action
VOMSSecurityException
.
checkPermission
in interface Action
checkPermission
in class ActionHelper
VOMSException
SecurityContext
public java.util.List getAdminUsers() throws VOMSException
Action
User
objects,
who are allowed to perform the action. The method only returns the users,
who are also members of the Virtual Organization, thus there is
a user object associated with them.
Actions that are not part of a requests need not implement this method.
getAdminUsers
in interface Action
getAdminUsers
in class ActionHelper
VOMSException
DBACL
public void perform() throws VOMSException
Action
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.
perform
in interface Action
perform
in class ActionHelper
VOMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |