|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.voms.request.Request
org.glite.security.voms.request.CheckedRequest
A class implementing requests which are explicitly allowed or denied by administrators.
UndecidedState
, DeniedState
,
TimedOutState
, and DoneState
. The latter two are defined in Request
.CheckedRequest
. Complete states are marked with an asterisk
(*
). TimeoutEvent
s are not shown, but are accepted by
all incomplete states.
+--------------+ AllowEvent +----------+ --->|UndecidedState|------------>|DoneState*| +--------------+ +----------+ | ^ |DenyEvent | | | V | +------------+ AllowEvent | |DeniedState*|----------------+ +------------+
CheckedRequest
request type always calls the requested
action's Action.checkPermission()
method before processing an AllowEvent
or a DenyEvent
. The
intent is that only those clients should be able to accept or deny a request
who are able to perform its action.
Request
,
Request.DoneState
,
Request.TimedOutState
,
Serialized FormNested Class Summary | |
class |
CheckedRequest.DeniedState
The state of a denied request. |
class |
CheckedRequest.UndecidedState
The state of a request that is pending the approval of an administrator. |
Nested classes inherited from class org.glite.security.voms.request.Request |
Request.ChronicleEntry, Request.DeletedState, Request.DoneState, Request.State, Request.TimedOutState |
Field Summary |
Fields inherited from class org.glite.security.voms.request.Request |
action, chronicle, notifications, parameters, state |
Constructor Summary | |
protected |
CheckedRequest(Action action,
java.lang.String[] parameters)
Creates a new request with the given action and client comment. |
Method Summary | |
static Request |
createRequest(Action action,
java.lang.String clientComment,
java.lang.String[] parameters)
Creates a new request with the given action and client comment. |
Request.State |
getDeniedState()
Return a new instance of CheckedRequest.DeniedState .
|
Request.State |
getUndecidedState()
Return a new instance of CheckedRequest.UndecidedState .
|
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 |
Constructor Detail |
protected CheckedRequest(Action action, java.lang.String[] parameters) throws VOMSException
CheckedRequest.UndecidedState
.
Method Detail |
public Request.State getUndecidedState()
CheckedRequest.UndecidedState
.
Calling these get*State()
functions is the only accepted
method of creating state objects. By overriding these methods, derived
classes may replace entire states with a new implementation without
changing code in any of the neighbouring states.
public Request.State getDeniedState()
CheckedRequest.DeniedState
.
Calling these get*State()
functions is the only accepted
method of creating state objects. By overriding these methods, derived
classes may replace entire states with a new implementation without
changing code in any of the neighbouring states.
public static Request createRequest(Action action, java.lang.String clientComment, java.lang.String[] parameters) throws VOMSException
CheckedRequest.UndecidedState
.
VOMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |