Package com.axelor.dms.db
Class DMSFile
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.dms.db.DMSFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPermission
(DMSPermission item) Add the givenDMSPermission
item to thepermissions
collection.void
addTag
(DMSFileTag item) Add the givenDMSFileTag
item to thetags
collection.void
Clear thepermissions
collection.void
Clear thetags
collection.boolean
getId()
getTags()
int
hashCode()
void
Remove the givenDMSPermission
item from thepermissions
collection.void
removeTag
(DMSFileTag item) Remove the givenDMSFileTag
item from thetags
collection.void
setContent
(String content) void
setContentType
(String contentType) void
setFileName
(String fileName) void
void
setIsDirectory
(Boolean isDirectory) void
setMetaFile
(MetaFile metaFile) void
void
setPermissions
(List<DMSPermission> permissions) void
setRelatedId
(Long relatedId) void
setRelatedModel
(String relatedModel) void
setTags
(Set<DMSFileTag> tags) toString()
Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
Methods inherited from class com.axelor.db.Model
getArchived, getCid, getVersion, isSelected, setArchived, setCid, setSelected, setVersion
-
Constructor Details
-
DMSFile
public DMSFile()
-
-
Method Details
-
getId
-
setId
-
getFileName
-
setFileName
-
getIsDirectory
-
setIsDirectory
-
getParent
-
setParent
-
getRelatedId
-
setRelatedId
-
getRelatedModel
-
setRelatedModel
-
getMetaFile
-
setMetaFile
-
getPermissions
-
setPermissions
-
addPermission
Add the givenDMSPermission
item to thepermissions
collection.It sets
item.file = this
to ensure the proper relationship.- Parameters:
item
- the item to add
-
removePermission
Remove the givenDMSPermission
item from thepermissions
collection.- Parameters:
item
- the item to remove
-
clearPermissions
public void clearPermissions()Clear thepermissions
collection. -
getTags
-
setTags
-
addTag
Add the givenDMSFileTag
item to thetags
collection.- Parameters:
item
- the item to add
-
removeTag
Remove the givenDMSFileTag
item from thetags
collection.- Parameters:
item
- the item to remove
-
clearTags
public void clearTags()Clear thetags
collection. -
getContent
-
setContent
-
getContentType
-
setContentType
-
equals
-
hashCode
public int hashCode() -
toString
-