public abstract class FileContentEntity extends Object implements ContentEntity, Serializable
LibRepositoryBoot.SIZE_ATTRIBUTE
and can read and write the LibRepositoryBoot.VERSION_ATTRIBUTE
.Modifier and Type | Method and Description |
---|---|
boolean |
delete()
Attempts to delete the entity.
|
Object |
getAttribute(String domain,
String key)
Returns a attribute value for the given domain (namespace) and attribute-name.
|
Object |
getContentId()
Returns a unique identifier.
|
String |
getName()
Returns the name of the file.
|
ContentLocation |
getParent()
Returns a reference to the parent location.
|
Repository |
getRepository()
Returns the current repository, to which tis entity belongs.
|
boolean |
setAttribute(String domain,
String key,
Object value)
Updates the attribute value for the given attribute domain and name.
|
public Repository getRepository()
getRepository
in interface ContentEntity
public String getName()
getName
in interface ContentEntity
public Object getContentId()
getContentId
in interface ContentEntity
public Object getAttribute(String domain, String key)
LibRepositoryBoot
class.getAttribute
in interface ContentEntity
domain
- the attribute domain.key
- the name of the attribute.public boolean setAttribute(String domain, String key, Object value)
setAttribute
in interface ContentEntity
domain
- the attribute domain.key
- the attribute namevalue
- the new attribute value.public ContentLocation getParent()
getParent
in interface ContentEntity
public boolean delete()
delete
in interface ContentEntity