src/main/java/org/opensrp/service/OrganizationService.java
/**
	 * Gets the locations and Plans using the Plan Identifier
	 *
	 * @param planIdentifier the plan identifier
	 *
	 * @return the assigned locations and plans
	 */
Gets the locations and Plans using the Plan Identifier
@param planIdentifier the plan identifier

@return the assigned locations and plans
Gets the locations and Plans using the Plan Identifier @param planIdentifier the plan identifier @return the assigned locations and plans
public List<AssignedLocations> findAssignedLocationsAndPlansByPlanIdentifier(String planIdentifier) {
		if (StringUtils.isBlank(planIdentifier))
			throw new IllegalArgumentException("PlanIdentifier Identifier not specified");
		Long planId = planRepository.retrievePrimaryKey(planIdentifier);
        if (planId == null)
            throw new IllegalArgumentException("Plan not found");
		return organizationRepository.findAssignedLocationsByPlanId(planId);
	}
public List < AssignedLocations > findAssignedLocationsAndPlansByPlanIdentifier ( String planIdentifier ) { if ( StringUtils . isBlank ( planIdentifier ) ) throw new IllegalArgumentException ( "PlanIdentifier Identifier not specified" ) ; Long planId = planRepository . retrievePrimaryKey ( planIdentifier ) ; if ( planId == null ) throw new IllegalArgumentException ( "Plan not found" ) ; return organizationRepository . findAssignedLocationsByPlanId ( planId ) ; }
Gets the locations and Plans using the Plan Identifier
 @param planIdentifier the plan identifier
Gets the locations and Plans using the Plan Identifier @param planIdentifier the plan identifier