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 TypeMethodDescriptionvoidaddPermission(DMSPermission item) Add the givenDMSPermissionitem to thepermissionscollection.voidaddTag(DMSFileTag item) Add the givenDMSFileTagitem to thetagscollection.voidClear thepermissionscollection.voidClear thetagscollection.booleangetId()getTags()inthashCode()voidRemove the givenDMSPermissionitem from thepermissionscollection.voidremoveTag(DMSFileTag item) Remove the givenDMSFileTagitem from thetagscollection.voidsetContent(String content) voidsetContentType(String contentType) voidsetFileName(String fileName) voidvoidsetIsDirectory(Boolean isDirectory) voidsetMetaFile(MetaFile metaFile) voidvoidsetPermissions(List<DMSPermission> permissions) voidsetRelatedId(Long relatedId) voidsetRelatedModel(String relatedModel) voidsetTags(Set<DMSFileTag> tags) toString()Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOnMethods 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 givenDMSPermissionitem to thepermissionscollection.It sets
item.file = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removePermission
Remove the givenDMSPermissionitem from thepermissionscollection.- Parameters:
item- the item to remove
-
clearPermissions
public void clearPermissions()Clear thepermissionscollection. -
getTags
-
setTags
-
addTag
Add the givenDMSFileTagitem to thetagscollection.- Parameters:
item- the item to add
-
removeTag
Remove the givenDMSFileTagitem from thetagscollection.- Parameters:
item- the item to remove
-
clearTags
public void clearTags()Clear thetagscollection. -
getContent
-
setContent
-
getContentType
-
setContentType
-
equals
-
hashCode
public int hashCode() -
toString
-