Package com.logicaldoc.core.folder
Class Folder
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.metadata.ExtensibleObject
com.logicaldoc.core.folder.Folder
- All Implemented Interfaces:
Extensible,Secure<FolderAccessControlEntry>,Serializable,Comparable<Folder>
@Entity
public class Folder
extends ExtensibleObject
implements Secure<FolderAccessControlEntry>, Comparable<Folder>
This class represents the key concept of security of documents. The Folder is
used as an element to build hierarchies. With the AccessControlList 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final Stringstatic final longstatic final intstatic final intstatic final intFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new entry, replacing a previous one with the same groupId.voidaddQuotaAlertRecipient(String recipient) voidvoidintbooleangetAccessControlEntry(long groupId) getColor()getGrid()intgetName()longgetPath()intgetStore()Gets the default store to use from this folder in the current nodegetTags()intgetTgs()getTile()intgetType()inthashCode()booleanisAlias()booleanvoidsetAccessControlList(Set<FolderAccessControlEntry> accessControlList) voidsetAttributes(Map<String, Attribute> attributes) voidsetBarcodeTemplateId(Long barcodeTemplateId) voidvoidsetCreator(String creator) voidsetCreatorId(Long creatorId) voidsetDeleteUser(String deleteUser) voidsetDeleteUserId(Long deleteUserId) voidsetDescription(String description) voidsetFoldRef(Long foldRef) voidvoidsetHidden(int hidden) voidsetMaxVersions(Integer maxVersions) voidvoidsetOcrTemplateId(Long ocrTemplateId) voidsetParentId(long parentId) voidvoidsetPathExtended(String pathExtended) voidsetPosition(int position) voidsetQuotaAlertRecipients(String quotaAlertRecipients) voidsetQuotaDocs(Long quotaDocs) voidsetQuotaSize(Long quotaSize) voidsetQuotaThreshold(Integer quotaThreshold) voidsetSecurityRef(Long securityRef) voidGets the default store to use from this folder in the current nodevoidvoidvoidsetTagsFromWords(Set<String> tgs) voidsetTemplate(Template template) voidsetTemplateId(Long templateId) voidsetTemplateLocked(int templateLocked) voidsetTemplateName(String templateName) voidSo not invoke this method directly, it is thought to be used by the ORM inside the DAO.voidvoidsetType(int type) toString()Methods inherited from class com.logicaldoc.core.metadata.ExtensibleObject
getAttribute, getAttributeAtPosition, getAttributeNames, getAttributeNames, getValue, getValueAttributes, getValues, removeAttribute, setAttribute, setValue, setValuesMethods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Field Details
-
ROOTID
public static final long ROOTID- See Also:
-
DEFAULTWORKSPACEID
public static final long DEFAULTWORKSPACEID- See Also:
-
DEFAULTWORKSPACENAME
- See Also:
-
TYPE_DEFAULT
public static final int TYPE_DEFAULT- See Also:
-
TYPE_WORKSPACE
public static final int TYPE_WORKSPACE- See Also:
-
TYPE_ALIAS
public static final int TYPE_ALIAS- See Also:
-
-
Constructor Details
-
Folder
public Folder() -
Folder
-
Folder
-
-
Method Details
-
getAccessControlList
- Specified by:
getAccessControlListin interfaceSecure<FolderAccessControlEntry>
-
setAccessControlList
- Specified by:
setAccessControlListin interfaceSecure<FolderAccessControlEntry>
-
isWorkspace
public boolean isWorkspace() -
isAlias
public boolean isAlias() -
getParentId
public long getParentId() -
setParentId
public void setParentId(long parentId) -
getName
-
setName
-
getSecurityRef
-
setSecurityRef
-
getDescription
-
setDescription
-
getType
public int getType() -
setType
public void setType(int type) -
getCreator
-
setCreator
-
getCreatorId
-
setCreatorId
-
getTemplateLocked
public int getTemplateLocked() -
setTemplateLocked
public void setTemplateLocked(int templateLocked) -
getDeleteUserId
-
setDeleteUserId
-
getPosition
public int getPosition() -
setPosition
public void setPosition(int position) -
getHidden
public int getHidden() -
setHidden
public void setHidden(int hidden) -
getQuotaDocs
-
setQuotaDocs
-
getQuotaSize
-
setQuotaSize
-
getFoldRef
-
setFoldRef
-
getStore
Gets the default store to use from this folder in the current node- Returns:
- identifier of the default store
-
setStore
Gets the default store to use from this folder in the current node- Parameters:
store- identifier of the default store
-
getMaxVersions
-
setMaxVersions
-
getColor
-
setColor
-
getTags
-
setTags
-
getTgs
-
setTgs
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
-
clearTags
public void clearTags() -
setTagsFromWords
-
getTagsAsWords
-
getGrid
-
setGrid
-
getTagsString
-
getQuotaThreshold
-
setQuotaThreshold
-
getQuotaAlertRecipients
-
setQuotaAlertRecipients
-
getQuotaAlertRecipientsAsList
-
addQuotaAlertRecipient
-
setPath
-
getPath
-
getDeleteUser
-
setDeleteUser
-
getPathExtended
-
setPathExtended
-
getOcrTemplateId
-
setOcrTemplateId
-
getBarcodeTemplateId
-
setBarcodeTemplateId
-
toString
- Overrides:
toStringin classPersistentObject
-
getStores
-
setStores
-
getTile
-
setTile
-
getAttributes
- Specified by:
getAttributesin interfaceExtensible
-
setAttributes
- Specified by:
setAttributesin interfaceExtensible
-
getTemplateId
- Specified by:
getTemplateIdin interfaceExtensible
-
setTemplateId
- Specified by:
setTemplateIdin interfaceExtensible
-
getTemplateName
- Specified by:
getTemplateNamein interfaceExtensible
-
setTemplateName
- Specified by:
setTemplateNamein interfaceExtensible
-
getTemplate
- Specified by:
getTemplatein interfaceExtensible
-
setTemplate
- Specified by:
setTemplatein interfaceExtensible
-
getAccessControlEntry
- Specified by:
getAccessControlEntryin interfaceSecure<FolderAccessControlEntry>
-
addAccessControlEntry
Description copied from interface:SecureAdds a new entry, replacing a previous one with the same groupId.- Specified by:
addAccessControlEntryin interfaceSecure<FolderAccessControlEntry>- Parameters:
ace- the access control entry to add
-
compareTo
- Specified by:
compareToin interfaceComparable<Folder>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-