Class JoinVREServiceImpl
java.lang.Object
org.gcube.portlets.user.joinvre.service.impl.JoinVREServiceImpl
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllVREs(com.liferay.portal.kernel.model.User user) Get all VREs for the current userGet available VREs (public method for JSP compatibility)getTermsOfUse(long siteId) Get Terms of Use for a sitegetUserBelonging(com.liferay.portal.kernel.model.User user, long vreId) Get user belonging informationGet VRE categoriesisTabbedPanel(long groupId) Check if current site is a tabbed panelJoin a VREreadInvite(String inviteId, long siteId) Read invite informationbooleanrequestMembership(com.liferay.portal.kernel.model.User user, long vreId, String comments) Request membership to a VRE
-
Field Details
-
PREFIX_PUBLIC_URL
- See Also:
-
TABBED_LAYOUT_ATTRIBUTE
- See Also:
-
TAB_NAMES_ATTRIBUTE
- See Also:
-
ORGANIZATION_NAMES_ATTRIBUTE
- See Also:
-
ALLVRES_SESSION_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
JoinVREServiceImpl
public JoinVREServiceImpl()
-
-
Method Details
-
joinVRE
Description copied from interface:JoinVREServiceJoin a VRE- Specified by:
joinVREin interfaceJoinVREService- Parameters:
vreID- the VRE ID to joinuser- the current user- Returns:
- the landing page path
-
readInvite
Description copied from interface:JoinVREServiceRead invite information- Specified by:
readInvitein interfaceJoinVREService- Parameters:
inviteId- the invite IDsiteId- the site ID- Returns:
- UserInfo containing invite details
-
getTermsOfUse
Description copied from interface:JoinVREServiceGet Terms of Use for a site- Specified by:
getTermsOfUsein interfaceJoinVREService- Parameters:
siteId- the site ID- Returns:
- Terms of Use content or null if not exists
-
isTabbedPanel
Description copied from interface:JoinVREServiceCheck if current site is a tabbed panel- Specified by:
isTabbedPanelin interfaceJoinVREService- Parameters:
groupId- the group ID- Returns:
- list of tabbed pages or null
-
getAllVREs
Description copied from interface:JoinVREServiceGet all VREs for the current user- Specified by:
getAllVREsin interfaceJoinVREService- Parameters:
user- the current user- Returns:
- list of VREs
-
getAvailableVREs
Description copied from interface:JoinVREServiceGet available VREs (public method for JSP compatibility)- Specified by:
getAvailableVREsin interfaceJoinVREService- Returns:
- list of available VREs
-
getVRECategories
Description copied from interface:JoinVREServiceGet VRE categories- Specified by:
getVRECategoriesin interfaceJoinVREService- Returns:
- list of VRE categories
-
getUserBelonging
Description copied from interface:JoinVREServiceGet user belonging information- Specified by:
getUserBelongingin interfaceJoinVREService- Parameters:
user- the current uservreId- 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:JoinVREServiceRequest membership to a VRE- Specified by:
requestMembershipin interfaceJoinVREService- Parameters:
user- the current uservreId- the VRE IDcomments- membership request comments- Returns:
- success status
-