Package com.avoka.tm.svc
Class GroupSvc
java.lang.Object
com.avoka.tm.svc.GroupSvc
- Direct Known Subclasses:
- FormGroupSvc
Provides a Group Service which supports create, delete, deleteOrPurge a group (Job | Alert | Form)
Examples
Please find the Group service examples below.
Create an Alert Group
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
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
*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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreate a new group and return the new group object.voiddeleteGroup(String groupName) Delete the group specified.booleandeleteOrPurgeGroup(String groupName) Delete or purge the group specified.static GroupSvcCreate an instance of Alert type GroupSvcstatic FormGroupSvcCreate an instance of FormGroupSvc.static GroupSvcCreate an instance of Job type GroupSvcsetDescription(String description) Set the description value.setGroupName(String groupName) Set the group name value.
- 
Field Details- 
description
- 
groupName
- 
groupType
- 
formWorkGroupFlagprotected boolean formWorkGroupFlag
- 
newFormFlagprotected boolean newFormFlag
- 
savedFormFlagprotected boolean savedFormFlag
- 
completedFormFlagprotected boolean completedFormFlag
- 
isTaskAssignFlagprotected boolean isTaskAssignFlag
 
- 
- 
Constructor Details- 
GroupSvc
 
- 
- 
Method Details- 
getAlertGroupSvcCreate an instance of Alert type GroupSvc- Returns:
- instance of Alert Group service
 
- 
getFormGroupSvcCreate an instance of FormGroupSvc.- Returns:
- instance of Form Group Service
 
- 
getJobGroupSvcCreate an instance of Job type GroupSvc- Returns:
- instance of Job Group Service
 
- 
setDescriptionSet the description value.- Parameters:
- description- the description of the group
- Returns:
- the Group service
 
- 
setGroupNameSet the group name value.- Parameters:
- groupName- the name of the group
- Returns:
- the Group service
 
- 
createGroupCreate a new group and return the new group object.- Returns:
- the newly created Group value object
 
- 
deleteOrPurgeGroup@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
 
- 
deleteGroupDelete the group specified.- Parameters:
- groupName- the name of the group which should be deleted
 
 
-