Package com.avoka.tm.svc
Class SvcConnUpdater
java.lang.Object
com.avoka.tm.svc.SvcConnUpdater
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 SummaryConstructorsConstructorDescriptionCreate a service connection updater.SvcConnUpdater(SvcConn svcConn) Create a a service connection updater for the given svcConn value object.
- 
Method SummaryModifier and TypeMethodDescriptionsetEndpoint(String endpoint) Set the service connection's endpoint to update.setFileData(byte[] filedata) Set the service connection's file data to update.setFileName(String filename) Set the service connection's file name to update.Set the service connection's id (PK) to identify the service connection to update.Set the service connection's param1 to update.Set the service connection's param2 to update.Set the service connection's param3 to update.Set the service connection's param4 to update.setPassword(String password) Set the service connection's password to update.setUsername(String username) Set the service connection's username to update.voidupdate()Update the identified service connection with the specified parameters.
- 
Constructor Details- 
SvcConnUpdaterpublic SvcConnUpdater()Create a service connection updater.
- 
SvcConnUpdaterCreate a a service connection updater for the given svcConn value object.- Parameters:
- svcConn- the service connection object to update (required)
 
 
- 
- 
Method Details- 
setIdSet 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
 
- 
setUsernameSet the service connection's username to update.- Parameters:
- username- the service connection's username to update
- Returns:
- the service connection updater
 
- 
setPasswordSet the service connection's password to update.- Parameters:
- password- the service connection's password to update
- Returns:
- the service connection updater
 
- 
setEndpointSet the service connection's endpoint to update.- Parameters:
- endpoint- the service connection's endpoint to update
- Returns:
- the service connection updater
 
- 
setFileDataSet the service connection's file data to update.- Parameters:
- filedata- the service connection's file data to update
- Returns:
- the service connection updater
 
- 
setFileNameSet the service connection's file name to update.- Parameters:
- filename- the service connection's file name to update
- Returns:
- the service connection updater
 
- 
setParam1Set the service connection's param1 to update.- Parameters:
- param1- the service connection's param1 to update
- Returns:
- the service connection updater
 
- 
setParam2Set the service connection's param2 to update.- Parameters:
- param2- the service connection's param2 to update
- Returns:
- the service connection updater
 
- 
setParam3Set the service connection's param3 to update.- Parameters:
- param3- the service connection's param3 to update
- Returns:
- the service connection updater
 
- 
setParam4Set the service connection's param4 to update.- Parameters:
- param4- the service connection's param4 to update
- Returns:
- the service connection updater
 
- 
updatepublic void update()Update the identified service connection with the specified parameters.
 
-