Class BTDataCollectionTemplateVisibleForUserSearch

java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateVisibleForUserSearchEvent>
overit.geocallapp.wfm.core.bl.datacollection.template.visibilityrules.task.BTDataCollectionTemplateVisibleForUserSearch
All Implemented Interfaces:
Serializable, Tool

Business task for searching generable templates on mobile.

This task returns all the DC template IDs that the mobile user can use for generating Data Collections. A template is generable if:

  • There isn't any visibility rule configured for the template, OR
  • There is a rule row that matches the user profile

The matching logic for a rule is:

 if ( (userTypeList is empty OR userTypeList contains the userType)
   AND (operationCenterList is empty OR operationCenterList contains the operationCenter)
   AND (structuresList is empty OR structuresList contains the structure)
   AND (areaList is empty OR areaList contains the area) )
 then rule is valid
 
Since:
22.0
See Also:
GCApi:
task