org.glite.security.voms.request
Class AutomaticRequest
java.lang.Object
org.glite.security.voms.request.Request
org.glite.security.voms.request.AutomaticRequest
- All Implemented Interfaces:
- java.io.Serializable
- public class AutomaticRequest
- extends Request
A class implementing requests which are automatically accepted and processed
immediately after their entry. This circumvents the normal security checks,
so this request type mainly serves as a (very simple) example.
Note that if an error occurs while performing the action, then the
request will not be created. (The requester will get the resulting
exception.)
- States:
-
This request type has one possible state, DoneState
, which is defined in Request
.
- Transition diagram:
-
The diagram below is an overview of the workflow of an
AutomaticRequest
. Complete states are marked with an asterisk
(*
). TimeoutEvent
s are not shown, but are accepted by
all incomplete states.
+----------+
--->|DoneState*|
+----------+
- Security:
-
The
AutomaticRequest
request type does no permission checks.
Each new request is automatically performed without regards to who submitted
it. Therefore, the use of this request type is not recommended in
production services.
- Author:
- Karoly Lorentey
- See Also:
Request
,
Request.DoneState
,
Serialized Form
Constructor Summary |
protected |
AutomaticRequest(Action action,
java.lang.String clientComment)
Creates a new request with the given action and client comment. |
Method Summary |
static Request |
createRequest(Action action,
java.lang.String clientComment)
Creates a new request with the given action and client comment. |
Methods inherited from class org.glite.security.voms.request.Request |
addNotification, addParameter, addParameters, chronicle, chronicle, delete, getAction, getChronicle, getDeletedState, getDetailedRequest, getDoneState, getId, getInstance, getNotifications, getParameters, getRequester, getRequesterId, getRequests, getShortRequest, getShortRequests, getStateDescription, getStateName, getTimedOutState, isComplete, isInDatabase, isPendingNotification, printChronicle, processEvent, sendPendingNotifications, store, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AutomaticRequest
protected AutomaticRequest(Action action,
java.lang.String clientComment)
throws VOMSException
- Creates a new request with the given action and client comment. The new
request will immediately be in
DoneState
.
- Throws:
VOMSException
- if there was an error performing the request.
createRequest
public static Request createRequest(Action action,
java.lang.String clientComment)
throws VOMSException
- Creates a new request with the given action and client comment. The new
request will immediately be in
DoneState
.
- Throws:
VOMSException
- if there was an error performing the request.