Class GroupSvc

java.lang.Object
com.avoka.tm.svc.GroupSvc
Direct Known Subclasses:
FormGroupSvc

public class GroupSvc extends Object

Provides a Group Service which supports create, delete, deleteOrPurge a group (Job | Alert | Form)

Examples Link icon

Please find the Group service examples below.

Create an Alert Group Link icon

This example shows how to create an alert Group object.

 import com.avoka.tm.svc.*
 import com.avoka.tm.vo.*
 Group group = GroupSvc.getAlertGroupSvc()
     .setGroupName("AlertGroup1")
     .setDescription("Description")
     .createGroup() 

Create a Job Group Link icon

This example shows how to create a job Group object.

 import com.avoka.tm.svc.*
 import com.avoka.tm.vo.*
 Group group = GroupSvc.getJobGroupSvc()
     .setGroupName("JobGroup1")
     .setDescription("Description")
     .createGroup() 

Create a Form Group Link icon

*

This example shows how to create a form Group Group object.

 import com.avoka.tm.svc.*
 import com.avoka.tm.vo.*
 Group group = GroupSvc.getFormGroupSvc()
     .setGroupName("FormGroup1")
     .setDescription("Description")
     .setFormWorkGroupFlag(true)
     .setNewFormFlag(true)
     .setSavedFormFlag(true)
     .setCompletedFormFlag(true)
     .isTaskAssignFlag(true)
     .createGroup();
Since:
21.11.0
See Also:
  • Field Details Link icon

    • description Link icon

      protected String description
    • groupName Link icon

      protected String groupName
    • groupType Link icon

      protected String groupType
    • formWorkGroupFlag Link icon

      protected boolean formWorkGroupFlag
    • newFormFlag Link icon

      protected boolean newFormFlag
    • savedFormFlag Link icon

      protected boolean savedFormFlag
    • completedFormFlag Link icon

      protected boolean completedFormFlag
    • isTaskAssignFlag Link icon

      protected boolean isTaskAssignFlag
  • Constructor Details Link icon

  • Method Details Link icon

    • getAlertGroupSvc Link icon

      public static GroupSvc getAlertGroupSvc()
      Create an instance of Alert type GroupSvc
      Returns:
      instance of Alert Group service
    • getFormGroupSvc Link icon

      public static FormGroupSvc getFormGroupSvc()
      Create an instance of FormGroupSvc.
      Returns:
      instance of Form Group Service
    • getJobGroupSvc Link icon

      public static GroupSvc getJobGroupSvc()
      Create an instance of Job type GroupSvc
      Returns:
      instance of Job Group Service
    • setDescription Link icon

      public GroupSvc setDescription(String description)
      Set the description value.
      Parameters:
      description - the description of the group
      Returns:
      the Group service
    • setGroupName Link icon

      public GroupSvc setGroupName(String groupName)
      Set the group name value.
      Parameters:
      groupName - the name of the group
      Returns:
      the Group service
    • createGroup Link icon

      public Group createGroup()
      Create a new group and return the new group object.
      Returns:
      the newly created Group value object
    • deleteOrPurgeGroup Link icon

      @FluentSecurityPermission(permissions="group-remove") public boolean deleteOrPurgeGroup(String groupName)
      Delete or purge the group specified. If there is any related objects, group will be marked to delete later when all related objects purged.
      Parameters:
      groupName - the name of the group which should be deleted
      Returns:
      true if group deleted or false if group is marked to delete later
    • deleteGroup Link icon

      @FluentSecurityPermission(permissions="group-remove") public void deleteGroup(String groupName)
      Delete the group specified.
      Parameters:
      groupName - the name of the group which should be deleted