Package com.avoka.tm.svc
Class StatusService
java.lang.Object
com.avoka.tm.svc.StatusService
Provides a status updater and status retrieval class for Client, Form, Portal and TemplateVersion.
Examples
Please find the Status updater examples below.
Set Client Status
This Groovy example shows how to update a Client status to Active
 import com.avoka.tm.svc.*;
 new StatusService()
     .setClient("clientCode")
     .setStatus("Active")
     .update() 
 Set form status and form version simultaneously
This Groovy example shows how to update a form status and form version status to Offline simultaneously
 import com.avoka.tm.svc.*
 new StatusService()
       .setForm("formCode")
       .setTemplateVersion("formCode", "versionNumber")
       .setStatus("Offline")
       .update() 
 Get Portal Status
This Groovy example shows how to get portal status with using portal Name
 import com.avoka.tm.svc.*
 new StatusService()
         .getPortalStatus("portalName")- Since:
- 21.11
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetClientStatus(String clientCode) Get the client Status for the specified Client Code.getFormStatus(String formCode) Get the form Status for the specified form Code.getPortalStatus(String portalName) Get the portal Status for the specified portal name.Retrieve the status of the set entity.getTemplateVersionStatus(String formCode, String versionNumber) Get the Form Version status for the specified form code and version Number.Set the Client for which the status has to be set.Set the Form for which the status has to be set.Set the Portal for which the status has to be set.Set the status to be set for the entity.setTemplateVersion(String formCode, String versionNumber) Set the Form Version for which the status has to be set.voidupdate()Update the identified entities with the specified status.
- 
Constructor Details- 
StatusServicepublic StatusService()Create StatusService.
 
- 
- 
Method Details- 
setClientSet the Client for which the status has to be set.- Parameters:
- clientCode- Client code
- Returns:
- the StatusService
 
- 
setFormSet the Form for which the status has to be set.- Parameters:
- formCode- Form code
- Returns:
- the StatusService
 
- 
setTemplateVersionSet the Form Version for which the status has to be set.- Parameters:
- formCode- Form code associated with template version
- versionNumber- Version number
- Returns:
- the StatusService
 
- 
setPortalSet the Portal for which the status has to be set.- Parameters:
- portalName- Portal Name
- Returns:
- the StatusService
 
- 
setStatusSet the status to be set for the entity.- Parameters:
- statusType- Status type
- Returns:
- the StatusService
 
- 
updatepublic void update()Update the identified entities with the specified status.
- 
getStatusRetrieve the status of the set entity.- Returns:
- Status of the set entity.
 
- 
getClientStatusGet the client Status for the specified Client Code.- Parameters:
- clientCode- Client code
- Returns:
- the Client status
 
- 
getFormStatusGet the form Status for the specified form Code.- Parameters:
- formCode- Form code
- Returns:
- the Form status
 
- 
getPortalStatusGet the portal Status for the specified portal name.- Parameters:
- portalName- portal Name
- Returns:
- the Portal status
 
- 
getTemplateVersionStatusGet the Form Version status for the specified form code and version Number.- Parameters:
- formCode- Form code associated with template version
- versionNumber- Version number
- Returns:
- the form version status
 
 
-