gov.nasa.pds.registry.ui.server
Class PackageServiceImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by gov.nasa.pds.registry.ui.server.PackageServiceImpl
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, PackageService, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PackageServiceImpl
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements PackageService

Implementation of the package service that retrieves registered packages from the registry service.

Author:
hyunlee
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
PackageServiceImpl()
           
 
Method Summary
 boolean deletePackage(ViewRegistryPackage registryPackage)
           
 String getRemotePassword()
           
 String getRemoteUser()
           
 String getSessionId()
           
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<ViewRegistryPackage> requestRows(com.google.gwt.gen2.table.client.TableModelHelper.Request request, Map<String,String> filters)
          Retrieve a set of package from the registry with the given request parameters.
 boolean updatePackage(ViewRegistryPackage registryPackage)
           
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, 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
 

Constructor Detail

PackageServiceImpl

public PackageServiceImpl()
Method Detail

requestRows

public com.google.gwt.gen2.table.client.TableModelHelper.SerializableResponse<ViewRegistryPackage> requestRows(com.google.gwt.gen2.table.client.TableModelHelper.Request request,
                                                                                                               Map<String,String> filters)
Retrieve a set of package from the registry with the given request parameters.

Specified by:
requestRows in interface PackageService
Parameters:
request - number of rows, offset and sort
filters - filter and search params
Returns:
a GWT appropriate encapsulation of products

updatePackage

public boolean updatePackage(ViewRegistryPackage registryPackage)
Specified by:
updatePackage in interface PackageService

deletePackage

public boolean deletePackage(ViewRegistryPackage registryPackage)
Specified by:
deletePackage in interface PackageService

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()

getRemoteUser

public String getRemoteUser()
Specified by:
getRemoteUser in interface PackageService

getRemotePassword

public String getRemotePassword()
Specified by:
getRemotePassword in interface PackageService

getSessionId

public String getSessionId()
Specified by:
getSessionId in interface PackageService


Copyright © 2010–2014 Planetary Data System. All rights reserved.