com.ibm.jarm.api.core

Interface Persistable

    • Method Summary

      Methods 
      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.
    • Method Detail

      • setPermissions

        void setPermissions(java.util.List<RMPermission> permissions)
        Sets the given 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.
        Parameters:
        permissions - the List of RMPermission instances to set. This entry cannot be null but can be empty.
      • save

        void save(RMRefreshMode refreshMode)
        Saves the current property and permission state of this entity to its associated repository.

        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.

        Parameters:
        refreshMode - a RMRefreshMode value that determines whether or not the current state of the cached properties of the entity are refreshed from the repository.
        Throws:
        RAL_SAVE_OPERATION_FAILED - for any validation or other unexpected save error.

© Copyright IBM Corp. 2010, 2013. All Rights Reserved.