Interface PolicyService

    • Method Detail

      • create

        Policy create​(Policy policy)
        Create a policy
        Parameters:
        policy - the policy
        Returns:
        the newly created policy
      • create

        Policy create​(String blob,
                      String type,
                      String projectId,
                      String userId)
        Create a policy
        Parameters:
        blob - the policy rule itself as a serialized blob
        type - the MIME media type of the serialized policy blob
        projectId - the uuid for the associated project
        userId - the id of the user who owns the policy
        Returns:
        the newly created policy
      • get

        Policy get​(String policyId)
        Get detailed information on a policy by id
        Parameters:
        policyId - the policy id
        Returns:
        the policy
      • update

        Policy update​(Policy policy)
        Update a policy
        Parameters:
        policy - the policy set to update
        Returns:
        the updated policy
      • delete

        ActionResponse delete​(String policyId)
        Delete a policy
        Parameters:
        policyId - the policy id
        Returns:
        the ActionResponse
      • list

        List<? extends Policy> list()
        Returns:
        list of policies