Class UssSetAcl
- java.lang.Object
-
- zowe.client.sdk.zosfiles.uss.methods.UssSetAcl
-
public class UssSetAcl extends Object
Provides Unix System Services (USS) setfacl functionality- Version:
- 2.0
- Author:
- James Kostrewski
-
-
Constructor Summary
Constructors Constructor Description UssSetAcl(ZosConnection connection)UssSetAcl ConstructorUssSetAcl(ZosConnection connection, ZosmfRequest request)Alternative UssSetAcl constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responsedelete(String targetPath, String value)Deletes the specified ACL entry from the file or directoryResponsedeleteByType(String targetPath, DeleteAclType deleteType)Delete all extended ACL entries by type (setfacl -D type):Responsemodify(String targetPath, String value)Modifies the specified ACL entry for the file or directoryResponseset(String targetPath, String value)Sets the ACL for a USS file or directoryResponsesetAclCommon(String targetPath, SetAclParams params)Sets the ACL for a USS file or directory request driven by SetAclParams object settings
-
-
-
Constructor Detail
-
UssSetAcl
public UssSetAcl(ZosConnection connection)
UssSetAcl Constructor- Parameters:
connection- connection information, see ZosConnection object
-
UssSetAcl
public UssSetAcl(ZosConnection connection, ZosmfRequest request) throws Exception
Alternative UssSetAcl 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
-
set
public Response set(String targetPath, String value)
Sets the ACL for a USS file or directory- Parameters:
targetPath- target path of the file or directoryvalue- sets the extended ACL entries that are specified by 'entries'- Returns:
- Response object
-
modify
public Response modify(String targetPath, String value)
Modifies the specified ACL entry for the file or directory- Parameters:
targetPath- target path of the file or directoryvalue- modifies the extended ACL entries that are specified by 'entries'- Returns:
- Response object
-
delete
public Response delete(String targetPath, String value)
Deletes the specified ACL entry from the file or directory- Parameters:
targetPath- target path of the file or directoryvalue- deletes the extended ACL entries that are specified by 'entries'- Returns:
- Response object
-
deleteByType
public Response deleteByType(String targetPath, DeleteAclType deleteType)
Delete all extended ACL entries by type (setfacl -D type):- Parameters:
targetPath- target path of the file or directorydeleteType- deletes the extended ACL entries that are specified by type- Returns:
- Response object
-
setAclCommon
public Response setAclCommon(String targetPath, SetAclParams params)
Sets the ACL for a USS file or directory request driven by SetAclParams object settings- Parameters:
targetPath- target path of the file or directoryparams- SetAclParams object to drive the request- Returns:
- Response object
-
-