Class SvcConnUpdater


  • public class SvcConnUpdater
    extends java.lang.Object

    Provides a service connection value object updater class.

    Examples

    Please find the service connection updater examples below.

    Update Service Connection Password

    This Groovy example shows how to update a service connection password.

     import com.avoka.tm.svc.*
    
     SvcConn svcConn = ...
    
     String password = "MyLittlePoney95"
    
     new SvcConnUpdater(svcConn)
         .setPassword("param1")
         .update() 
    Since:
    5.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      SvcConnUpdater()
      Create a service connection updater.
      SvcConnUpdater​(SvcConn svcConn)
      Create a a service connection updater for the given svcConn value object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SvcConnUpdater setEndpoint​(java.lang.String endpoint)
      Set the service connection's endpoint to update.
      SvcConnUpdater setFileData​(byte[] filedata)
      Set the service connection's file data to update.
      SvcConnUpdater setFileName​(java.lang.String filename)
      Set the service connection's file name to update.
      SvcConnUpdater setId​(java.lang.Long id)
      Set the service connection's id (PK) to identify the service connection to update.
      SvcConnUpdater setParam1​(java.lang.String param1)
      Set the service connection's param1 to update.
      SvcConnUpdater setParam2​(java.lang.String param2)
      Set the service connection's param2 to update.
      SvcConnUpdater setParam3​(java.lang.String param3)
      Set the service connection's param3 to update.
      SvcConnUpdater setParam4​(java.lang.String param4)
      Set the service connection's param4 to update.
      SvcConnUpdater setPassword​(java.lang.String password)
      Set the service connection's password to update.
      SvcConnUpdater setUsername​(java.lang.String username)
      Set the service connection's username to update.
      void update()
      Update the identified service connection with the specified parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SvcConnUpdater

        public SvcConnUpdater()
        Create a service connection updater.
      • SvcConnUpdater

        public SvcConnUpdater​(SvcConn svcConn)
        Create a a service connection updater for the given svcConn value object.
        Parameters:
        svcConn - the service connection object to update (required)
    • Method Detail

      • setId

        public SvcConnUpdater setId​(java.lang.Long id)
        Set the service connection's id (PK) to identify the service connection to update.
        Parameters:
        id - the service connection's id to identify the service connection to update (required)
        Returns:
        the service connection updater
      • setUsername

        public SvcConnUpdater setUsername​(java.lang.String username)
        Set the service connection's username to update.
        Parameters:
        username - the service connection's username to update
        Returns:
        the service connection updater
      • setPassword

        public SvcConnUpdater setPassword​(java.lang.String password)
        Set the service connection's password to update.
        Parameters:
        password - the service connection's password to update
        Returns:
        the service connection updater
      • setEndpoint

        public SvcConnUpdater setEndpoint​(java.lang.String endpoint)
        Set the service connection's endpoint to update.
        Parameters:
        endpoint - the service connection's endpoint to update
        Returns:
        the service connection updater
      • setFileData

        public SvcConnUpdater setFileData​(byte[] filedata)
        Set the service connection's file data to update.
        Parameters:
        filedata - the service connection's file data to update
        Returns:
        the service connection updater
      • setFileName

        public SvcConnUpdater setFileName​(java.lang.String filename)
        Set the service connection's file name to update.
        Parameters:
        filename - the service connection's file name to update
        Returns:
        the service connection updater
      • setParam1

        public SvcConnUpdater setParam1​(java.lang.String param1)
        Set the service connection's param1 to update.
        Parameters:
        param1 - the service connection's param1 to update
        Returns:
        the service connection updater
      • setParam2

        public SvcConnUpdater setParam2​(java.lang.String param2)
        Set the service connection's param2 to update.
        Parameters:
        param2 - the service connection's param2 to update
        Returns:
        the service connection updater
      • setParam3

        public SvcConnUpdater setParam3​(java.lang.String param3)
        Set the service connection's param3 to update.
        Parameters:
        param3 - the service connection's param3 to update
        Returns:
        the service connection updater
      • setParam4

        public SvcConnUpdater setParam4​(java.lang.String param4)
        Set the service connection's param4 to update.
        Parameters:
        param4 - the service connection's param4 to update
        Returns:
        the service connection updater
      • update

        public void update()
        Update the identified service connection with the specified parameters.