Class TagRepository
- java.lang.Object
-
- de.narimo.georepo.server.repository.ParentDatasetRepository
-
- de.narimo.georepo.server.repository.TagRepository
-
public class TagRepository extends ParentDatasetRepository
-
-
Constructor Summary
Constructors Constructor Description TagRepository()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidacceptTag(String tagTable, int gfid, int tagId)static List<String>addDeleteTagsSuggestion(int layerId, int userId, int gfid, List<String> tags)Mark one or more tags as deleted.static List<String>addNewTagsSuggestion(int layerId, int userId, int gfid, List<String> tags)Add one or multiple tags for a gfid on a layer.static booleancheckTagTableExists(int layerId)static voidcreateTagTable(int layerId)static voiddeclineTag(String tagTable, int gfid, int tagId)static List<String>getTags(int layerId)static Map<Integer,List<String>>getTagsWithGfid(int layerId)static List<GeorepoTag>getUnreviewedTags(int layerId, String workspace, de.narimo.commons.dto.User requestingUser)-
Methods inherited from class de.narimo.georepo.server.repository.ParentDatasetRepository
checkHistoryTableExists, createSimpleFeatures, detectGeometryType, getColumnFeatureTypes, getColumnTypes, getCreatorName, tableExists
-
-
-
-
Method Detail
-
getTags
public static List<String> getTags(int layerId) throws SQLException
- Throws:
SQLException
-
getUnreviewedTags
public static List<GeorepoTag> getUnreviewedTags(int layerId, String workspace, de.narimo.commons.dto.User requestingUser) throws SQLException
- Throws:
SQLException
-
getTagsWithGfid
public static Map<Integer,List<String>> getTagsWithGfid(int layerId) throws SQLException
- Throws:
SQLException
-
checkTagTableExists
public static boolean checkTagTableExists(int layerId) throws SQLException- Throws:
SQLException
-
addNewTagsSuggestion
public static List<String> addNewTagsSuggestion(int layerId, int userId, int gfid, List<String> tags) throws SQLException
Add one or multiple tags for a gfid on a layer.- Parameters:
layerId-gfid-tags-- Returns:
- Throws:
SQLExceptionIOException
-
addDeleteTagsSuggestion
public static List<String> addDeleteTagsSuggestion(int layerId, int userId, int gfid, List<String> tags) throws SQLException
Mark one or more tags as deleted.- Parameters:
layerId-gfid-tags-- Returns:
- Throws:
SQLException
-
createTagTable
public static void createTagTable(int layerId) throws SQLException- Throws:
SQLException
-
acceptTag
public static void acceptTag(String tagTable, int gfid, int tagId)
-
declineTag
public static void declineTag(String tagTable, int gfid, int tagId)
-
-