Class PolicyServiceImpl

    • Constructor Detail

      • PolicyServiceImpl

        public PolicyServiceImpl()
    • Method Detail

      • create

        public Policy create​(Policy policy)
        Description copied from interface: PolicyService
        Create a policy
        Specified by:
        create in interface PolicyService
        Parameters:
        policy - the policy
        Returns:
        the newly created policy
      • create

        public Policy create​(String blob,
                             String type,
                             String projectId,
                             String userId)
        Description copied from interface: PolicyService
        Create a policy
        Specified by:
        create in interface PolicyService
        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

        public Policy get​(String policyId)
        Description copied from interface: PolicyService
        Get detailed information on a policy by id
        Specified by:
        get in interface PolicyService
        Parameters:
        policyId - the policy id
        Returns:
        the policy
      • update

        public Policy update​(Policy policy)
        Description copied from interface: PolicyService
        Update a policy
        Specified by:
        update in interface PolicyService
        Parameters:
        policy - the policy set to update
        Returns:
        the updated policy