-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avniproject/avni-product#1531 | Handle locationMode and locationHiera…
…rchy input params during locations sample file download
- Loading branch information
Showing
4 changed files
with
97 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
avni-server-api/src/main/java/org/avni/server/service/ImportLocationsConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.avni.server.service; | ||
|
||
import org.avni.server.importer.batch.csv.writer.header.LocationHeaders; | ||
|
||
import java.util.Collections; | ||
|
||
public interface ImportLocationsConstants { | ||
String STRING_CONSTANT_NEW_LINE = "\n"; | ||
String STRING_CONSTANT_EMPTY_STRING = ""; | ||
String STRING_PLACEHOLDER_BLOCK = "\"%s\","; | ||
String STRING_3_PLACEHOLDER_BLOCK = String.join("", Collections.nCopies(3, STRING_PLACEHOLDER_BLOCK)); | ||
String Example = "Ex: "; | ||
String ALLOWED_VALUES = "Allowed values: "; | ||
String COLUMN_NAME_GPS_COORDINATES = LocationHeaders.gpsCoordinates; | ||
String COLUMN_NAME_LOCATION_WITH_FULL_HIERARCHY = "Location with full hierarchy"; | ||
String COLUMN_NAME_NEW_LOCATION_NAME = "New location name"; | ||
String COLUMN_NAME_PARENT_LOCATION_WITH_FULL_HIERARCHY = "Parent location with full hierarchy"; | ||
String LOCATION_WITH_FULL_HIERARCHY_DESCRIPTION = "Can be found from Admin -> Locations -> Click Export. Used to specify which location's fields need to be updated. mandatory field"; | ||
String NEW_LOCATION_NAME_DESCRIPTION = "Enter new name here ONLY if it needs to be updated"; | ||
String PARENT_LOCATION_WITH_FULL_HIERARCHY_DESCRIPTION = "Hierarchy of parent location that should contain the child location"; | ||
String LOCATION_WITH_FULL_HIERARCHY_EXAMPLE = "PHC B, Sub B, Vil B"; | ||
String NEW_LOCATION_NAME_EXAMPLE = "Vil C"; | ||
String PARENT_LOCATION_WITH_FULL_HIERARCHY_EXAMPLE = "PHC C, Sub C"; | ||
String GPS_COORDINATES_EXAMPLE = "Ex: 23.45,43.85"; | ||
String ENTER_YOUR_DATA_STARTING_HERE = "Enter your data starting here"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters