public class LoginServiceUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GUEST_COMMUNITY_NAME |
static String |
PUBLIC_LAYOUT_NAME |
static String |
ROOT_ORG |
Constructor and Description |
---|
LoginServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addMembershipRequest(String username,
VO rootVO,
String scope,
String optionalMessage,
String portalbasicurl,
String gatewayName) |
protected static void |
addPropertyDefaultLandingPageAndTheme(boolean automaticRedirect,
SelectedTheme theme)
add a property to gcube-data.properties for root vo
|
protected static void |
appendRootOrganizationName(String rootVoName)
add a property to gcube-data.properties for root vo, it make the login portlet understand the installation was setup already
|
protected static boolean |
checkPending(String screenName,
long organizationId) |
protected static ArrayList<CheckResult> |
checkScope(String scopename) |
protected static Boolean |
checkVresPresence(String scopename) |
static Boolean |
createAdministratorAccountAndAssignRoles(long creatorUserId,
String email,
String password,
String firstname,
String lastname)
this method create a user and assigns the role Administrator to this user, also assigns the VO-ADMIN role or VRE-Manager
for each VO/VRE present in the infrastructure
|
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) |
protected static boolean |
setupGuestCommunity(SelectedTheme theme) |
public static final String ROOT_ORG
public static final String PUBLIC_LAYOUT_NAME
public static final String GUEST_COMMUNITY_NAME
protected static boolean setupGuestCommunity(SelectedTheme theme) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalException
- .com.liferay.portal.kernel.exception.SystemException
- .protected static boolean checkPending(String screenName, long organizationId)
screenName
- organizatioId
- protected static void addPropertyDefaultLandingPageAndTheme(boolean automaticRedirect, SelectedTheme theme)
protected static void appendRootOrganizationName(String rootVoName)
rootVoName
- .protected static String getRootOrganizationName()
protected static ArrayList<VO> getFakeVOs()
public static void addMembershipRequest(String username, VO rootVO, String scope, String optionalMessage, String portalbasicurl, String gatewayName)
scope
- .optionalMessage
- .protected static ArrayList<CheckResult> checkScope(String scopename)
scope
- pass a scope without "/"protected static Boolean checkVresPresence(String scopename)
scopename
- a stringprotected static ArrayList<VRE> getVREsFromInfrastructure(String scopename)
scopename
- a stringpublic static Boolean createAdministratorAccountAndAssignRoles(long creatorUserId, String email, String password, String firstname, String lastname) throws Exception
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalException
Exception
Copyright © 2015. All Rights Reserved.