Class UssChangeTag
- java.lang.Object
-
- zowe.client.sdk.zosfiles.uss.methods.UssChangeTag
-
public class UssChangeTag extends Object
Provides Unix System Services (USS) chtag functionality- Version:
- 3.0
- Author:
- James Kostrewski, Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description UssChangeTag(ZosConnection connection)UssChangeTag ConstructorUssChangeTag(ZosConnection connection, ZosmfRequest request)Alternative UssChangeTag constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responsebinary(String fileNamePath)Change tag of a UNIX file to binary typeResponsechangeCommon(String fileNamePath, ChangeTagParams params)Change tag of a UNIX file request driven by ChangeTagParams object settingsResponseget(String fileNamePath)Retrieve existing UNIX file tag informationResponseremove(String fileNamePath)Remove tag of a UNIX fileResponsetext(String fileNamePath, String codeSet)Change tag of a UNIX file to text type
-
-
-
Constructor Detail
-
UssChangeTag
public UssChangeTag(ZosConnection connection)
UssChangeTag Constructor- Parameters:
connection- connection information, see ZosConnection object
-
UssChangeTag
public UssChangeTag(ZosConnection connection, ZosmfRequest request)
Alternative UssChangeTag 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
-
-
Method Detail
-
binary
public Response binary(String fileNamePath) throws ZosmfRequestException
Change tag of a UNIX file to binary type- Parameters:
fileNamePath- file name with path- Returns:
- Response Object
- Throws:
ZosmfRequestException- request error state
-
text
public Response text(String fileNamePath, String codeSet) throws ZosmfRequestException
Change tag of a UNIX file to text type- Parameters:
fileNamePath- file name with pathcodeSet- code set name. i.e. IBM-1047- Returns:
- Response Object
- Throws:
ZosmfRequestException- request error state
-
remove
public Response remove(String fileNamePath) throws ZosmfRequestException
Remove tag of a UNIX file- Parameters:
fileNamePath- file name with path- Returns:
- Response Object
- Throws:
ZosmfRequestException- request error state
-
get
public Response get(String fileNamePath) throws ZosmfRequestException
Retrieve existing UNIX file tag information- Parameters:
fileNamePath- file name with path- Returns:
- Response Object
- Throws:
ZosmfRequestException- request error state
-
changeCommon
public Response changeCommon(String fileNamePath, ChangeTagParams params) throws ZosmfRequestException
Change tag of a UNIX file request driven by ChangeTagParams object settings- Parameters:
fileNamePath- file name with pathparams- parameters for the change tag request, see ChangeTagParams object- Returns:
- Response Object
- Throws:
ZosmfRequestException- request error state
-
-