Interface PolicyActionService

  • All Known Implementing Classes:
    PolicyActionServiceImpl

    public interface PolicyActionService
    This interface defines all methods for the manipulation of policy actions
    Author:
    vinod borole
    • Method Detail

      • list

        List<? extends PolicyAction> list()
        List all policy actions
        Returns:
        List of policy actions
      • list

        List<? extends PolicyAction> list​(Map<String,​String> filteringParams)
        Returns list of policy actions filtered by parameters.
        Parameters:
        filteringParams - map (name, value) of filtering parameters
      • get

        PolicyAction get​(String id)
        Get the specified policy action by ID
        Parameters:
        id - the policy action id
        Returns:
        policy action or null if not found
      • delete

        ActionResponse delete​(String id)
        Delete of the policy action
        Parameters:
        id - the policy action id
        Returns:
        the action response
      • create

        PolicyAction create​(PolicyAction policyAction)
        Create a new policy action
        Parameters:
        policy - action
        Returns:
        the newly created policy action
      • update

        PolicyAction update​(String policyActionId,
                            PolicyActionUpdate policyAction)
        Updates an existing policy action
        Parameters:
        policy - action identifier
        policy - action that is be used to updated
        Returns:
        the updated policy action