src/main/java/org/opensrp/service/OrganizationService.java
/**
	 * Adds or Updates an Organization
	 * 
	 * @param organization to add on update
	 */
Adds or Updates an Organization

@param organization to add on update
Adds or Updates an Organization @param organization to add on update
public void addOrUpdateOrganization(Organization organization) {
		validateIdentifier(organization);
		Organization entity = organizationRepository.get(organization.getIdentifier());
		if (entity != null) {
			organizationRepository.update(entity);
		} else {
			organizationRepository.add(organization);
		}
	}
public void addOrUpdateOrganization ( Organization organization ) { validateIdentifier ( organization ) ; Organization entity = organizationRepository . get ( organization . getIdentifier ( ) ) ; if ( entity != null ) { organizationRepository . update ( entity ) ; } else { organizationRepository . add ( organization ) ; } }
Adds or Updates an Organization
Adds or Updates an Organization