LoginServiceUtil (gCube Join New Portlet 1.4.0-SNAPSHOT API)
Date: 2014-03-10

org.gcube.portlets.user.joinnew.server

## Class LoginServiceUtil

- java.lang.Object
- - org.gcube.portlets.user.joinnew.server.LoginServiceUtil

-     public class LoginServiceUtil
      extends Object

  Author:
    Massimiliano Assante ISTI-CNR

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `GUEST_COMMUNITY_NAME`
    `static String` | `PUBLIC_LAYOUT_NAME`
    `static String` | `ROOT_ORG`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LoginServiceUtil()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `addMembershipRequest(String username, VO rootVO, String scope, String optionalMessage, String portalbasicurl, String gatewayName)`
    `protected static boolean` | `checkPending(String screenName, long organizationId)`
    `protected static ArrayList<String>` | `getAdministratorsEmails(String scope)`
    `protected static ArrayList<VO>` | `getFakeVOs()` simply returns fake VOS for debugging purpose
    `protected static String` | `getRootOrganizationName()` read the root VO name from a property file and retuns it
    `protected static ArrayList<VRE>` | `getVREsFromInfrastructure(String scopename)`

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

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

- - ### Field Detail

    - #### ROOT_ORG

          public static final String ROOT_ORG

      See Also:
        Constant Field Values

    - #### PUBLIC_LAYOUT_NAME

          public static final String PUBLIC_LAYOUT_NAME

      See Also:
        Constant Field Values

    - #### GUEST_COMMUNITY_NAME

          public static final String GUEST_COMMUNITY_NAME

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### LoginServiceUtil

          public LoginServiceUtil()

  - ### Method Detail

    - #### checkPending

          protected static boolean checkPending(String screenName,
                             long organizationId)

      Parameters:
        `screenName` -
        `organizatioId` -
      Returns:

    - #### getRootOrganizationName

          protected static String getRootOrganizationName()

      read the root VO name from a property file and retuns it

    - #### getFakeVOs

          protected static ArrayList<VO> getFakeVOs()

      simply returns fake VOS for debugging purpose
      Returns:

    - #### getAdministratorsEmails

          protected static ArrayList<String> getAdministratorsEmails(String scope)

    - #### addMembershipRequest

          public static void addMembershipRequest(String username,
                                  VO rootVO,
                                  String scope,
                                  String optionalMessage,
                                  String portalbasicurl,
                                  String gatewayName)

      Parameters:
        `scope` - .
        `optionalMessage` - .

    - #### getVREsFromInfrastructure

          protected static ArrayList<VRE> getVREsFromInfrastructure(String scopename)

      Parameters:
        `scopename` - a string
      Returns:
        an arraylist of VRE with just name and description filled

Copyright © 2014. All Rights Reserved.