CampaignEnrollmentDataService¶
-
public interface
CampaignEnrollmentDataService
extends MotechDataService<CampaignEnrollment>¶ Data Service interface for
CampaignEnrollment
s. The implementation is generated by the Motech Data Services module.
Methods¶
findByCampaignName¶
-
List<CampaignEnrollment>
findByCampaignName
(String campaignName)¶ Finds all
CampaignEnrollment
s of the given campaign name.Parameters: - campaignName – name of the campaign
Returns: all campaign enrollments of the given campaign name
findByExternalId¶
-
List<CampaignEnrollment>
findByExternalId
(String externalId)¶ Finds all
CampaignEnrollment
s of the given external ID.Parameters: - externalId – the external ID of the campaign enrollment
Returns: all campaign enrollments with the given external ID
findByExternalIdAndCampaignName¶
-
CampaignEnrollment
findByExternalIdAndCampaignName
(String externalId, String campaignName)¶ Finds the
CampaignEnrollment
of the given external ID and campaign name.Parameters: - externalId – the externalId of the campaign enrollment
- campaignName – name of the campaign
Returns: the campaign enrollment of the given external ID and campaign name or null, if not found
findByStatus¶
-
List<CampaignEnrollment>
findByStatus
(CampaignEnrollmentStatus status)¶ Finds all
CampaignEnrollment
s of the given enrollment status.Parameters: - status – the
CampaignEnrollmentStatus
of the campaign enrollment
Returns: all campaign enrollments of the given enrollment status
- status – the