@Entity public class DMSFile extends AuditableModel
Constructor and Description |
---|
DMSFile() |
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
getArchived, getVersion, isSelected, setArchived, setSelected, setVersion
public String getFileName()
public void setFileName(String fileName)
public Boolean getIsDirectory()
public void setIsDirectory(Boolean isDirectory)
public DMSFile getParent()
public void setParent(DMSFile parent)
public Long getRelatedId()
public void setRelatedId(Long relatedId)
public String getRelatedModel()
public void setRelatedModel(String relatedModel)
public MetaFile getMetaFile()
public void setMetaFile(MetaFile metaFile)
public List<DMSPermission> getPermissions()
public void setPermissions(List<DMSPermission> permissions)
public void addPermission(DMSPermission item)
DMSPermission
item to the permissions
.
It sets item.file = this
to ensure the proper relationship.
item
- the item to addpublic void removePermission(DMSPermission item)
DMSPermission
item from the permissions
.item
- the item to removepublic void clearPermissions()
permissions
collection.
If you have to query DMSPermission
records in same transaction, make
sure to call EntityManager.flush()
to avoid
unexpected errors.
public Set<DMSFileTag> getTags()
public void setTags(Set<DMSFileTag> tags)
public void addTag(DMSFileTag item)
DMSFileTag
item to the tags
.item
- the item to addpublic void removeTag(DMSFileTag item)
DMSFileTag
item from the tags
.item
- the item to removepublic void clearTags()
tags
collection.public String getContent()
public void setContent(String content)
public String getContentType()
public void setContentType(String contentType)