Package org.opfab.cards.model
Class Card
java.lang.Object
org.opfab.cards.model.Card
A Card sums up information about the status of a given process instance of the publishing service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions(List<CardActionEnum> actions) addActionsItem(CardActionEnum actionsItem) addEntitiesAcksItem(String entitiesAcksItem) addEntitiesAllowedToEditItem(String entitiesAllowedToEditItem) addEntitiesAllowedToRespondItem(String entitiesAllowedToRespondItem) addEntitiesRequiredToRespondItem(String entitiesRequiredToRespondItem) addEntityRecipientsForInformationItem(String entityRecipientsForInformationItem) addEntityRecipientsItem(String entityRecipientsItem) addExternalRecipientsItem(String externalRecipientsItem) addGroupRecipientsItem(String groupRecipientsItem) addTagsItem(String tagsItem) addTimeSpansItem(TimeSpan timeSpansItem) addUserRecipientsItem(String userRecipientsItem) entitiesAcks(List<String> entitiesAcks) entitiesAllowedToEdit(List<String> entitiesAllowedToEdit) entitiesAllowedToRespond(List<String> entitiesAllowedToRespond) entitiesRequiredToRespond(List<String> entitiesRequiredToRespond) entityRecipients(List<String> entityRecipients) entityRecipientsForInformation(List<String> entityRecipientsForInformation) booleanexpirationDate(Instant expirationDate) externalRecipients(List<String> externalRecipients) Get actionsgetData()Business dataCard validity end time (must be after startDate)List of entities that acknowledged the cardList of entities that can edit the cardList of entities that can respondList of entities that have to respond.List of entity recipientsList of entity recipients for information : Among entityRecipients which one are only for information.Card deletion time (must be after startDate)List of external recipientsList of group recipientsIs true if the card was acknowledged by current userIs true if the card was read by current usergetId()Unique card ID (as defined in the associated process)The uid of the initial parent card if it's a child card (optional).getLttd()Last time to decide, after this date no action can be triggered on the cardThe id of the parent card if it's a child card (optional)ID of the associated processID of the associated process instanceVersion of the associated processThe date the card was published (meaning created by the card service)Unique ID of the entity or service publishing the cardGet publisherTypeUsed in case of sending card as a representative of an entity or a publisher (unique ID of the entity or publisher)Get representativeTypegetRRule()Json object representing the recurrence of the card (as defined in the RFC 5545)Get secondsBeforeTimeSpanForReminder minimum: 0Card severityCard validity start timegetState()associated process state nameCard i18n summaryCard summary translatedgetTags()Tags associated with the cardList of business time span associated to cardgetTitle()Card i18n titleCard title translatedgetUid()Unique card IDList of user recipientsContains WKT geometry string ex.Contains projection ex.groupRecipients(List<String> groupRecipients) hasBeenAcknowledged(Boolean hasBeenAcknowledged) hasBeenRead(Boolean hasBeenRead) inthashCode()initialParentCardUid(String initialParentCardUid) parentCardId(String parentCardId) processInstanceId(String processInstanceId) processVersion(String processVersion) publishDate(Instant publishDate) publisherType(PublisherTypeEnum publisherType) representative(String representative) representativeType(PublisherTypeEnum representativeType) secondsBeforeTimeSpanForReminder(Integer secondsBeforeTimeSpanForReminder) voidsetActions(List<CardActionEnum> actions) voidvoidsetEndDate(Instant endDate) voidsetEntitiesAcks(List<String> entitiesAcks) voidsetEntitiesAllowedToEdit(List<String> entitiesAllowedToEdit) voidsetEntitiesAllowedToRespond(List<String> entitiesAllowedToRespond) voidsetEntitiesRequiredToRespond(List<String> entitiesRequiredToRespond) voidsetEntityRecipients(List<String> entityRecipients) voidsetEntityRecipientsForInformation(List<String> entityRecipientsForInformation) voidsetExpirationDate(Instant expirationDate) voidsetExternalRecipients(List<String> externalRecipients) voidsetGroupRecipients(List<String> groupRecipients) voidsetHasBeenAcknowledged(Boolean hasBeenAcknowledged) voidsetHasBeenRead(Boolean hasBeenRead) voidvoidsetInitialParentCardUid(String initialParentCardUid) voidvoidsetParentCardId(String parentCardId) voidsetProcess(String process) voidsetProcessInstanceId(String processInstanceId) voidsetProcessVersion(String processVersion) voidsetPublishDate(Instant publishDate) voidsetPublisher(String publisher) voidsetPublisherType(PublisherTypeEnum publisherType) voidsetRepresentative(String representative) voidsetRepresentativeType(PublisherTypeEnum representativeType) voidvoidsetSecondsBeforeTimeSpanForReminder(Integer secondsBeforeTimeSpanForReminder) voidsetSeverity(SeverityEnum severity) voidsetStartDate(Instant startDate) voidvoidsetSummary(I18n summary) voidsetSummaryTranslated(String summaryTranslated) voidvoidsetTimeSpans(List<TimeSpan> timeSpans) voidvoidsetTitleTranslated(String titleTranslated) voidvoidsetUserRecipients(List<String> userRecipients) voidsetWktGeometry(String wktGeometry) voidsetWktProjection(String wktProjection) severity(SeverityEnum severity) summaryTranslated(String summaryTranslated) titleTranslated(String titleTranslated) toString()userRecipients(List<String> userRecipients) wktGeometry(String wktGeometry) wktProjection(String wktProjection)
-
Constructor Details
-
Card
public Card()
-
-
Method Details
-
uid
-
getUid
Unique card ID- Returns:
- uid
-
setUid
-
id
-
getId
Unique card ID (as defined in the associated process)- Returns:
- id
-
setId
-
parentCardId
-
getParentCardId
The id of the parent card if it's a child card (optional)- Returns:
- parentCardId
-
setParentCardId
-
initialParentCardUid
-
getInitialParentCardUid
The uid of the initial parent card if it's a child card (optional). When a card is updated, its id is still the same but not its uid, that's why we store this field initialParentCardUid.- Returns:
- initialParentCardUid
-
setInitialParentCardUid
-
publisher
-
getPublisher
Unique ID of the entity or service publishing the card- Returns:
- publisher
-
setPublisher
-
processVersion
-
getProcessVersion
Version of the associated process- Returns:
- processVersion
-
setProcessVersion
-
process
-
getProcess
ID of the associated process- Returns:
- process
-
setProcess
-
processInstanceId
-
getProcessInstanceId
ID of the associated process instance- Returns:
- processInstanceId
-
setProcessInstanceId
-
state
-
getState
associated process state name- Returns:
- state
-
setState
-
publishDate
-
getPublishDate
The date the card was published (meaning created by the card service)- Returns:
- publishDate
-
setPublishDate
-
lttd
-
getLttd
Last time to decide, after this date no action can be triggered on the card- Returns:
- lttd
-
setLttd
-
startDate
-
getStartDate
Card validity start time- Returns:
- startDate
-
setStartDate
-
endDate
-
getEndDate
Card validity end time (must be after startDate)- Returns:
- endDate
-
setEndDate
-
expirationDate
-
getExpirationDate
Card deletion time (must be after startDate)- Returns:
- expirationDate
-
setExpirationDate
-
severity
-
getSeverity
Card severity- Returns:
- severity
-
setSeverity
-
tags
-
addTagsItem
-
getTags
Tags associated with the card- Returns:
- tags
-
setTags
-
rRule
-
getRRule
Json object representing the recurrence of the card (as defined in the RFC 5545)- Returns:
- rRule
-
setRRule
-
timeSpans
-
addTimeSpansItem
-
getTimeSpans
List of business time span associated to card- Returns:
- timeSpans
-
setTimeSpans
-
title
-
getTitle
Card i18n title- Returns:
- title
-
setTitle
-
summary
-
getSummary
Card i18n summary- Returns:
- summary
-
setSummary
-
titleTranslated
-
getTitleTranslated
Card title translated- Returns:
- titleTranslated
-
setTitleTranslated
-
summaryTranslated
-
getSummaryTranslated
Card summary translated- Returns:
- summaryTranslated
-
setSummaryTranslated
-
userRecipients
-
addUserRecipientsItem
-
getUserRecipients
List of user recipients- Returns:
- userRecipients
-
setUserRecipients
-
groupRecipients
-
addGroupRecipientsItem
-
getGroupRecipients
List of group recipients- Returns:
- groupRecipients
-
setGroupRecipients
-
externalRecipients
-
addExternalRecipientsItem
-
getExternalRecipients
List of external recipients- Returns:
- externalRecipients
-
setExternalRecipients
-
entitiesAllowedToRespond
-
addEntitiesAllowedToRespondItem
-
getEntitiesAllowedToRespond
List of entities that can respond- Returns:
- entitiesAllowedToRespond
-
setEntitiesAllowedToRespond
-
entitiesRequiredToRespond
-
addEntitiesRequiredToRespondItem
-
getEntitiesRequiredToRespond
List of entities that have to respond. It will be taken into account in addition to entitiesAllowedToRespond to determine if a user can send a response. If present and not empty, this list will be used for display in the card detail header instead of entitiesAllowedToRespond.- Returns:
- entitiesRequiredToRespond
-
setEntitiesRequiredToRespond
-
entityRecipients
-
addEntityRecipientsItem
-
getEntityRecipients
List of entity recipients- Returns:
- entityRecipients
-
setEntityRecipients
-
entityRecipientsForInformation
-
addEntityRecipientsForInformationItem
-
getEntityRecipientsForInformation
List of entity recipients for information : Among entityRecipients which one are only for information.- Returns:
- entityRecipientsForInformation
-
setEntityRecipientsForInformation
-
entitiesAllowedToEdit
-
addEntitiesAllowedToEditItem
-
getEntitiesAllowedToEdit
List of entities that can edit the card- Returns:
- entitiesAllowedToEdit
-
setEntitiesAllowedToEdit
-
data
-
getData
Business data- Returns:
- data
-
setData
-
hasBeenAcknowledged
-
getHasBeenAcknowledged
Is true if the card was acknowledged by current user- Returns:
- hasBeenAcknowledged
-
setHasBeenAcknowledged
-
entitiesAcks
-
addEntitiesAcksItem
-
getEntitiesAcks
List of entities that acknowledged the card- Returns:
- entitiesAcks
-
setEntitiesAcks
-
hasBeenRead
-
getHasBeenRead
Is true if the card was read by current user- Returns:
- hasBeenRead
-
setHasBeenRead
-
publisherType
-
getPublisherType
Get publisherType- Returns:
- publisherType
-
setPublisherType
-
representative
-
getRepresentative
Used in case of sending card as a representative of an entity or a publisher (unique ID of the entity or publisher)- Returns:
- representative
-
setRepresentative
-
representativeType
-
getRepresentativeType
Get representativeType- Returns:
- representativeType
-
setRepresentativeType
-
wktGeometry
-
getWktGeometry
Contains WKT geometry string ex. 'POINT (6.476709 52.569132)'- Returns:
- wktGeometry
-
setWktGeometry
-
wktProjection
-
getWktProjection
Contains projection ex. 'EPSG:4326'- Returns:
- wktProjection
-
setWktProjection
-
secondsBeforeTimeSpanForReminder
-
getSecondsBeforeTimeSpanForReminder
Get secondsBeforeTimeSpanForReminder minimum: 0- Returns:
- secondsBeforeTimeSpanForReminder
-
setSecondsBeforeTimeSpanForReminder
-
actions
-
addActionsItem
-
getActions
Get actions- Returns:
- actions
-
setActions
-
equals
-
hashCode
public int hashCode() -
toString
-