Class TicketEntity

    • Field Detail

      • componentId

        @NotNull
        protected @NotNull String componentId
        Main sharing ticket attributes
      • sharedObjectType

        @NotNull
        protected @NotNull String sharedObjectType
      • sharedObjectId

        @NotNull
        protected @javax.validation.constraints.NotNull long sharedObjectId
      • creatorId

        protected String creatorId
      • creationDate

        protected Long creationDate
      • updaterId

        protected String updaterId
      • updateDate

        protected Long updateDate
      • validity

        protected String validity
      • endDate

        protected Long endDate
      • endDateStr

        protected String endDateStr
      • endDateFormat

        protected String endDateFormat
      • nbAccessMax

        @NotNull
        protected @javax.validation.constraints.NotNull int nbAccessMax
      • nbAccess

        protected int nbAccess
      • token

        protected String token
      • users

        protected String users
        Notification parameter
      • externalEmails

        protected String externalEmails
      • additionalMessage

        protected String additionalMessage
    • Constructor Detail

      • TicketEntity

        protected TicketEntity()
        Default constructor
      • TicketEntity

        public TicketEntity​(Ticket ticket,
                            URI uri)
    • Method Detail

      • getComponentId

        public String getComponentId()
        Returns:
        the componentId
      • setComponentId

        public void setComponentId​(String componentId)
        Parameters:
        componentId - the componentId to set
      • getSharedObjectType

        public String getSharedObjectType()
        Returns:
        the sharedObjectType
      • setSharedObjectType

        public void setSharedObjectType​(String sharedObjectType)
        Parameters:
        sharedObjectType - the sharedObjectType to set
      • getSharedObjectId

        public long getSharedObjectId()
        Returns:
        the sharedObjectId
      • setSharedObjectId

        public void setSharedObjectId​(long sharedObjectId)
        Parameters:
        sharedObjectId - the sharedObjectId to set
      • getCreatorId

        public String getCreatorId()
        Returns:
        the creatorId
      • setCreatorId

        public void setCreatorId​(String creatorId)
        Parameters:
        creatorId - the creatorId to set
      • getCreationDate

        public Long getCreationDate()
        Returns:
        the creationDate
      • setCreationDate

        public void setCreationDate​(Long creationDate)
        Parameters:
        creationDate - the creationDate to set
      • getUpdaterId

        public String getUpdaterId()
        Returns:
        the updaterId
      • setUpdaterId

        public void setUpdaterId​(String updaterId)
        Parameters:
        updaterId - the updaterId to set
      • getUpdateDate

        public Long getUpdateDate()
        Returns:
        the updateDate
      • setUpdateDate

        public void setUpdateDate​(Long updateDate)
        Parameters:
        updateDate - the updateDate to set
      • getValidity

        public String getValidity()
        Returns:
        the validity
      • setValidity

        public void setValidity​(String validity)
        Parameters:
        validity - the validity to set
      • getEndDate

        public Long getEndDate()
        Returns:
        the endDate
      • setEndDate

        public void setEndDate​(Long endDate)
        Parameters:
        endDate - the endDate to set
      • getEndDateStr

        public String getEndDateStr()
        Returns:
        the endDateStr
      • setEndDateStr

        public void setEndDateStr​(String endDateStr)
        Parameters:
        endDateStr - the endDateStr to set
      • getEndDateFormat

        public String getEndDateFormat()
        Returns:
        the endDateFormat
      • setEndDateFormat

        public void setEndDateFormat​(String endDateFormat)
        Parameters:
        endDateFormat - the endDateFormat to set
      • getNbAccessMax

        public int getNbAccessMax()
        Returns:
        the nbAccessMax
      • setNbAccessMax

        public void setNbAccessMax​(int nbAccessMax)
        Parameters:
        nbAccessMax - the nbAccessMax to set
      • getNbAccess

        public int getNbAccess()
        Returns:
        the nbAccess
      • setNbAccess

        public void setNbAccess​(int nbAccess)
        Parameters:
        nbAccess - the nbAccess to set
      • getToken

        public String getToken()
        Returns:
        the token
      • setToken

        public void setToken​(String token)
        Parameters:
        token - the token to set
      • getUsers

        public String getUsers()
        Returns:
        the users
      • setUsers

        public void setUsers​(String users)
        Parameters:
        users - the users to set
      • getExternalEmails

        public String getExternalEmails()
        Returns:
        the externalEmails
      • setExternalEmails

        public void setExternalEmails​(String externalEmails)
        Parameters:
        externalEmails - the externalEmails to set
      • getAdditionalMessage

        public String getAdditionalMessage()
        Returns:
        the additionalMessage
      • setAdditionalMessage

        public void setAdditionalMessage​(String additionalMessage)
        Parameters:
        additionalMessage - the additionalMessage to set
      • getUrl

        public String getUrl()
        Returns:
        the url
      • setUrl

        public void setUrl​(String url)
        Parameters:
        url - the url to set
      • isValid

        public boolean isValid()
      • isModified

        public boolean isModified()
        Is this ticket was modified?
        Returns:
        true if this ticket was modified, false otherwise.
      • isContinuous

        public boolean isContinuous()
        Is this ticket a continuous one, that is with no limitation in time and in quantity.
        Returns:
        true if this ticket is a continuous one, false otherwise.
      • setContinuous

        public void setContinuous()
        Sets this ticket a continuous one.
      • hashCode

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

        public URI getURI()
        Description copied from interface: WebEntity
        Gets the URI at which this web entity is published and can be accessed.
        Specified by:
        getURI in interface WebEntity
        Returns:
        the web entity URI.