Package com.logicaldoc.core.folder
Class Folder
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.metadata.ExtensibleObject
com.logicaldoc.core.security.SecurableExtensibleObject
com.logicaldoc.core.folder.Folder
- All Implemented Interfaces:
Securable,Serializable,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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQuotaAlertRecipient(String recipient) voidvoidintbooleangetColor()getGrid()intgetName()longgetPath()intgetStore()Gets the default store to use from this folder in the current nodegetTags()intgetTgs()getTile()intgetType()inthashCode()booleanisAlias()booleanvoidsetBarcodeTemplateId(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) voidsetTemplateLocked(int templateLocked) 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.security.SecurableExtensibleObject
addAccessControlEntry, getAccessControlEntry, getAccessControlList, setAccessControlListMethods inherited from class com.logicaldoc.core.metadata.ExtensibleObject
getAttribute, getAttributeAtPosition, getAttributeNames, getAttributeNames, getAttributes, getTemplate, getTemplateId, getTemplateName, getValue, getValueAttributes, getValues, removeAttribute, setAttribute, setAttributes, setTemplate, setTemplateId, setTemplateName, 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
-
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
-
compareTo
- Specified by:
compareToin interfaceComparable<Folder>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-