Class Folder

All Implemented Interfaces:
Serializable, Comparable<Folder>

public class Folder extends ExtensibleObject implements Comparable<Folder>
This class represents the key concept of security of documents. The Folder is used as an element to build hierarchies. With foldergroups 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()
    • getId

      public long getId()
      Description copied from class: PersistentObject
      Unique identifier in the data store
      Overrides:
      getId in class PersistentObject
      Returns:
      the unique identifier of this record
    • getParentId

      public long getParentId()
    • getFolderGroups

      public Set<FolderGroup> getFolderGroups()
    • clearFolderGroups

      public void clearFolderGroups()
    • setId

      public void setId(long id)
      Overrides:
      setId in class PersistentObject
    • setParentId

      public void setParentId(long parentId)
    • setFolderGroups

      public void setFolderGroups(Set<FolderGroup> fgroup)
    • getFolderGroupIds

      public long[] getFolderGroupIds()
    • setFolderGroup

      public void setFolderGroup(long[] groups)
      Adds FolderGroup object given in a String array to the ArrayList of FolderGroup.
      Parameters:
      groups - array of group ids
    • addFolderGroup

      public void addFolderGroup(FolderGroup fg)
      Adds a new element, substituting an existing one with the same groupId.
      Parameters:
      fg - the folder group
    • getFolderGroup

      public FolderGroup getFolderGroup(long groupId)
    • compareTo

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

      public boolean equals(Object obj)
      Overrides:
      equals in class PersistentObject
    • 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)
    • getCreation

      public Date getCreation()
    • setCreation

      public void setCreation(Date creation)
    • 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)