org.glite.security.voms.request
Class Request.DoneState

java.lang.Object
  extended byorg.glite.security.voms.request.Request.State
      extended byorg.glite.security.voms.request.Request.DoneState
Enclosing class:
Request

public class Request.DoneState
extends Request.State

The standard state of an accepted and successfully processed request. This is the state that the client wants the request to reach. DoneState is designed to be useful in most situations, but derived classes may choose not to use this state or override its behaviour.

DoneState is a complete state; it does not accept any events.


Constructor Summary
Request.DoneState()
           
 
Method Summary
 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.
 
Methods inherited from class org.glite.security.voms.request.Request.State
getAcceptedEvents, processEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request.DoneState

public Request.DoneState()
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