public class ActionFormatter
extends java.lang.Object
Constructor and Description |
---|
ActionFormatter(Action actionIn)
Create an ActionFormatter with the associated Action.
|
Modifier and Type | Method and Description |
---|---|
protected Action |
getAction()
Get the Action for this Formatter
|
java.lang.String |
getActionType()
Get the Action Type
|
java.lang.Object |
getDetails(Server server) |
java.lang.String |
getDetails(Server server,
User currentUser) |
java.lang.String |
getEarliestDate()
Get the earliest date
|
java.lang.String |
getName()
Get the Name of the Action
|
java.lang.String |
getNotes()
Get an HTML version of the notes field
|
protected java.lang.String |
getNotesBody()
No body for the default formatter
|
protected java.lang.String |
getNotesHeader()
Get the first section of the Notes field
|
java.lang.String |
getRelatedObjectDescription()
Returns a localized string that represents objects (packages, errata,
etc.) related to the Action.
|
java.lang.String |
getScheduler()
get the login of the scheduler User
|
public ActionFormatter(Action actionIn)
actionIn
- the Action we associate with this Formatterprotected Action getAction()
protected java.lang.String getNotesHeader()
protected java.lang.String getNotesBody()
public java.lang.String getNotes()
public java.lang.String getName()
public java.lang.String getActionType()
public java.lang.String getEarliestDate()
public java.lang.String getScheduler()
public java.lang.String getRelatedObjectDescription()
public java.lang.String getDetails(Server server, User currentUser)
server
- on which action has been executedcurrentUser
- current userpublic java.lang.Object getDetails(Server server)
server
- on which action has been executed