org.edg.security.voms.request
Class CheckedRequest.DeniedState

java.lang.Object
  |
  +--org.edg.security.voms.request.Request.State
        |
        +--org.edg.security.voms.request.CheckedRequest.DeniedState
Enclosing class:
CheckedRequest

public class CheckedRequest.DeniedState
extends Request.State

The state of a denied request.

DeniedState is a complete state, but accepts AllowEvent in case the administrator changes her mind. :-)


Constructor Summary
CheckedRequest.DeniedState()
           
 
Method Summary
 java.util.ArrayList getAcceptedEvents()
          Return the event types that this state accepts as an ArrayList of Class objects.
 java.lang.String getDescription()
          Return a description of this state.
 java.lang.String getName()
          Return the short name of this state.
 boolean isComplete()
          Return true if the request is complete, i.e. if no more state transitions are expected.
 Request.State processEvent(Event e)
          Process the given event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckedRequest.DeniedState

public CheckedRequest.DeniedState()
Method Detail

getName

public java.lang.String getName()
Description copied from class: Request.State
Return the short name of this state. The short name is a short description of the state, in English. It is presented to the user and also used in the database to filter a search to requests with a given state. Please capitalize the first letter, and don't use more than two words.

It is not an error to have two different State classes with the same name, although this is usually not desirable.

Specified by:
getName in class Request.State

getDescription

public java.lang.String getDescription()
Description copied from class: Request.State
Return a description of this state. This is presented to the user as an explanation of the current status of the request. It should be a complete English sentence, with a punctuation point at the end.

It is not an error to have two different State classes with the same description.

Specified by:
getDescription in class Request.State

isComplete

public boolean isComplete()
Description copied from class: Request.State
Return true if the request is complete, i.e. if no more state transitions are expected.

Specified by:
isComplete in class Request.State

processEvent

public Request.State processEvent(Event e)
                           throws VOMSException
Description copied from class: Request.State
Process the given event.

The default implementation handles only TimeoutEvent, and only for incomplete states. Concrete states usually call super.processEvent(e) to fall back to the default behaviour.

Overrides:
processEvent in class Request.State
Returns:
the new state of the request after this event.
VOMSException

getAcceptedEvents

public java.util.ArrayList getAcceptedEvents()
Description copied from class: Request.State
Return the event types that this state accepts as an ArrayList of Class objects.

Overrides:
getAcceptedEvents in class Request.State