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 Summary
ConstructorDescriptionCreate a service connection updater.SvcConnUpdater
(SvcConn svcConn) Create a a service connection updater for the given svcConn value object. -
Method Summary
Modifier 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.void
update()
Update the identified service connection with the specified parameters.
-
Constructor Details
-
SvcConnUpdater
public SvcConnUpdater()Create a service connection updater. -
SvcConnUpdater
Create a a service connection updater for the given svcConn value object.- Parameters:
svcConn
- the service connection object to update (required)
-
-
Method Details
-
setId
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
Set the service connection's username to update.- Parameters:
username
- the service connection's username to update- Returns:
- the service connection updater
-
setPassword
Set the service connection's password to update.- Parameters:
password
- the service connection's password to update- Returns:
- the service connection updater
-
setEndpoint
Set the service connection's endpoint to update.- Parameters:
endpoint
- the service connection's endpoint to update- Returns:
- the service connection updater
-
setFileData
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
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
Set the service connection's param1 to update.- Parameters:
param1
- the service connection's param1 to update- Returns:
- the service connection updater
-
setParam2
Set the service connection's param2 to update.- Parameters:
param2
- the service connection's param2 to update- Returns:
- the service connection updater
-
setParam3
Set the service connection's param3 to update.- Parameters:
param3
- the service connection's param3 to update- Returns:
- the service connection updater
-
setParam4
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.
-