public class DataService extends WeaveServlet implements IWeaveEntityService
WeaveServlet.ServletRequestInfo
Modifier and Type | Field and Description |
---|---|
static int |
MAX_COLUMN_REQUEST_COUNT |
debugThreshold, JSONRPC_VERSION, METHOD, PARAMS, STREAM_PARAMETER_INDEX
Constructor and Description |
---|
DataService() |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(java.lang.String username,
java.lang.String password) |
void |
destroy() |
int[] |
findEntityIds(java.util.Map<java.lang.String,java.lang.String> publicMetadata,
java.lang.String[] wildcardFields)
Gets an Array of entity IDs with matching public metadata.
|
java.lang.String[] |
findPublicFieldValues(java.lang.String fieldName,
java.lang.String valueSearch)
Finds matching values for a public metadata field.
|
AttributeColumnData |
getColumn(java.lang.Object columnId,
double minParam,
double maxParam,
java.lang.Object[] sqlParams)
This retrieves the data and the public metadata for a single attribute column.
|
AttributeColumnData |
getColumnFromMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Deprecated.
|
WeaveJsonDataSet |
getDataSet(int[] columnIds)
This function is intended for use with JsonRPC calls.
|
DataConfig.EntityHierarchyInfo[] |
getDataTableList()
Deprecated.
|
DataConfig.DataEntityWithRelationships[] |
getEntities(int[] ids)
Gets an Array of Entity objects, minus the private metadata.
|
DataConfig.DataEntity[] |
getEntitiesById(int[] ids)
Deprecated.
|
int[] |
getEntityChildIds(int parentId)
Deprecated.
|
int[] |
getEntityIdsByMetadata(java.util.Map<java.lang.String,java.lang.String> publicMetadata,
int entityType)
Deprecated.
|
static WeaveRecordList |
getFilteredRows(int[] columns,
SQLUtils.WhereClause.NestedColumnFilters filters,
java.lang.String[] keysArray) |
byte[] |
getGeometryStreamGeometryTiles(int columnId,
int[] tileIDs) |
byte[] |
getGeometryStreamMetadataTiles(int columnId,
int[] tileIDs) |
DataConfig.EntityHierarchyInfo[] |
getHierarchyInfo(java.util.Map<java.lang.String,java.lang.String> publicMetadata)
Gets EntityHierarchyInfo objects containing basic information on entities matching public metadata.
|
int[] |
getParents(int childId)
Deprecated.
|
WeaveRecordList |
getRows(java.lang.String keyType,
java.lang.String[] keysArray) |
java.util.Map<java.lang.String,java.lang.Object> |
getServerInfo() |
TableData |
getTable(int id,
java.lang.Object[] sqlParams) |
void |
init(javax.servlet.ServletConfig config) |
cast, deserializeAmf3, doGet, doPost, getCapabilities, getServletRequestInfo, initAllMethods, initMethod, methodToString, serializeCompressedAmf3
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final int MAX_COLUMN_REQUEST_COUNT
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class WeaveServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void authenticate(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException
user
- password
- java.rmi.RemoteException
- If authentication fails.public java.util.Map<java.lang.String,java.lang.Object> getServerInfo() throws java.rmi.RemoteException
java.rmi.RemoteException
public DataConfig.EntityHierarchyInfo[] getHierarchyInfo(java.util.Map<java.lang.String,java.lang.String> publicMetadata) throws java.rmi.RemoteException
IWeaveEntityService
getHierarchyInfo
in interface IWeaveEntityService
publicMetadata
- EntityMetadata containing values to match.java.rmi.RemoteException
public DataConfig.DataEntityWithRelationships[] getEntities(int[] ids) throws java.rmi.RemoteException
IWeaveEntityService
getEntities
in interface IWeaveEntityService
ids
- A list of entity IDs.java.rmi.RemoteException
public int[] findEntityIds(java.util.Map<java.lang.String,java.lang.String> publicMetadata, java.lang.String[] wildcardFields) throws java.rmi.RemoteException
IWeaveEntityService
findEntityIds
in interface IWeaveEntityService
publicMetadata
- Public metadata to search for.wildcardFields
- A list of field names in publicMetadata that should be treated
as search strings with wildcards '?' and '*' for single-character
and multi-character matching, respectively.java.rmi.RemoteException
public java.lang.String[] findPublicFieldValues(java.lang.String fieldName, java.lang.String valueSearch) throws java.rmi.RemoteException
IWeaveEntityService
findPublicFieldValues
in interface IWeaveEntityService
fieldName
- The name of the public metadata field to search.valueSearch
- A search string.java.rmi.RemoteException
public AttributeColumnData getColumn(java.lang.Object columnId, double minParam, double maxParam, java.lang.Object[] sqlParams) throws java.rmi.RemoteException
columnId
- Either an entity ID (int) or a Map specifying public metadata values that uniquely identify a column.minParam
- Used for filtering numeric datamaxParam
- Used for filtering numeric datasqlParams
- Specifies parameters to be used in place of '?' placeholders that appear in the SQL query for the column.java.rmi.RemoteException
public TableData getTable(int id, java.lang.Object[] sqlParams) throws java.rmi.RemoteException
java.rmi.RemoteException
public WeaveJsonDataSet getDataSet(int[] columnIds) throws java.rmi.RemoteException
columnIds
- A list of column IDs.java.rmi.RemoteException
public byte[] getGeometryStreamMetadataTiles(int columnId, int[] tileIDs) throws java.rmi.RemoteException
java.rmi.RemoteException
public byte[] getGeometryStreamGeometryTiles(int columnId, int[] tileIDs) throws java.rmi.RemoteException
java.rmi.RemoteException
public WeaveRecordList getRows(java.lang.String keyType, java.lang.String[] keysArray) throws java.rmi.RemoteException
java.rmi.RemoteException
public static WeaveRecordList getFilteredRows(int[] columns, SQLUtils.WhereClause.NestedColumnFilters filters, java.lang.String[] keysArray) throws java.rmi.RemoteException
java.rmi.RemoteException
@Deprecated public DataConfig.EntityHierarchyInfo[] getDataTableList() throws java.rmi.RemoteException
java.rmi.RemoteException
@Deprecated public int[] getEntityChildIds(int parentId) throws java.rmi.RemoteException
java.rmi.RemoteException
@Deprecated public int[] getParents(int childId) throws java.rmi.RemoteException
java.rmi.RemoteException
@Deprecated public int[] getEntityIdsByMetadata(java.util.Map<java.lang.String,java.lang.String> publicMetadata, int entityType) throws java.rmi.RemoteException
java.rmi.RemoteException
@Deprecated public DataConfig.DataEntity[] getEntitiesById(int[] ids) throws java.rmi.RemoteException
java.rmi.RemoteException
@Deprecated public AttributeColumnData getColumnFromMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) throws java.rmi.RemoteException
metadata
- The metadata query.java.rmi.RemoteException
- Thrown if the metadata query does not match exactly one column.