Class UssSetAcl


  • public class UssSetAcl
    extends Object
    Provides Unix System Services (USS) setfacl functionality

    z/OSMF REST API

    Version:
    5.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssSetAcl

        public UssSetAcl​(ZosConnection connection)
        UssSetAcl Constructor
        Parameters:
        connection - for connection information, see ZosConnection object
    • Method Detail

      • set

        public Response set​(String targetPath,
                            String value)
                     throws ZosmfRequestException
        Sets the ACL for a USS file or directory
        Parameters:
        targetPath - target path of the file or directory
        value - sets the extended ACL entries that are specified by 'entries'
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state
      • modify

        public Response modify​(String targetPath,
                               String value)
                        throws ZosmfRequestException
        Modifies the specified ACL entry for the file or directory
        Parameters:
        targetPath - target path of the file or directory
        value - modifies the extended ACL entries that are specified by 'entries'
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state
      • delete

        public Response delete​(String targetPath,
                               String value)
                        throws ZosmfRequestException
        Deletes the specified ACL entry from the file or directory
        Parameters:
        targetPath - target path of the file or directory
        value - deletes the extended ACL entries that are specified by 'entries'
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state
      • deleteByType

        public Response deleteByType​(String targetPath,
                                     DeleteAclType deleteType)
                              throws ZosmfRequestException
        Delete all extended ACL entries by type (setfacl -D type):
        Parameters:
        targetPath - target path of the file or directory
        deleteType - deletes the extended ACL entries that are specified by type
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state
      • setAclCommon

        public Response setAclCommon​(String targetPath,
                                     UssSetAclInputData setAclInputData)
                              throws ZosmfRequestException
        Sets the ACL for a USS file or directory request driven by UssSetAclInputData object settings
        Parameters:
        targetPath - target path of the file or directory
        setAclInputData - UssSetAclInputData object to drive the request
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state