Class Ticket

    • Constructor Detail

      • Ticket

        protected Ticket()
      • Ticket

        protected Ticket​(int sharedObjectId,
                         String componentId,
                         UserDetail creator,
                         Date creationDate,
                         Date endDate,
                         int nbAccessMax)
      • Ticket

        protected Ticket​(int sharedObjectId,
                         String componentId,
                         String creatorId,
                         Date creationDate,
                         Date endDate,
                         int nbAccessMax)
    • Method Detail

      • getSharedObjectId

        public long getSharedObjectId()
      • getComponentId

        public String getComponentId()
      • getCreatorId

        public String getCreatorId()
      • setCreator

        public void setCreator​(UserDetail creator)
      • getCreationDate

        public Date getCreationDate()
      • setLastModifier

        public void setLastModifier​(UserDetail modifier)
      • getLastModifier

        public String getLastModifier()
      • getUpdateDate

        public Date getUpdateDate()
      • setUpdateDate

        public void setUpdateDate​(Date updateDate)
      • getEndDate

        public Date getEndDate()
      • setEndDate

        public void setEndDate​(Date endDate)
      • getNbAccessMax

        public int getNbAccessMax()
      • setNbAccessMax

        public void setNbAccessMax​(int nbAccessMax)
      • getNbAccess

        public int getNbAccess()
      • setNbAccess

        public void setNbAccess​(int nbAccess)
      • getToken

        public String getToken()
      • setToken

        public void setToken​(String uuid)
      • getUrl

        public String getUrl​(javax.servlet.http.HttpServletRequest request)
      • 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.
      • getSharedObjectType

        public String getSharedObjectType()
      • addDownload

        public void addDownload()