public class GRSFNotificationService extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements GRSFManageWidgetService
Modifier and Type | Field and Description |
---|---|
static String |
GCUBE_REQUEST_URL |
static String |
GRSF_UPDATER_SERVICE |
Constructor and Description |
---|
GRSFNotificationService() |
Modifier and Type | Method and Description |
---|---|
static String |
discoverEndPoint(String context)
Discover the service endpoint and return its url
|
org.gcube.datacatalogue.ckanutillibrary.server.DataCatalogue |
getCatalogue(String discoverScope)
Instanciate the ckan util library.
|
static String |
getCurrentClientUrl(javax.servlet.http.HttpServletRequest httpServletRequest)
Needed to get the url of the client
|
static String |
getCurrentContext(javax.servlet.http.HttpServletRequest request,
boolean setInThread)
Retrieve the current scope by using the portal manager
|
static org.gcube.vomanagement.usermanagement.model.GCubeUser |
getCurrentUser(javax.servlet.http.HttpServletRequest request)
Retrieve the current user by using the portal manager
|
ManageProductBean |
getProductBeanById(String productIdentifier)
Get the product bean from the product identifier
|
static String |
getScopeFromClientUrl(javax.servlet.http.HttpServletRequest httpServletRequest)
Get the scope in which ckan information needs to be discovered from the url
|
String |
notifyProductUpdate(ManageProductBean bean)
Notify product update
|
static String |
updateCatalogueRecord(String serviceUrl,
ManageProductBean bean,
org.gcube.datacatalogue.ckanutillibrary.server.DataCatalogue catalogue,
String username)
Send an update for this bean
|
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String GRSF_UPDATER_SERVICE
public static final String GCUBE_REQUEST_URL
public org.gcube.datacatalogue.ckanutillibrary.server.DataCatalogue getCatalogue(String discoverScope)
discoverScope
- if you want to the discover the utils library in this specified scopepublic String notifyProductUpdate(ManageProductBean bean)
GRSFManageWidgetService
notifyProductUpdate
in interface GRSFManageWidgetService
public ManageProductBean getProductBeanById(String productIdentifier) throws Exception
GRSFManageWidgetService
getProductBeanById
in interface GRSFManageWidgetService
Exception
public static String discoverEndPoint(String context)
context
- public static String updateCatalogueRecord(String serviceUrl, ManageProductBean bean, org.gcube.datacatalogue.ckanutillibrary.server.DataCatalogue catalogue, String username)
baseUrl
- bean
- username
- catalogue
- public static String getScopeFromClientUrl(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest
- public static String getCurrentClientUrl(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest
- the httpServletRequest objecturl at client side
public static String getCurrentContext(javax.servlet.http.HttpServletRequest request, boolean setInThread)
b
- public static org.gcube.vomanagement.usermanagement.model.GCubeUser getCurrentUser(javax.servlet.http.HttpServletRequest request)
Copyright © 2017. All Rights Reserved.