|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.portlets.user.gcubelogin.server.LoginServiceUtil
public class LoginServiceUtil
Field Summary | |
---|---|
static String |
GUEST_COMMUNITY_NAME
|
static String |
PUBLIC_LAYOUT_NAME
|
static String |
ROOT_ORG
|
Constructor Summary | |
---|---|
LoginServiceUtil()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ROOT_ORG
public static final String PUBLIC_LAYOUT_NAME
public static final String GUEST_COMMUNITY_NAME
Constructor Detail |
---|
public LoginServiceUtil()
Method Detail |
---|
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()
protected static ArrayList<String> getAdministratorsEmails(String scope)
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 string
protected static ArrayList<VRE> getVREsFromInfrastructure(String scopename)
scopename
- a string
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |