Class UssChangeTag


  • public class UssChangeTag
    extends Object
    Provides Unix System Services (USS) chtag functionality

    z/OSMF REST API

    Version:
    2.0
    Author:
    James Kostrewski, Frank Giordano
    • 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 object
        request - any compatible ZoweRequest Interface object
    • Method Detail

      • binary

        public Response binary​(String fileNamePath)
        Change tag of a UNIX file to binary type
        Parameters:
        fileNamePath - file name with path
        Returns:
        Response Object
      • text

        public Response text​(String fileNamePath,
                             String codeSet)
        Change tag of a UNIX file to text type
        Parameters:
        fileNamePath - file name with path
        codeSet - code set name. i.e. IBM-1047
        Returns:
        Response Object
      • remove

        public Response remove​(String fileNamePath)
        Remove tag of a UNIX file
        Parameters:
        fileNamePath - file name with path
        Returns:
        Response Object
      • get

        public Response get​(String fileNamePath)
        Retrieve existing UNIX file tag information
        Parameters:
        fileNamePath - file name with path
        Returns:
        Response Object
      • changeCommon

        public Response changeCommon​(String fileNamePath,
                                     ChangeTagParams params)
        Change tag of a UNIX file request driven by ChangeTagParams object settings
        Parameters:
        fileNamePath - file name with path
        params - parameters for the change tag request, see ChangeTagParams object
        Returns:
        Response Object