Class JoinVREServiceImpl

java.lang.Object
org.gcube.portlets.user.joinvre.service.impl.JoinVREServiceImpl
All Implemented Interfaces:
JoinVREService

public class JoinVREServiceImpl extends Object implements JoinVREService
JoinVRE Service Implementation - Migrated from 6.2 to 7.4 Uses hybrid SG3/SG4 strategy with mock implementations for unavailable dependencies
Author:
Massimiliano Assante, ISTI-CNR (original), netfarm-m2 (migration to 7.4)
  • Field Details

  • Constructor Details

    • JoinVREServiceImpl

      public JoinVREServiceImpl()
  • Method Details

    • joinVRE

      public String joinVRE(Long vreID, com.liferay.portal.kernel.model.User user)
      Description copied from interface: JoinVREService
      Join a VRE
      Specified by:
      joinVRE in interface JoinVREService
      Parameters:
      vreID - the VRE ID to join
      user - the current user
      Returns:
      the landing page path
    • readInvite

      public Object readInvite(String inviteId, long siteId)
      Description copied from interface: JoinVREService
      Read invite information
      Specified by:
      readInvite in interface JoinVREService
      Parameters:
      inviteId - the invite ID
      siteId - the site ID
      Returns:
      UserInfo containing invite details
    • getTermsOfUse

      public String getTermsOfUse(long siteId)
      Description copied from interface: JoinVREService
      Get Terms of Use for a site
      Specified by:
      getTermsOfUse in interface JoinVREService
      Parameters:
      siteId - the site ID
      Returns:
      Terms of Use content or null if not exists
    • isTabbedPanel

      public List<TabbedPage> isTabbedPanel(long groupId)
      Description copied from interface: JoinVREService
      Check if current site is a tabbed panel
      Specified by:
      isTabbedPanel in interface JoinVREService
      Parameters:
      groupId - the group ID
      Returns:
      list of tabbed pages or null
    • getAllVREs

      public List<VRE> getAllVREs(com.liferay.portal.kernel.model.User user)
      Description copied from interface: JoinVREService
      Get all VREs for the current user
      Specified by:
      getAllVREs in interface JoinVREService
      Parameters:
      user - the current user
      Returns:
      list of VREs
    • getAvailableVREs

      public List<VRE> getAvailableVREs()
      Description copied from interface: JoinVREService
      Get available VREs (public method for JSP compatibility)
      Specified by:
      getAvailableVREs in interface JoinVREService
      Returns:
      list of available VREs
    • getVRECategories

      public List<VRECategory> getVRECategories()
      Description copied from interface: JoinVREService
      Get VRE categories
      Specified by:
      getVRECategories in interface JoinVREService
      Returns:
      list of VRE categories
    • getUserBelonging

      public UserBelonging getUserBelonging(com.liferay.portal.kernel.model.User user, long vreId)
      Description copied from interface: JoinVREService
      Get user belonging information
      Specified by:
      getUserBelonging in interface JoinVREService
      Parameters:
      user - the current user
      vreId - the VRE ID
      Returns:
      user belonging status
    • requestMembership

      public boolean requestMembership(com.liferay.portal.kernel.model.User user, long vreId, String comments)
      Description copied from interface: JoinVREService
      Request membership to a VRE
      Specified by:
      requestMembership in interface JoinVREService
      Parameters:
      user - the current user
      vreId - the VRE ID
      comments - membership request comments
      Returns:
      success status