Class DMSFile


@Entity public class DMSFile extends AuditableModel
  • Constructor Details

    • DMSFile

      public DMSFile()
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in class Model
    • setId

      public void setId(Long id)
      Specified by:
      setId in class Model
    • getFileName

      public String getFileName()
    • setFileName

      public void setFileName(String fileName)
    • getIsDirectory

      public Boolean getIsDirectory()
    • setIsDirectory

      public void setIsDirectory(Boolean isDirectory)
    • getParent

      public DMSFile getParent()
    • setParent

      public void setParent(DMSFile parent)
    • getRelatedId

      public Long getRelatedId()
    • setRelatedId

      public void setRelatedId(Long relatedId)
    • getRelatedModel

      public String getRelatedModel()
    • setRelatedModel

      public void setRelatedModel(String relatedModel)
    • getMetaFile

      public MetaFile getMetaFile()
    • setMetaFile

      public void setMetaFile(MetaFile metaFile)
    • getPermissions

      public List<DMSPermission> getPermissions()
    • setPermissions

      public void setPermissions(List<DMSPermission> permissions)
    • addPermission

      public void addPermission(DMSPermission item)
      Add the given DMSPermission item to the permissions collection.

      It sets item.file = this to ensure the proper relationship.

      Parameters:
      item - the item to add
    • removePermission

      public void removePermission(DMSPermission item)
      Remove the given DMSPermission item from the permissions collection.
      Parameters:
      item - the item to remove
    • clearPermissions

      public void clearPermissions()
      Clear the permissions collection.
    • getTags

      public Set<DMSFileTag> getTags()
    • setTags

      public void setTags(Set<DMSFileTag> tags)
    • addTag

      public void addTag(DMSFileTag item)
      Add the given DMSFileTag item to the tags collection.
      Parameters:
      item - the item to add
    • removeTag

      public void removeTag(DMSFileTag item)
      Remove the given DMSFileTag item from the tags collection.
      Parameters:
      item - the item to remove
    • clearTags

      public void clearTags()
      Clear the tags collection.
    • getContent

      public String getContent()
    • setContent

      public void setContent(String content)
    • getContentType

      public String getContentType()
    • setContentType

      public void setContentType(String contentType)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object