Class TicketValueObject
java.lang.Object
ubic.gemma.model.common.auditAndSecurity.curation.TicketValueObject
- All Implemented Interfaces:
Serializable
Value object projection of
Ticket for the REST surface (Phase B-2
of AUDIT_AS_WORKFLOW_RECCE.md). Embeds the ticket's
targets and (optionally) its
event log.
Events are populated by the "single ticket" endpoint; the list endpoint leaves the events collection empty for payload economy.
- Author:
- paul
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanstatic TicketValueObjectProject the ticket WITHOUT its event log (cheap, for list views).static TicketValueObjectProject the ticket; include events iffincludeEvents.getBody()Curator-facing instructions text.getId()getMode()How the ticket advances between actions.What the screen that produced this ticket asked, verbatim and opaque.Which schemapayloadfollows; null when the writer declared none.getState()getTitle()getType()inthashCode()booleanWhether experiments may be added to this ticket after it was opened.voidsetAcceptsTargets(boolean acceptsTargets) Whether experiments may be added to this ticket after it was opened.voidsetAssigneeId(Long assigneeId) voidsetAssigneeName(String assigneeName) voidCurator-facing instructions text.voidsetCreatedAt(Date createdAt) voidsetDueDate(Date dueDate) voidsetEvents(List<TicketEventValueObject> events) voidsetExternalIssueSyncState(ExternalIssueSyncState externalIssueSyncState) voidsetExternalIssueUrl(String externalIssueUrl) voidvoidsetMode(TicketMode mode) How the ticket advances between actions.voidsetPayload(String payload) What the screen that produced this ticket asked, verbatim and opaque.voidsetPayloadSchemaVersion(Integer payloadSchemaVersion) Which schemapayloadfollows; null when the writer declared none.voidsetPriority(TicketPriority priority) voidsetReporterId(Long reporterId) voidsetReporterName(String reporterName) voidsetState(TicketState state) voidsetTargets(List<TicketTargetValueObject> targets) voidvoidsetType(TicketType type) voidsetUpdatedAt(Date updatedAt) toString()
-
Constructor Details
-
TicketValueObject
public TicketValueObject()
-
-
Method Details
-
from
Project the ticket WITHOUT its event log (cheap, for list views). Targets are always included. -
from
Project the ticket; include events iffincludeEvents. Events are sorted byoccurredAtascending. -
getId
-
getTitle
-
getBody
Curator-facing instructions text. May be empty for tickets filed by scripts that didn't set a body. Empty string (not null) on serialization to match the UI contract — see TicketValueObject TypeScript interface in gemma-curation-ui. -
getType
-
getState
-
getPriority
-
getMode
How the ticket advances between actions.MANUAL(default) requires explicit curator action for each step;AUTOauto-schedules the next defined action when the current one finishes with all targetsDONE. -
isAcceptsTargets
public boolean isAcceptsTargets()Whether experiments may be added to this ticket after it was opened. False unless a curator has opened the ticket up — a scratchpad. Note a RESOLVED ticket refuses additions even when this is true, so this alone does not tell a client the add will succeed. -
getDueDate
-
getReporterId
-
getReporterName
-
getAssigneeId
-
getAssigneeName
-
getPayload
What the screen that produced this ticket asked, verbatim and opaque.- See Also:
-
getPayloadSchemaVersion
Which schemapayloadfollows; null when the writer declared none.On the wire beside the payload on purpose — a version a client cannot read is a version that does not exist for it.
-
getCreatedAt
-
getUpdatedAt
-
getExternalIssueUrl
-
getExternalIssueSyncState
-
getTargets
-
getEvents
-
setId
-
setTitle
-
setBody
Curator-facing instructions text. May be empty for tickets filed by scripts that didn't set a body. Empty string (not null) on serialization to match the UI contract — see TicketValueObject TypeScript interface in gemma-curation-ui. -
setType
-
setState
-
setPriority
-
setMode
How the ticket advances between actions.MANUAL(default) requires explicit curator action for each step;AUTOauto-schedules the next defined action when the current one finishes with all targetsDONE. -
setAcceptsTargets
public void setAcceptsTargets(boolean acceptsTargets) Whether experiments may be added to this ticket after it was opened. False unless a curator has opened the ticket up — a scratchpad. Note a RESOLVED ticket refuses additions even when this is true, so this alone does not tell a client the add will succeed. -
setDueDate
-
setReporterId
-
setReporterName
-
setAssigneeId
-
setAssigneeName
-
setPayload
What the screen that produced this ticket asked, verbatim and opaque.- See Also:
-
setPayloadSchemaVersion
Which schemapayloadfollows; null when the writer declared none.On the wire beside the payload on purpose — a version a client cannot read is a version that does not exist for it.
-
setCreatedAt
-
setUpdatedAt
-
setExternalIssueUrl
-
setExternalIssueSyncState
-
setTargets
-
setEvents
-
equals
-
canEqual
-
hashCode
-
toString
-