public class GRSFNotificationService extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements GRSFManageWidgetService
| 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
|
boolean |
isAdminUser()
check if the user has the rights to manage the item
|
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, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic 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)
GRSFManageWidgetServicenotifyProductUpdate in interface GRSFManageWidgetServicepublic ManageProductBean getProductBeanById(String productIdentifier) throws Exception
GRSFManageWidgetServicegetProductBeanById in interface GRSFManageWidgetServiceExceptionpublic 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 sidepublic 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)
public boolean isAdminUser()
GRSFManageWidgetServiceisAdminUser in interface GRSFManageWidgetServiceCopyright © 2017. All Rights Reserved.