Interface RetentionPoliciesService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService

@RemoteServiceRelativePath("retentionpolicies") public interface RetentionPoliciesService extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the RetentionPolicies Service. This service gives all needed methods to handle the retention policies.
  • Method Details

    • delete

      void delete(long id) throws ServerException
      Deletes a given policy
      Parameters:
      id - identifier of the retention policy
      Throws:
      ServerException - an error happened in the server application
    • save

      Creates or updates a retention policy
      Parameters:
      policy - the retention policy to save
      Returns:
      the saved retention policy
      Throws:
      ServerException - an error happened in the server application
    • getPolicy

      GUIRetentionPolicy getPolicy(long id) throws ServerException
      Loads a given policy from the database
      Parameters:
      id - identifiers of the policy
      Returns:
      the saved retention policy
      Throws:
      ServerException - an error happened in the server application
    • reorder

      void reorder(List<Long> ids) throws ServerException
      Reorder the policies
      Parameters:
      ids - identifier of the policies to reorder
      Throws:
      ServerException - an error happened in the server application
    • changeStatus

      void changeStatus(long id, boolean enabled) throws ServerException
      Changes a policy enabled/disabled status
      Parameters:
      id - identifier of the policy to enable/disable
      enabled - the enabled status of the policy
      Throws:
      ServerException - an error happened in the server application