public class JoinServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements JoinService
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLVRES_SESSION_ATTRIBUTE |
static String |
ORGANIZATION_NAMES_ATTRIBUTE |
static String |
PREFIX_PUBLIC_URL |
static String |
TAB_NAMES_ATTRIBUTE |
static String |
TABBED_LAYOUT_ATTRIBUTE |
| Constructor and Description |
|---|
JoinServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMembershipRequest(VRE theVRE,
String optionalMessage) |
ArrayList<String> |
getAllCategories() |
List<String> |
getAllOrganisations() |
LinkedHashMap<VRECategory,ArrayList<VRE>> |
getPortalSitesMappedToVRE() |
LinkedHashMap<VRECategory,ArrayList<VRE>> |
getPortalSitesMappedToVRE(String tabName) |
String |
getPortalUrl() |
VRE |
getSelectedVRE(Long groupId) |
String |
getTermsOfUse(long siteId)
check if a terms of use exists for the given Site (VRE), returns null is non existent
|
LinkedHashMap<VRECategory,ArrayList<VRE>> |
getVREs() |
LinkedHashMap<VRECategory,ArrayList<VRE>> |
getVREsByCategory(String categoryName) |
LinkedHashMap<VRECategory,ArrayList<VRE>> |
getVREsByOrganisation(String organisationName) |
void |
init() |
static org.gcube.portal.databook.server.DatabookStore |
initStore() |
String |
isExistingInvite(long groupId) |
List<TabbedPage> |
isTabbedPanel()
returns null if is not a tabbedpanel, the tab names as list of Strings otherwise
|
String |
joinVRE(Long vreID) |
org.gcube.portal.databook.shared.UserInfo |
readInvite(String inviteId,
long siteId) |
boolean |
registerUser(String scope,
long groupId,
boolean isInvitation)
the user to the VRE, plus send notifications to the vre manages of the vre
in order to register a user i had to create a fake membership request because assigning a user to a group would have required
the user to logout and login otherwise
|
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 static final String PREFIX_PUBLIC_URL
public static final String TABBED_LAYOUT_ATTRIBUTE
public static final String TAB_NAMES_ATTRIBUTE
public static final String ORGANIZATION_NAMES_ATTRIBUTE
public static final String ALLVRES_SESSION_ATTRIBUTE
public void init()
init in class javax.servlet.GenericServletpublic String joinVRE(Long vreID)
joinVRE in interface JoinServicepublic org.gcube.portal.databook.shared.UserInfo readInvite(String inviteId, long siteId)
readInvite in interface JoinServicepublic String getTermsOfUse(long siteId)
getTermsOfUse in interface JoinServicepublic List<TabbedPage> isTabbedPanel()
isTabbedPanel in interface JoinServicepublic LinkedHashMap<VRECategory,ArrayList<VRE>> getVREs()
getVREs in interface JoinServicepublic LinkedHashMap<VRECategory,ArrayList<VRE>> getPortalSitesMappedToVRE(String tabName)
getPortalSitesMappedToVRE in interface JoinServicetabName - public LinkedHashMap<VRECategory,ArrayList<VRE>> getVREsByOrganisation(String organisationName)
getVREsByOrganisation in interface JoinServiceorganisationName - public LinkedHashMap<VRECategory,ArrayList<VRE>> getVREsByCategory(String categoryName)
getVREsByCategory in interface JoinServicecategoryName - public List<String> getAllOrganisations()
getAllOrganisations in interface JoinServicepublic ArrayList<String> getAllCategories()
getAllCategories in interface JoinServicepublic LinkedHashMap<VRECategory,ArrayList<VRE>> getPortalSitesMappedToVRE() throws Exception
com.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalExceptionExceptionpublic VRE getSelectedVRE(Long groupId)
getSelectedVRE in interface JoinServicepublic void addMembershipRequest(VRE theVRE, String optionalMessage)
addMembershipRequest in interface JoinServicepublic String getPortalUrl() throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic boolean registerUser(String scope, long groupId, boolean isInvitation)
registerUser in interface JoinServicepublic static org.gcube.portal.databook.server.DatabookStore initStore()
public String isExistingInvite(long groupId)
isExistingInvite in interface JoinServiceCopyright © 2020. All rights reserved.