gov.nasa.pds.registry.ui.server
Class ProductsServiceImpl
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
gov.nasa.pds.registry.ui.server.ProductsServiceImpl
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, ProductsService, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ProductsServiceImpl
- extends com.google.gwt.user.server.rpc.RemoteServiceServlet
- implements ProductsService
Implementation of the product service that retrieves registered products from
the registry service.
- Author:
- jagander
- See Also:
- Serialized Form
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
perThreadRequest, perThreadResponse |
Method Summary |
com.google.gwt.gen2.table.client.TableModelHelper.SerializableResponse<ViewProduct> |
getProduct(String guid)
|
ViewProducts |
getProducts()
Get a default set of products. |
static String |
indexToColumnName(int index)
Convert index to column name
NOTE: This is a hack to deal with the fact that the request object only
knows the column index of any sort. |
com.google.gwt.gen2.table.client.TableModelHelper.SerializableResponse<ViewProduct> |
requestRows(com.google.gwt.gen2.table.client.TableModelHelper.Request request,
Map<String,String> filters)
Retrieve a set of products from the registry with the given request
parameters. |
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse |
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductsServiceImpl
public ProductsServiceImpl()
getProducts
public ViewProducts getProducts()
- Get a default set of products. Not particularly useful as it will only
retrieve the default number of products with a default filter. Primarily
used for verifying connectivity.
getProduct
public com.google.gwt.gen2.table.client.TableModelHelper.SerializableResponse<ViewProduct> getProduct(String guid)
- Specified by:
getProduct
in interface ProductsService
requestRows
public com.google.gwt.gen2.table.client.TableModelHelper.SerializableResponse<ViewProduct> requestRows(com.google.gwt.gen2.table.client.TableModelHelper.Request request,
Map<String,String> filters)
- Retrieve a set of products from the registry with the given request
parameters.
- Specified by:
requestRows
in interface ProductsService
- Parameters:
request
- number of rows, offset and sortfilters
- filter and search params
- Returns:
- a GWT appropriate encapsulation of products
indexToColumnName
public static String indexToColumnName(int index)
- Convert index to column name
NOTE: This is a hack to deal with the fact that the request object only
knows the column index of any sort.
TODO: The mapping between the index and the id should be consolidated
with Registry_ui which defines the columns.
- See Also:
gov.nasa.pds.registry.ui.client.Registry_ui#createTableDefinition()
Copyright © 2010-2011 Planetary Data System. All Rights Reserved.