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