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)
                  throws Exception
        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
        Throws:
        Exception - processing error
    • Method Detail

      • get

        public String get​(String targetPath,
                          boolean useCommas)
                   throws Exception
        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:
        Exception - processing error
      • getAclCommon

        public Response getAclCommon​(String targetPath,
                                     GetAclParams params)
        Get the ACL for a USS file or directory
        Parameters:
        targetPath - file name with path
        params - GetAclParams object to drive the request
        Returns:
        Response object