org.gcube.portlets.admin.searchmanagerportlet.gwt.server
Class SearchManagerServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.gcube.portlets.admin.searchmanagerportlet.gwt.server.SearchManagerServlet
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, SearchManagerService
public class SearchManagerServlet
- extends com.google.gwt.user.server.rpc.RemoteServiceServlet
- implements SearchManagerService
The server side implementation of the RPC service.
- See Also:
- Serialized Form
| Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
perThreadRequest, perThreadResponse |
| 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 |
SearchManagerServlet
public SearchManagerServlet()
getFieldsInfo
public List<FieldInfoBean> getFieldsInfo(boolean loadDetails)
throws FieldsRetrievalFailureException
- This method returns all the existing Fields
- Specified by:
getFieldsInfo in interface SearchManagerService
- Returns:
- A List with the existing fields
- Throws:
FieldsRetrievalFailureException
saveAnnotations
public void saveAnnotations(String fieldID,
ArrayList<String> annotationsToBeAdded,
ArrayList<String> annotationsToBeRemoved)
- Specified by:
saveAnnotations in interface SearchManagerService
getFieldAnnotations
public ArrayList<String> getFieldAnnotations(String fieldID)
- Specified by:
getFieldAnnotations in interface SearchManagerService
getSemanticAnnotations
public ArrayList<String> getSemanticAnnotations()
- Specified by:
getSemanticAnnotations in interface SearchManagerService
getGroupsAndKeywords
public HashMap<String,ArrayList<String>> getGroupsAndKeywords()
- Specified by:
getGroupsAndKeywords in interface SearchManagerService
getGroups
public ArrayList<String> getGroups()
- Specified by:
getGroups in interface SearchManagerService
addKeywordToPresentationGroup
public void addKeywordToPresentationGroup(String group,
String keyword)
- Specified by:
addKeywordToPresentationGroup in interface SearchManagerService
removeKeywordsFromPresentationGroup
public void removeKeywordsFromPresentationGroup(String group,
ArrayList<String> keywords)
- Specified by:
removeKeywordsFromPresentationGroup in interface SearchManagerService
getBridgingStatusFromSession
public Boolean getBridgingStatusFromSession()
- Specified by:
getBridgingStatusFromSession in interface SearchManagerService
getIndexLocatorList
public ArrayList<String> getIndexLocatorList(String fieldID,
String collectionID,
String type)
throws CommunicationFailureException
- Specified by:
getIndexLocatorList in interface SearchManagerService
- Throws:
CommunicationFailureException
getIndexCapabilities
public Set<String> getIndexCapabilities(String indexLocator)
throws CommunicationFailureException
- Specified by:
getIndexCapabilities in interface SearchManagerService
- Throws:
CommunicationFailureException
createField
public FieldInfoBean createField(FieldInfoBean field,
boolean isUpdated)
throws SearchableFieldInfoMissingException,
StoreFieldFailureException,
CommunicationFailureException
- This method creates a new FieldInfo
The ID will be auto-generated by the library
- Specified by:
createField in interface SearchManagerService
- Parameters:
field - The FieldInfo information
- Throws:
SearchableFieldInfoMissingException
StoreFieldFailureException
CommunicationFailureException
deleteFieldInfo
public void deleteFieldInfo(String fieldID)
throws DeleteFieldFailureException
- This method deletes the Field with the given ID
- Specified by:
deleteFieldInfo in interface SearchManagerService
- Parameters:
fieldID - The ID of the field to be deleted
- Throws:
DeleteFieldFailureException
sendEmailWithErrorToSupport
public void sendEmailWithErrorToSupport(Throwable caught)
- Specified by:
sendEmailWithErrorToSupport in interface SearchManagerService
getCollectionAndFieldsInfo
public ArrayList<CollectionFieldsBean> getCollectionAndFieldsInfo()
- Specified by:
getCollectionAndFieldsInfo in interface SearchManagerService
Copyright © 2013. All Rights Reserved.