Interface ExternalPolicyService

  • All Superinterfaces:
    RestService
    All Known Implementing Classes:
    ExternalPolicyServiceImpl

    public interface ExternalPolicyService
    extends RestService
    This interface defines all methods for the manipulation of external policies
    Author:
    vinod borole
    • Method Detail

      • list

        List<? extends ExternalPolicy> list()
        List all external policies
        Returns:
        List of external policies
      • list

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

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

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

        ExternalPolicy create​(ExternalPolicyCreate externalPolicy)
        Create a new external policy
        Parameters:
        external - policy
        Returns:
        the newly created external policy
      • update

        ExternalPolicy update​(String externalPolicyId,
                              ExternalPolicyCreate externalPolicy)
        Updates an existing external policy
        Parameters:
        external - policy identifier
        external - policy that is be used to updated
        Returns:
        the updated external policy