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:
- 2.0
- Author:
- James Kostrewski
-
-
Constructor Summary
Constructors Constructor Description UssChangeTag(ZosConnection connection)UssChangeTag ConstructorUssChangeTag(ZosConnection connection, ZoweRequest request)Alternative UssChangeTag constructor with ZoweRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsechangeCommon(String fileNamePath, ChangeTagParams params)Change tag of a UNIX file request driven by ChangeTagParams object settingsResponsechangeToBinary(String fileNamePath)Change tag of a UNIX file to binary typeResponsechangeToText(String fileNamePath, String codeSet)Change tag of a UNIX file to text typeResponseremove(String fileNamePath)Remove tag of a UNIX fileResponseretrieve(String fileNamePath)Retrieve existing UNIX file tag information
-
-
-
Constructor Detail
-
UssChangeTag
public UssChangeTag(ZosConnection connection)
UssChangeTag Constructor- Parameters:
connection- connection information, see ZosConnection object
-
UssChangeTag
public UssChangeTag(ZosConnection connection, ZoweRequest request) throws Exception
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- Throws:
Exception- processing error
-
-
Method Detail
-
changeToBinary
public Response changeToBinary(String fileNamePath) throws Exception
Change tag of a UNIX file to binary type- Parameters:
fileNamePath- file name with path- Returns:
- Response Object
- Throws:
Exception- processing error
-
changeToText
public Response changeToText(String fileNamePath, String codeSet) throws Exception
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:
Exception- processing error
-
remove
public Response remove(String fileNamePath) throws Exception
Remove tag of a UNIX file- Parameters:
fileNamePath- file name with path- Returns:
- Response Object
- Throws:
Exception- processing error
-
retrieve
public Response retrieve(String fileNamePath) throws Exception
Retrieve existing UNIX file tag information- Parameters:
fileNamePath- file name with path- Returns:
- Response Object
- Throws:
Exception- processing error
-
changeCommon
public Response changeCommon(String fileNamePath, ChangeTagParams params) throws Exception
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:
Exception- processing error
-
-