Class LightCard

java.lang.Object
org.opfab.cards.model.LightCard

public class LightCard extends Object
LightCard bears the essential information of a Card, to be aggregated in CardOperations.
  • Constructor Details

    • LightCard

      public LightCard()
  • Method Details

    • uid

      public LightCard uid(String uid)
    • getUid

      public String getUid()
      Unique card ID
      Returns:
      uid
    • setUid

      public void setUid(String uid)
    • id

      public LightCard id(String id)
    • getId

      public String getId()
      Unique card ID for associated process
      Returns:
      id
    • setId

      public void setId(String id)
    • publisher

      public LightCard publisher(String publisher)
    • getPublisher

      public String getPublisher()
      Publishing service unique ID
      Returns:
      publisher
    • setPublisher

      public void setPublisher(String publisher)
    • processVersion

      public LightCard processVersion(String processVersion)
    • getProcessVersion

      public String getProcessVersion()
      Publishing service version
      Returns:
      processVersion
    • setProcessVersion

      public void setProcessVersion(String processVersion)
    • process

      public LightCard process(String process)
    • getProcess

      public String getProcess()
      associated process name
      Returns:
      process
    • setProcess

      public void setProcess(String process)
    • processInstanceId

      public LightCard processInstanceId(String processInstanceId)
    • getProcessInstanceId

      public String getProcessInstanceId()
      Unique process ID of the associated process instance
      Returns:
      processInstanceId
    • setProcessInstanceId

      public void setProcessInstanceId(String processInstanceId)
    • state

      public LightCard state(String state)
    • getState

      public String getState()
      associated process state name
      Returns:
      state
    • setState

      public void setState(String state)
    • lttd

      public LightCard lttd(Instant lttd)
    • getLttd

      public Instant getLttd()
      Last time to decide, after this date no action can be triggered on the card
      Returns:
      lttd
    • setLttd

      public void setLttd(Instant lttd)
    • startDate

      public LightCard startDate(Instant startDate)
    • getStartDate

      public Instant getStartDate()
      Card validity start time
      Returns:
      startDate
    • setStartDate

      public void setStartDate(Instant startDate)
    • endDate

      public LightCard endDate(Instant endDate)
    • getEndDate

      public Instant getEndDate()
      Card validity end time
      Returns:
      endDate
    • setEndDate

      public void setEndDate(Instant endDate)
    • expirationDate

      public LightCard expirationDate(Instant expirationDate)
    • getExpirationDate

      public Instant getExpirationDate()
      Card deletion time
      Returns:
      expirationDate
    • setExpirationDate

      public void setExpirationDate(Instant expirationDate)
    • publishDate

      public LightCard publishDate(Instant publishDate)
    • getPublishDate

      public Instant getPublishDate()
      Publication time of the Card
      Returns:
      publishDate
    • setPublishDate

      public void setPublishDate(Instant publishDate)
    • severity

      public LightCard severity(SeverityEnum severity)
    • getSeverity

      public SeverityEnum getSeverity()
      Card severity
      Returns:
      severity
    • setSeverity

      public void setSeverity(SeverityEnum severity)
    • tags

      public LightCard tags(List<String> tags)
    • addTagsItem

      public LightCard addTagsItem(String tagsItem)
    • getTags

      public List<String> getTags()
      Tags associated with the card
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • entitiesAllowedToRespond

      public LightCard entitiesAllowedToRespond(List<String> entitiesAllowedToRespond)
    • addEntitiesAllowedToRespondItem

      public LightCard addEntitiesAllowedToRespondItem(String entitiesAllowedToRespondItem)
    • getEntitiesAllowedToRespond

      public List<String> getEntitiesAllowedToRespond()
      List of entities that can respond
      Returns:
      entitiesAllowedToRespond
    • setEntitiesAllowedToRespond

      public void setEntitiesAllowedToRespond(List<String> entitiesAllowedToRespond)
    • entitiesRequiredToRespond

      public LightCard entitiesRequiredToRespond(List<String> entitiesRequiredToRespond)
    • addEntitiesRequiredToRespondItem

      public LightCard addEntitiesRequiredToRespondItem(String entitiesRequiredToRespondItem)
    • getEntitiesRequiredToRespond

      public List<String> 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

      public void setEntitiesRequiredToRespond(List<String> entitiesRequiredToRespond)
    • entitiesAllowedToEdit

      public LightCard entitiesAllowedToEdit(List<String> entitiesAllowedToEdit)
    • addEntitiesAllowedToEditItem

      public LightCard addEntitiesAllowedToEditItem(String entitiesAllowedToEditItem)
    • getEntitiesAllowedToEdit

      public List<String> getEntitiesAllowedToEdit()
      List of entities that can edit the card
      Returns:
      entitiesAllowedToEdit
    • setEntitiesAllowedToEdit

      public void setEntitiesAllowedToEdit(List<String> entitiesAllowedToEdit)
    • title

      public LightCard title(I18n title)
    • getTitle

      public I18n getTitle()
      Card i18n title
      Returns:
      title
    • setTitle

      public void setTitle(I18n title)
    • summary

      public LightCard summary(I18n summary)
    • getSummary

      public I18n getSummary()
      Card i18n summary
      Returns:
      summary
    • setSummary

      public void setSummary(I18n summary)
    • titleTranslated

      public LightCard titleTranslated(String titleTranslated)
    • getTitleTranslated

      public String getTitleTranslated()
      Card title translated
      Returns:
      titleTranslated
    • setTitleTranslated

      public void setTitleTranslated(String titleTranslated)
    • summaryTranslated

      public LightCard summaryTranslated(String summaryTranslated)
    • getSummaryTranslated

      public String getSummaryTranslated()
      Card summary translated
      Returns:
      summaryTranslated
    • setSummaryTranslated

      public void setSummaryTranslated(String summaryTranslated)
    • rRule

      public LightCard rRule(RRule rRule)
    • getRRule

      public RRule getRRule()
      Json object representing the recurrence of the card (as defined in the RFC 5545)
      Returns:
      rRule
    • setRRule

      public void setRRule(RRule rRule)
    • timeSpans

      public LightCard timeSpans(List<TimeSpan> timeSpans)
    • addTimeSpansItem

      public LightCard addTimeSpansItem(TimeSpan timeSpansItem)
    • getTimeSpans

      public List<TimeSpan> getTimeSpans()
      List of business time span associated to card
      Returns:
      timeSpans
    • setTimeSpans

      public void setTimeSpans(List<TimeSpan> timeSpans)
    • hasBeenAcknowledged

      public LightCard hasBeenAcknowledged(Boolean hasBeenAcknowledged)
    • getHasBeenAcknowledged

      public Boolean getHasBeenAcknowledged()
      Is true if the card was acknowledged by current user
      Returns:
      hasBeenAcknowledged
    • setHasBeenAcknowledged

      public void setHasBeenAcknowledged(Boolean hasBeenAcknowledged)
    • entitiesAcks

      public LightCard entitiesAcks(List<String> entitiesAcks)
    • addEntitiesAcksItem

      public LightCard addEntitiesAcksItem(String entitiesAcksItem)
    • getEntitiesAcks

      public List<String> getEntitiesAcks()
      List of entities that have acknowledged the card
      Returns:
      entitiesAcks
    • setEntitiesAcks

      public void setEntitiesAcks(List<String> entitiesAcks)
    • entityRecipients

      public LightCard entityRecipients(List<String> entityRecipients)
    • addEntityRecipientsItem

      public LightCard addEntityRecipientsItem(String entityRecipientsItem)
    • getEntityRecipients

      public List<String> getEntityRecipients()
      List of entity recipients
      Returns:
      entityRecipients
    • setEntityRecipients

      public void setEntityRecipients(List<String> entityRecipients)
    • entityRecipientsForInformation

      public LightCard entityRecipientsForInformation(List<String> entityRecipientsForInformation)
    • addEntityRecipientsForInformationItem

      public LightCard addEntityRecipientsForInformationItem(String entityRecipientsForInformationItem)
    • getEntityRecipientsForInformation

      public List<String> getEntityRecipientsForInformation()
      List of entity recipients for information : Among entityRecipients which one are only for information.
      Returns:
      entityRecipientsForInformation
    • setEntityRecipientsForInformation

      public void setEntityRecipientsForInformation(List<String> entityRecipientsForInformation)
    • groupRecipients

      public LightCard groupRecipients(List<String> groupRecipients)
    • addGroupRecipientsItem

      public LightCard addGroupRecipientsItem(String groupRecipientsItem)
    • getGroupRecipients

      public List<String> getGroupRecipients()
      List of recipient groups
      Returns:
      groupRecipients
    • setGroupRecipients

      public void setGroupRecipients(List<String> groupRecipients)
    • userRecipients

      public LightCard userRecipients(List<String> userRecipients)
    • addUserRecipientsItem

      public LightCard addUserRecipientsItem(String userRecipientsItem)
    • getUserRecipients

      public List<String> getUserRecipients()
      List of recipient users
      Returns:
      userRecipients
    • setUserRecipients

      public void setUserRecipients(List<String> userRecipients)
    • usersReads

      public LightCard usersReads(List<String> usersReads)
    • addUsersReadsItem

      public LightCard addUsersReadsItem(String usersReadsItem)
    • getUsersReads

      public List<String> getUsersReads()
      List of users who read the read
      Returns:
      usersReads
    • setUsersReads

      public void setUsersReads(List<String> usersReads)
    • hasBeenRead

      public LightCard hasBeenRead(Boolean hasBeenRead)
    • getHasBeenRead

      public Boolean getHasBeenRead()
      Is true if the card was read by current user
      Returns:
      hasBeenRead
    • setHasBeenRead

      public void setHasBeenRead(Boolean hasBeenRead)
    • parentCardId

      public LightCard parentCardId(String parentCardId)
    • getParentCardId

      public String getParentCardId()
      The id of its parent card if it's a child card
      Returns:
      parentCardId
    • setParentCardId

      public void setParentCardId(String parentCardId)
    • initialParentCardUid

      public LightCard initialParentCardUid(String initialParentCardUid)
    • getInitialParentCardUid

      public String 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

      public void setInitialParentCardUid(String initialParentCardUid)
    • publisherType

      public LightCard publisherType(PublisherTypeEnum publisherType)
    • getPublisherType

      public PublisherTypeEnum getPublisherType()
      Get publisherType
      Returns:
      publisherType
    • setPublisherType

      public void setPublisherType(PublisherTypeEnum publisherType)
    • representative

      public LightCard representative(String representative)
    • getRepresentative

      public String 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

      public void setRepresentative(String representative)
    • representativeType

      public LightCard representativeType(PublisherTypeEnum representativeType)
    • getRepresentativeType

      public PublisherTypeEnum getRepresentativeType()
      Get representativeType
      Returns:
      representativeType
    • setRepresentativeType

      public void setRepresentativeType(PublisherTypeEnum representativeType)
    • wktGeometry

      public LightCard wktGeometry(String wktGeometry)
    • getWktGeometry

      public String getWktGeometry()
      Contains WKT geometry string ex. 'POINT (6.476709 52.569132)'
      Returns:
      wktGeometry
    • setWktGeometry

      public void setWktGeometry(String wktGeometry)
    • wktProjection

      public LightCard wktProjection(String wktProjection)
    • getWktProjection

      public String getWktProjection()
      Contains projection ex. 'EPSG:4326'
      Returns:
      wktProjection
    • setWktProjection

      public void setWktProjection(String wktProjection)
    • secondsBeforeTimeSpanForReminder

      public LightCard secondsBeforeTimeSpanForReminder(Integer secondsBeforeTimeSpanForReminder)
    • getSecondsBeforeTimeSpanForReminder

      public Integer getSecondsBeforeTimeSpanForReminder()
      Get secondsBeforeTimeSpanForReminder
      Returns:
      secondsBeforeTimeSpanForReminder
    • setSecondsBeforeTimeSpanForReminder

      public void setSecondsBeforeTimeSpanForReminder(Integer secondsBeforeTimeSpanForReminder)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object