Class UssGetAcl
- java.lang.Object
-
- zowe.client.sdk.zosfiles.uss.methods.UssGetAcl
-
public class UssGetAcl extends Object
Provides Unix System Services (USS) getfacl functionality- Version:
- 2.0
- Author:
- James Kostrewski
-
-
Constructor Summary
Constructors Constructor Description UssGetAcl(ZosConnection connection)UssGetAcl ConstructorUssGetAcl(ZosConnection connection, ZosmfRequest request)Alternative UssGetAcl constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(String targetPath, boolean useCommas)Get the ACL for a USS file or directoryResponsegetAclCommon(String targetPath, GetAclParams params)Get the ACL for a USS file or directory
-
-
-
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 objectrequest- 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 pathuseCommas- 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 pathparams- GetAclParams object to drive the request- Returns:
- Response object
-
-