Class Folder

All Implemented Interfaces:
Securable, Serializable, Comparable<Folder>

public class Folder extends SecurableExtensibleObject implements Comparable<Folder>
This class represents the key concept of security of documents. The Folder is used as an element to build hierarchies. With the AccessControlEntry you can associate groups to a given folder and grant some permissions. Also setting the recurityRef you can specify another reference folder that contains the security policies.

Folders have a type: 0 for standard folders, 1 for workspaces.

Version:
6.0
Author:
Marco Meschieri - LogicalDOC
See Also:
  • Field Details

  • Constructor Details

    • Folder

      public Folder()
    • Folder

      public Folder(Folder source)
    • Folder

      public Folder(String name)
  • Method Details

    • isWorkspace

      public boolean isWorkspace()
    • isAlias

      public boolean isAlias()
    • getParentId

      public long getParentId()
    • setParentId

      public void setParentId(long parentId)
    • compareTo

      public int compareTo(Folder o)
      Specified by:
      compareTo in interface Comparable<Folder>
    • equals

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

      public String getName()
    • setName

      public void setName(String name)
    • getSecurityRef

      public Long getSecurityRef()
    • setSecurityRef

      public void setSecurityRef(Long securityRef)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getType

      public int getType()
    • setType

      public void setType(int type)
    • getCreator

      public String getCreator()
    • setCreator

      public void setCreator(String creator)
    • getCreatorId

      public Long getCreatorId()
    • setCreatorId

      public void setCreatorId(Long creatorId)
    • getTemplateLocked

      public int getTemplateLocked()
    • setTemplateLocked

      public void setTemplateLocked(int templateLocked)
    • getDeleteUserId

      public Long getDeleteUserId()
    • setDeleteUserId

      public void setDeleteUserId(Long deleteUserId)
    • getPosition

      public int getPosition()
    • setPosition

      public void setPosition(int position)
    • getHidden

      public int getHidden()
    • setHidden

      public void setHidden(int hidden)
    • getQuotaDocs

      public Long getQuotaDocs()
    • setQuotaDocs

      public void setQuotaDocs(Long quotaDocs)
    • getQuotaSize

      public Long getQuotaSize()
    • setQuotaSize

      public void setQuotaSize(Long quotaSize)
    • getFoldRef

      public Long getFoldRef()
    • setFoldRef

      public void setFoldRef(Long foldRef)
    • getStorage

      public Integer getStorage()
      Gets the default storage to use from this folder in the current node
      Returns:
      identifier of the default storage
    • setStorage

      public void setStorage(Integer storage)
      Gets the default storage to use from this folder in the current node
      Parameters:
      storage - identifier of the default storage
    • getMaxVersions

      public Integer getMaxVersions()
    • setMaxVersions

      public void setMaxVersions(Integer maxVersions)
    • getColor

      public String getColor()
    • setColor

      public void setColor(String color)
    • getTags

      public Set<Tag> getTags()
    • setTags

      public void setTags(Set<Tag> tags)
    • getTgs

      public String getTgs()
    • setTgs

      public void setTgs(String tgs)
      So not invoke this method directly, it is thought to be used by the ORM inside the DAO.
      Parameters:
      tgs - comma-separated string of tags
    • addTag

      public void addTag(String word)
    • clearTags

      public void clearTags()
    • setTagsFromWords

      public void setTagsFromWords(Set<String> tgs)
    • getTagsAsWords

      public Set<String> getTagsAsWords()
    • getGrid

      public String getGrid()
    • setGrid

      public void setGrid(String grid)
    • getTagsString

      public String getTagsString()
    • getQuotaThreshold

      public Integer getQuotaThreshold()
    • setQuotaThreshold

      public void setQuotaThreshold(Integer quotaThreshold)
    • getQuotaAlertRecipients

      public String getQuotaAlertRecipients()
    • setQuotaAlertRecipients

      public void setQuotaAlertRecipients(String quotaAlertRecipients)
    • getQuotaAlertRecipientsAsList

      public List<String> getQuotaAlertRecipientsAsList()
    • addQuotaAlertRecipient

      public void addQuotaAlertRecipient(String recipient)
    • setPath

      public void setPath(String path)
    • getPath

      public String getPath()
    • getDeleteUser

      public String getDeleteUser()
    • setDeleteUser

      public void setDeleteUser(String deleteUser)
    • getPathExtended

      public String getPathExtended()
    • setPathExtended

      public void setPathExtended(String pathExtended)
    • getOcrTemplateId

      public Long getOcrTemplateId()
    • setOcrTemplateId

      public void setOcrTemplateId(Long ocrTemplateId)
    • getBarcodeTemplateId

      public Long getBarcodeTemplateId()
    • setBarcodeTemplateId

      public void setBarcodeTemplateId(Long barcodeTemplateId)
    • toString

      public String toString()
      Overrides:
      toString in class PersistentObject
    • getStorages

      public Map<String,Integer> getStorages()
    • setStorages

      public void setStorages(Map<String,Integer> storages)
    • getTile

      public String getTile()
    • setTile

      public void setTile(String tile)