Class UssGetAcl


  • public class UssGetAcl
    extends Object
    Provides Unix System Services (USS) getfacl functionality

    z/OSMF REST API

    Version:
    2.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssGetAcl

        public UssGetAcl​(ZosConnection connection)
        UssGetAcl Constructor
        Parameters:
        connection - connection information, see ZosConnection object
      • UssGetAcl

        public UssGetAcl​(ZosConnection connection,
                         ZosmfRequest request)
        Alternative UssGetAcl constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.
        Parameters:
        connection - connection information, see ZosConnection object
        request - any compatible ZoweRequest Interface object
    • Method Detail

      • get

        public String get​(String targetPath,
                          boolean useCommas)
                   throws ZosmfRequestException
        Get the ACL for a USS file or directory
        Parameters:
        targetPath - file name with path
        useCommas - true if commas are to be used in the output
        Returns:
        string representation of response phrase
        Throws:
        ZosmfRequestException - request error state