BrightSide Workbench Full Report + Source Code
org.turro.dossier.command.IssueAction Class Reference
Inheritance diagram for org.turro.dossier.command.IssueAction:
Collaboration diagram for org.turro.dossier.command.IssueAction:

Public Member Functions

boolean itsMe (String id)
 
boolean myTurn (HttpServletRequest request)
 
void execute (ServletContext context, HttpServletRequest request, HttpServletResponse response)
 

Static Public Member Functions

static String getIdentifier ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 53 of file IssueAction.java.

Member Function Documentation

◆ execute()

void org.turro.dossier.command.IssueAction.execute ( ServletContext  context,
HttpServletRequest  request,
HttpServletResponse  response 
)

Implements org.turro.elephant.direct.IDirectContent.

Definition at line 70 of file IssueAction.java.

70  {
71  IConstructor constructor = ElephantContext.getConstructor(request, response);
72  KeyValueMap map = Actions.getRightNowAction(constructor);
73  if(map != null) {
74  String type = map.get("type");
75  if("assist".equals(type)) {
76  processAssist(map, constructor);
77  } else if("unassist".equals(type)) {
78  processUnassist(map, constructor);
79  }
80  }
81  }
Here is the call graph for this function:

◆ getIdentifier()

static String org.turro.dossier.command.IssueAction.getIdentifier ( )
static

Definition at line 55 of file IssueAction.java.

55  {
56  return IssueAction.class.getAnnotation(DirectContent.class).identifier();
57  }

◆ itsMe()

boolean org.turro.dossier.command.IssueAction.itsMe ( String  id)

Implements org.turro.elephant.direct.IDirectContent.

Definition at line 60 of file IssueAction.java.

60  {
61  return getIdentifier().equals(id);
62  }

◆ myTurn()

boolean org.turro.dossier.command.IssueAction.myTurn ( HttpServletRequest  request)

Implements org.turro.elephant.direct.IDirectContent.

Definition at line 65 of file IssueAction.java.

65  {
66  return DirectContents.isYourTurn(request, getIdentifier());
67  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: