Class UssChangeOwner


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

      • UssChangeOwner

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

      • change

        public Response change​(String targetPath,
                               String owner)
                        throws ZosmfRequestException
        Perform chown operation on a 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 a 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