JoinServiceImpl (gCube Join VRE Portlet 2.0.0-SNAPSHOT API)
Date: 2016-03-17

org.gcube.portlets.user.joinvre.server

## Class JoinServiceImpl

- 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.user.joinvre.server.JoinServiceImpl

- All Implemented Interfaces:
    com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, JoinService

      public class JoinServiceImpl
      extends com.google.gwt.user.server.rpc.RemoteServiceServlet
      implements JoinService

  Author:
    Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it, Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet

      `perThreadRequest, perThreadResponse`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JoinServiceImpl()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getDevelopmentUser()` when packaging test will fail if the user is not set to test.user
    `LinkedHashMap<VRECategory,ArrayList<VRE>>` | `getPortalOrganizationMappedToVRE()`
    `VRECustomAttributes` | `getVRECustomAttr(org.gcube.vomanagement.usermanagement.model.GCubeGroup group)`
    `LinkedHashMap<VRECategory,ArrayList<VRE>>` | `getVREs()`
    `Boolean` | `joinVRE(Long vreID)`

    - ### Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet

      `checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, 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, log, log`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JoinServiceImpl

          public JoinServiceImpl()

  - ### Method Detail

    - #### getDevelopmentUser

          public String getDevelopmentUser()

      when packaging test will fail if the user is not set to test.user
      Returns:
        .

    - #### getVREs

          public LinkedHashMap<VRECategory,ArrayList<VRE>> getVREs()

      Specified by:
        `getVREs` in interface `JoinService`
      Parameters:
        `session` - the Asl Session
        `withinPortal` - true when is on Liferay portal
      Returns:
        the users belonging to the current organization (scope)

    - #### getVRECustomAttr

          public VRECustomAttributes getVRECustomAttr(org.gcube.vomanagement.usermanagement.model.GCubeGroup group)
                                               throws com.liferay.portal.kernel.exception.PortalException,
                                                      com.liferay.portal.kernel.exception.SystemException

      Throws:
        `com.liferay.portal.kernel.exception.PortalException`
        `com.liferay.portal.kernel.exception.SystemException`

    - #### getPortalOrganizationMappedToVRE

          public LinkedHashMap<VRECategory,ArrayList<VRE>> getPortalOrganizationMappedToVRE()
                                                                                     throws Exception

      Returns:
        the Virtual groups with their VREs in the order estabilished in the LR Control Panel
      Throws:
        `com.liferay.portal.kernel.exception.SystemException`
        `com.liferay.portal.kernel.exception.PortalException`
        `Exception`

    - #### joinVRE

          public Boolean joinVRE(Long vreID)

      Specified by:
        `joinVRE` in interface `JoinService`

Copyright © 2016. All Rights Reserved.