nl.surfnet.coin.selfservice.domain
Class Action

java.lang.Object
  extended by nl.surfnet.coin.selfservice.domain.Action

public class Action
extends Object


Nested Class Summary
static class Action.Status
           
static class Action.Type
           
 
Constructor Summary
Action(String jiraKey, String userId, String userName, Action.Type type, Action.Status status, String body, String idpId, String spId, String institutionId, Date requestDate)
           
 
Method Summary
 String getBody()
           
 long getId()
           
 String getIdpId()
           
 String getInstitutionId()
           
 String getJiraKey()
           
 Date getRequestDate()
           
 ServiceProvider getSp()
          Get the SP this action is about.
 String getSpId()
           
 Action.Status getStatus()
           
 Action.Type getType()
           
 String getUserId()
           
 String getUserName()
           
 void setId(long id)
           
 void setSp(ServiceProvider sp)
          getSp()
static Comparator<? super Action> sortByDateAsc()
          get a Comparator that sorts by date ascending: newest first
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Action

public Action(String jiraKey,
              String userId,
              String userName,
              Action.Type type,
              Action.Status status,
              String body,
              String idpId,
              String spId,
              String institutionId,
              Date requestDate)
Method Detail

getJiraKey

public String getJiraKey()

getUserName

public String getUserName()

getUserId

public String getUserId()

getBody

public String getBody()

getIdpId

public String getIdpId()

getSpId

public String getSpId()

getRequestDate

public Date getRequestDate()

getType

public Action.Type getType()

getStatus

public Action.Status getStatus()

getId

public long getId()

setId

public void setId(long id)

getInstitutionId

public String getInstitutionId()

sortByDateAsc

public static Comparator<? super Action> sortByDateAsc()
get a Comparator that sorts by date ascending: newest first

Returns:

getSp

public ServiceProvider getSp()
Get the SP this action is about. This is a transient field, derived from the spId and filled only when needed.

Returns:
ServiceProvider

setSp

public void setSp(ServiceProvider sp)
getSp()

Parameters:
sp -


Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.