Class SvcConnUpdater

java.lang.Object
com.avoka.tm.svc.SvcConnUpdater

public class SvcConnUpdater extends 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 Details

    • 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 Details

    • setId

      public SvcConnUpdater setId(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(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(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(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(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(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(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(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(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.