Package org.opfab.cards.model
Class LightCard
java.lang.Object
org.opfab.cards.model.LightCard
LightCard bears the essential information of a Card, to be aggregated in CardOperations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEntitiesAcksItem(String entitiesAcksItem) addEntitiesAllowedToEditItem(String entitiesAllowedToEditItem) addEntitiesAllowedToRespondItem(String entitiesAllowedToRespondItem) addEntitiesRequiredToRespondItem(String entitiesRequiredToRespondItem) addEntityRecipientsForInformationItem(String entityRecipientsForInformationItem) addEntityRecipientsItem(String entityRecipientsItem) addGroupRecipientsItem(String groupRecipientsItem) addTagsItem(String tagsItem) addTimeSpansItem(TimeSpan timeSpansItem) addUserRecipientsItem(String userRecipientsItem) addUsersReadsItem(String usersReadsItem) 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) Card validity end timeList of entities that have 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 timeList of recipient groupsIs true if the card was acknowledged by current userIs true if the card was read by current usergetId()Unique card ID for associated processThe 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 its parent card if it's a child cardassociated process nameUnique process ID of the associated process instancePublishing service versionPublication time of the CardPublishing service unique IDGet 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 secondsBeforeTimeSpanForReminderCard 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 recipient usersList of users who read the readContains 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) voidsetEndDate(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) 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) voidsetUsersReads(List<String> usersReads) voidsetWktGeometry(String wktGeometry) voidsetWktProjection(String wktProjection) severity(SeverityEnum severity) summaryTranslated(String summaryTranslated) titleTranslated(String titleTranslated) toString()userRecipients(List<String> userRecipients) usersReads(List<String> usersReads) wktGeometry(String wktGeometry) wktProjection(String wktProjection)
-
Constructor Details
-
LightCard
public LightCard()
-
-
Method Details
-
uid
-
getUid
Unique card ID- Returns:
- uid
-
setUid
-
id
-
getId
Unique card ID for associated process- Returns:
- id
-
setId
-
publisher
-
getPublisher
Publishing service unique ID- Returns:
- publisher
-
setPublisher
-
processVersion
-
getProcessVersion
Publishing service version- Returns:
- processVersion
-
setProcessVersion
-
process
-
getProcess
associated process name- Returns:
- process
-
setProcess
-
processInstanceId
-
getProcessInstanceId
Unique process ID of the associated process instance- Returns:
- processInstanceId
-
setProcessInstanceId
-
state
-
getState
associated process state name- Returns:
- state
-
setState
-
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- Returns:
- endDate
-
setEndDate
-
expirationDate
-
getExpirationDate
Card deletion time- Returns:
- expirationDate
-
setExpirationDate
-
publishDate
-
getPublishDate
Publication time of the Card- Returns:
- publishDate
-
setPublishDate
-
severity
-
getSeverity
Card severity- Returns:
- severity
-
setSeverity
-
tags
-
addTagsItem
-
getTags
Tags associated with the card- Returns:
- tags
-
setTags
-
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
-
entitiesAllowedToEdit
-
addEntitiesAllowedToEditItem
-
getEntitiesAllowedToEdit
List of entities that can edit the card- Returns:
- entitiesAllowedToEdit
-
setEntitiesAllowedToEdit
-
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
-
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
-
hasBeenAcknowledged
-
getHasBeenAcknowledged
Is true if the card was acknowledged by current user- Returns:
- hasBeenAcknowledged
-
setHasBeenAcknowledged
-
entitiesAcks
-
addEntitiesAcksItem
-
getEntitiesAcks
List of entities that have acknowledged the card- Returns:
- entitiesAcks
-
setEntitiesAcks
-
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
-
groupRecipients
-
addGroupRecipientsItem
-
getGroupRecipients
List of recipient groups- Returns:
- groupRecipients
-
setGroupRecipients
-
userRecipients
-
addUserRecipientsItem
-
getUserRecipients
List of recipient users- Returns:
- userRecipients
-
setUserRecipients
-
usersReads
-
addUsersReadsItem
-
getUsersReads
List of users who read the read- Returns:
- usersReads
-
setUsersReads
-
hasBeenRead
-
getHasBeenRead
Is true if the card was read by current user- Returns:
- hasBeenRead
-
setHasBeenRead
-
parentCardId
-
getParentCardId
The id of its parent card if it's a child card- 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
-
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- Returns:
- secondsBeforeTimeSpanForReminder
-
setSecondsBeforeTimeSpanForReminder
-
equals
-
hashCode
public int hashCode() -
toString
-