Interface PolicyTargetService

  • All Known Implementing Classes:
    PolicyTargetServiceImpl

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

      • list

        List<? extends PolicyTarget> list()
        List all policy target
        Returns:
        List of policy target
      • list

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

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

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

        PolicyTarget create​(PolicyTarget policyTarget)
        Create a new policy target
        Parameters:
        policy - target
        Returns:
        the newly created policy target
      • update

        PolicyTarget update​(String policyTargetId,
                            PolicyTarget policyTarget)
        Updates an existing policy target
        Parameters:
        policy - target identifier
        policy - target that is be used to updated
        Returns:
        the updated policy target