public class UserProfileEditingServlet extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements UserProfileEditingService
| Constructor and Description |
|---|
UserProfileEditingServlet()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
createStringFromDomTree(Node tree)
This method converts a node of a tree to a string representation.
|
void |
createUserProfile() |
HashMap<CollectionInfoBean,ArrayList<CollectionInfoBean>> |
getAvailableCollections()
This method returns all the available collections of a VRE with their structure
Each element of the returned array is a List, where the first element of the List is the collection group and
all the other members are the the real collections
|
HashMap<String,ArrayList<PresentableFieldInfoBean>> |
getAvailablePresentableFieldsPerCollection() |
HashMap<String,Vector<String[]>> |
getAvailableXSLTsFromIS(String xsltType)
This method returns a hash map that contains all the available xslts per metadata schema
|
UserPersonalInformation |
getPersonalInformation()
This method returns the personal information of the current user.
|
HashMap<String,ArrayList<String>> |
getPresentableFieldsFromProfile() |
String[][] |
getProfileMetadataXSLTs()
This method returns a hash map that contains the metadata xslts that exist at user's profile
|
SearchPreferencesInformation |
getSearchPreferences()
This method returns the search preferences of the current user.
|
String[] |
getUsersFavoriteCollections()
This method returns the IDs of the collections in the user's profile
|
void |
setEmailToSession(String email) |
void |
setFullnameToSession(String fullname) |
void |
setLanguageToSession(String newLanguage) |
void |
setPersistenceToSession(String persistence) |
void |
setSearchEngineToSession(String newEngine) |
void |
setToleranceToSession(String tolerance) |
Boolean |
updatePresentableFieldsToProfile(HashMap<String,ArrayList<PresentableFieldInfoBean>> collectionsAndFields) |
Boolean |
updateUserProfile(HashMap<String,ArrayList<PresentableFieldInfoBean>> selectedFieldsPerCollection)
This method updates the user profile of the current user
It updates the profile that is stored in CMS
|
void |
updateXSLT(String xsltType,
String schemaName,
String schemaValue,
String schemaID)
This method is used to update the XSLTs of the user in his profile
|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected static String createStringFromDomTree(Node tree) throws TransformerException
tree - The node of a document that will be transformedTransformerException - failed to transform the DOMTree to Stringpublic void createUserProfile()
createUserProfile in interface UserProfileEditingServicepublic HashMap<CollectionInfoBean,ArrayList<CollectionInfoBean>> getAvailableCollections()
getAvailableCollections in interface UserProfileEditingServicepublic HashMap<String,Vector<String[]>> getAvailableXSLTsFromIS(String xsltType)
getAvailableXSLTsFromIS in interface UserProfileEditingServiceThe - type of xslts to return (Metadata or Presentation)public UserPersonalInformation getPersonalInformation()
getPersonalInformation in interface UserProfileEditingServicepublic HashMap<String,ArrayList<String>> getPresentableFieldsFromProfile()
getPresentableFieldsFromProfile in interface UserProfileEditingServicepublic HashMap<String,ArrayList<PresentableFieldInfoBean>> getAvailablePresentableFieldsPerCollection()
getAvailablePresentableFieldsPerCollection in interface UserProfileEditingServicepublic String[][] getProfileMetadataXSLTs()
getProfileMetadataXSLTs in interface UserProfileEditingServicepublic SearchPreferencesInformation getSearchPreferences()
getSearchPreferences in interface UserProfileEditingServicepublic String[] getUsersFavoriteCollections()
getUsersFavoriteCollections in interface UserProfileEditingServicepublic void setEmailToSession(String email)
setEmailToSession in interface UserProfileEditingServicepublic void setFullnameToSession(String fullname)
setFullnameToSession in interface UserProfileEditingServicepublic void setLanguageToSession(String newLanguage)
setLanguageToSession in interface UserProfileEditingServicepublic void setPersistenceToSession(String persistence)
setPersistenceToSession in interface UserProfileEditingServicepublic void setSearchEngineToSession(String newEngine)
setSearchEngineToSession in interface UserProfileEditingServicepublic void setToleranceToSession(String tolerance)
setToleranceToSession in interface UserProfileEditingServicepublic Boolean updatePresentableFieldsToProfile(HashMap<String,ArrayList<PresentableFieldInfoBean>> collectionsAndFields)
public Boolean updateUserProfile(HashMap<String,ArrayList<PresentableFieldInfoBean>> selectedFieldsPerCollection)
updateUserProfile in interface UserProfileEditingServicepublic void updateXSLT(String xsltType, String schemaName, String schemaValue, String schemaID)
updateXSLT in interface UserProfileEditingServicexsltType - The type of xslt: Presentation or MetadataschemaName - The name of the metadata schemaschemaValue - The name of the xslt to be usedschemaID - The id of the xsltCopyright © 2014. All Rights Reserved.