Class UssChangeOwner


  • public class UssChangeOwner
    extends Object
    Parameter container class for Unix System Services (USS) chown operation
    Version:
    3.0
    Author:
    James Kostrewski
    • Constructor Detail

      • UssChangeOwner

        public UssChangeOwner​(ZosConnection connection)
        UssChangeOwner constructor
        Parameters:
        connection - connection information, see ZosConnection object
      • UssChangeOwner

        public UssChangeOwner​(ZosConnection connection,
                              ZosmfRequest request)
        Alternative UssChangeOwner 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,
                               String owner)
                        throws ZosmfRequestException
        Perform chown operation on UNIX file or directory
        Parameters:
        targetPath - identifies the UNIX file or directory to be the target of the operation
        owner - new owner of the file or directory
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state
      • changeCommon

        public Response changeCommon​(String targetPath,
                                     ChangeOwnerParams params)
                              throws ZosmfRequestException
        Perform chown operation on UNIX file or directory request driven by ChangeOwnerParams object settings
        Parameters:
        targetPath - identifies the UNIX file or directory to be the target of the operation
        params - change owner response parameters, see ChangeOwnerParams object
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state