Class UssChangeOwner
- java.lang.Object
-
- zowe.client.sdk.zosfiles.uss.methods.UssChangeOwner
-
public class UssChangeOwner extends Object
Parameter container class for Unix System Services (USS) chown operation- Version:
- 2.0
- Author:
- James Kostrewski
-
-
Constructor Summary
Constructors Constructor Description UssChangeOwner(ZosConnection connection)UssChangeOwner constructorUssChangeOwner(ZosConnection connection, ZoweRequest request)Alternative UssChangeOwner constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responsechange(String targetPath, String owner)Perform chown operation on UNIX file or directoryResponsechange(String targetPath, ChangeOwnerParams params)Perform chown operation on UNIX file or directory request driven by ChangeOwnerParams object settings
-
-
-
Constructor Detail
-
UssChangeOwner
public UssChangeOwner(ZosConnection connection)
UssChangeOwner constructor- Parameters:
connection- connection information, see ZosConnection object
-
UssChangeOwner
public UssChangeOwner(ZosConnection connection, ZoweRequest request) throws Exception
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 objectrequest- any compatible ZoweRequest Interface object- Throws:
Exception- processing error
-
-
Method Detail
-
change
public Response change(String targetPath, String owner) throws Exception
Perform chown operation on UNIX file or directory- Parameters:
targetPath- identifies the UNIX file or directory to be the target of the operationowner- new owner of the file or directory- Returns:
- Response object
- Throws:
Exception- processing error
-
change
public Response change(String targetPath, ChangeOwnerParams params) throws Exception
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 operationparams- change owner response parameters, see ChangeOwnerParams object- Returns:
- Response object
- Throws:
Exception- processing error
-
-