|
||||||||||
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.CreateUserAction
An action for creating a new user in the database.
Field Summary | |
private static org.apache.log4j.Logger |
log
Logger. |
private User |
user
Parameter: The user to be created. |
Fields inherited from class org.edg.security.voms.operation.ActionHelper |
cns |
Constructor Summary | |
CreateUserAction(User user)
|
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. |
User |
getUser()
|
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 User user
Constructor Detail |
public CreateUserAction(User user)
Method Detail |
public User getUser()
public java.lang.String getDescription()
ActionHelper
getDescription
in interface Action
getDescription
in class ActionHelper
public java.lang.String getContainerName()
ActionHelper
getContainerName
in interface Action
getContainerName
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 |