Class UssChangeMode


  • public class UssChangeMode
    extends Object
    Provides Unix System Services (USS) chmod functionality

    z/OSMF REST API

    Version:
    4.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssChangeMode

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

        public UssChangeMode​(ZosConnection connection,
                             ZosmfRequest request)
        Alternative UssChangeMode 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

      • change

        public Response change​(String targetPath,
                               ChangeModeParams params)
                        throws ZosmfRequestException
        Change the mode of a UNIX file or directory request driven by ChangeModeParams object settings
        Parameters:
        targetPath - identifies the UNIX file or directory to be the target of the operation
        params - change mode response parameters, see ChangeModeParams object
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state