org.edg.security.voms.request
Class AutomaticRequest
java.lang.Object
|
+--org.edg.security.voms.request.Request
|
+--org.edg.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.
- Version:
- $Name: v0_7_0 $
- Author:
- Karoly Lorentey
- See Also:
Request
,
Request.DoneState
,
Serialized Form
Field Summary |
private static org.apache.log4j.Logger |
log
Logger. |
private static long |
serialVersionUID
Update this after each incompatible change. |
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.edg.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 |
log
private static final org.apache.log4j.Logger log
- Logger.
serialVersionUID
private static final long serialVersionUID
- Update this after each incompatible change. (Comment this out and
uncomment the following static initializer to generate a new UID.
- See Also:
- Constant Field Values
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.