Class Resource

  • All Implemented Interfaces:
    Serializable, org.silverpeas.core.persistence.datasource.model.IdentifiableEntity

    @Entity
    public class Resource
    extends org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<Resource,​org.silverpeas.core.persistence.datasource.model.identifier.UniqueLongIdentifier>
    See Also:
    Serialized Form
    • Method Detail

      • performBeforePersist

        protected void performBeforePersist()
        Overrides:
        performBeforePersist in class org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<Resource,​org.silverpeas.core.persistence.datasource.model.identifier.UniqueLongIdentifier>
      • performBeforeUpdate

        public void performBeforeUpdate()
        Overrides:
        performBeforeUpdate in class org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<Resource,​org.silverpeas.core.persistence.datasource.model.identifier.UniqueLongIdentifier>
      • isBookable

        public boolean isBookable()
      • setBookable

        public void setBookable​(boolean bookable)
      • getCreaterId

        public String getCreaterId()
      • setCreaterId

        public void setCreaterId​(String createrId)
      • getCreationDate

        public Date getCreationDate()
      • setCreationDate

        public void setCreationDate​(Date creationDate)
      • getUpdateDate

        public Date getUpdateDate()
      • setUpdateDate

        public void setUpdateDate​(Date updateDate)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getIdAsLong

        public Long getIdAsLong()
      • getIdAsString

        public String getIdAsString()
      • getCategoryId

        public Long getCategoryId()
      • setCategory

        public void setCategory​(Category category)
      • getCategory

        public Category getCategory()
      • getInstanceId

        public String getInstanceId()
      • setInstanceId

        public void setInstanceId​(String instanceId)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getUpdaterId

        public String getUpdaterId()
      • setUpdaterId

        public void setUpdaterId​(String updaterId)
      • merge

        public void merge​(Resource resource)
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity<Resource,​org.silverpeas.core.persistence.datasource.model.identifier.UniqueLongIdentifier>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity<Resource,​org.silverpeas.core.persistence.datasource.model.identifier.UniqueLongIdentifier>
      • isValidated

        public boolean isValidated()
      • isRefused

        public boolean isRefused()
      • isValidationRequired

        public boolean isValidationRequired()
      • getStatus

        public String getStatus()
      • setStatus

        public void setStatus​(String status)