|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The kind of EntityAttributes
that the implementation uses.public interface AttributesEntityDelegate<T extends EntityAttributes>
This interface identifies an EntityDelegate
that have some kind of
EntityAttributes
.
The methods in this interface are not required to do any entity lock verification. That must be handled by the client code that is calling them.
Method Summary | |
---|---|
T |
getAttributes()
Get the entity attributes. |
Class<T> |
getAttributesType()
Get the type of entity attributes provided by this delegate. |
void |
setAttributes(T attr)
Set (and save) the entity attributes. |
void |
setDefaultAttributes(String name,
ObjectFactory<T> defaultAttributesFactory)
Set the default attributes for the entity. |
Methods inherited from interface org.entityfs.impl.EntityDelegate |
---|
canRead, canWrite, copy, copyAttributes, exists, getDelegateOfTypeOrNull, getEntityAdapter, getFileSystem, getLastModified, getName, getOwner, init, isReadOnly, rename, setLastModified, setOwner |
Method Detail |
---|
Class<T> getAttributesType()
T getAttributes()
void setAttributes(T attr)
attr
- The new attributes for the entity.void setDefaultAttributes(String name, ObjectFactory<T> defaultAttributesFactory)
DirectoryView.newEntity(EntityType, String, Object)
.
Implementations of this method may elect to not set any attributes at all. In that case, attributes for the entity will be created the first time that they are set to something.
Implementations of this method cannot call
setAttributes(EntityAttributes)
to set their attributes since
the name of the entity is not set yet when this is called.
name
- The name of the new entity.defaultAttributesFactory
- Factory for the default entity attributes
for the entity type of the delegate.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |