public class ContextsManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JMAP_CONTEXTS_DEFAULTS_TABLE_NAME |
static java.lang.String |
JMAP_CONTEXTS_TABLE_NAME |
static int |
MAX_STRING_LENGTH |
Constructor and Description |
---|
ContextsManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
convertLegacyContexts() |
boolean |
deleteMapContext(long id) |
boolean[] |
deleteMapContexts(long[] ids) |
protected void |
exportContexts(java.lang.String author,
java.io.File fileDestinationDirectory) |
protected java.util.List<java.lang.String> |
getAuthors() |
MapContextInfo |
getDefaultMapContext(int projectId,
java.lang.String username) |
MapContextInfo |
getMapContext(long id) |
MapContextInfo |
getMapContext(java.lang.String uuid) |
protected long |
getMapContextId(java.lang.String uuid) |
protected java.util.List<MapContextInfo> |
getMapContexts(int projectId,
int layerId) |
java.util.List<MapContextInfo> |
getMapContexts(int projectId,
java.lang.String username,
boolean includeData,
boolean includePublic) |
java.util.List<MapContextInfo> |
getMapContexts(int projectId,
java.lang.String username,
java.lang.String origin,
boolean includeData,
boolean includePublic) |
boolean |
init() |
protected boolean |
removeDefaultMapContext(int projectId,
java.lang.String username) |
long |
saveMapContext(MapContextInfo mapContextInfo) |
protected boolean |
setDefaultMapContext(long id,
java.lang.String username,
boolean isDefault) |
protected boolean |
setMapContextShareable(long id,
java.lang.String username,
boolean shared) |
public static final java.lang.String JMAP_CONTEXTS_TABLE_NAME
public static final java.lang.String JMAP_CONTEXTS_DEFAULTS_TABLE_NAME
public static final int MAX_STRING_LENGTH
public boolean init()
public long saveMapContext(MapContextInfo mapContextInfo)
public java.util.List<MapContextInfo> getMapContexts(int projectId, java.lang.String username, boolean includeData, boolean includePublic)
public java.util.List<MapContextInfo> getMapContexts(int projectId, java.lang.String username, java.lang.String origin, boolean includeData, boolean includePublic)
protected java.util.List<MapContextInfo> getMapContexts(int projectId, int layerId)
protected boolean setDefaultMapContext(long id, java.lang.String username, boolean isDefault)
protected boolean removeDefaultMapContext(int projectId, java.lang.String username)
public MapContextInfo getDefaultMapContext(int projectId, java.lang.String username)
protected boolean setMapContextShareable(long id, java.lang.String username, boolean shared)
public MapContextInfo getMapContext(java.lang.String uuid)
protected long getMapContextId(java.lang.String uuid)
public MapContextInfo getMapContext(long id)
public boolean deleteMapContext(long id)
public boolean[] deleteMapContexts(long[] ids)
protected void convertLegacyContexts()
protected java.util.List<java.lang.String> getAuthors()
protected void exportContexts(java.lang.String author, java.io.File fileDestinationDirectory)