public interface Persistable
This interface is used to distinguish between those subclasses of
BaseEntity
that do support persistence
(e.g., containers, records, custom objects) from those that
do not (e.g., repositories, system configuration, etc.).
Modifier and Type | Method and Description |
---|---|
void |
save(RMRefreshMode refreshMode)
Saves the current property and permission state of this entity to its associated repository.
|
void |
setPermissions(java.util.List<RMPermission> permissions)
Sets the given
RMPermission collection for this entity. |
void setPermissions(java.util.List<RMPermission> permissions)
RMPermission
collection for this entity.
An eventual call to the Persistable.save
method must be
performed in order to persist the new permissions state to the repository.permissions
- the List
of RMPermission
instances to
set. This entry cannot be null
but can be empty.void save(RMRefreshMode refreshMode)
NOTE: when updating any "vital"-related properties of a Vitalable
instance,
the Vitalable.setVital
method should
be used instead of directly modifying such properties and performing a save operation.
refreshMode
- a RMRefreshMode
value
that determines whether or not the current state of the
cached properties of the entity are refreshed from the repository.RAL_SAVE_OPERATION_FAILED
- for any validation or other unexpected save error.© Copyright IBM Corp. 2010, 2013. All Rights Reserved.