public class LoginServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements NewLoginService
Modifier and Type | Field and Description |
---|---|
static String |
CACHED_VOS |
String |
SELECTED_THEMEID |
Constructor and Description |
---|
LoginServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addMembershipRequest(String scope,
String optionalMessage)
addMembershipRequest
|
HashMap<String,ArrayList<CheckResult>> |
checkInfrastructure(String infrastructure,
String startScopes) |
Boolean |
checkVresPresence(String infrastructure,
String startScopes)
check if the vo scope contain VREs
|
Boolean |
createAdministratorAccount(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
|
String[] |
getConfigFromGCore()
return the infrastructure name in [0], the scopes in [1]
|
ArrayList<VO> |
getInfrastructureVOs()
first method called by the UI
|
VO |
getRootVO()
return the root org
|
ResearchEnvironment |
getSelectedRE()
return the current selected VRE
|
ArrayList<VO> |
getVresFromInfrastructure(String infrastructure,
String startScopes) |
Boolean |
installPortalEnv(String infrastructure,
String startScopes,
SelectedTheme theme,
boolean automaticRedirect)
this method start the portal installation, tipically the parameters come from the gHNConfig.xml
|
Boolean |
installVREs(ArrayList<VO> parents)
install the VREs chosen by the end user
|
Boolean |
isLayoutLoaded()
the first method to call
|
void |
loadLayout(String scope,
String URL) |
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String CACHED_VOS
public String SELECTED_THEMEID
public ArrayList<VO> getInfrastructureVOs()
getInfrastructureVOs
in interface NewLoginService
public void addMembershipRequest(String scope, String optionalMessage)
addMembershipRequest
in interface NewLoginService
public String[] getConfigFromGCore()
getConfigFromGCore
in interface NewLoginService
public VO getRootVO()
getRootVO
in interface NewLoginService
public ResearchEnvironment getSelectedRE()
getSelectedRE
in interface NewLoginService
public Boolean installPortalEnv(String infrastructure, String startScopes, SelectedTheme theme, boolean automaticRedirect)
installPortalEnv
in interface NewLoginService
infrastructure
- the name of the infrastructurestartScopes
- the name of the starting scopes, comma separatedpublic Boolean isLayoutLoaded()
isLayoutLoaded
in interface NewLoginService
public void loadLayout(String scope, String URL)
loadLayout
in interface NewLoginService
scope
- public HashMap<String,ArrayList<CheckResult>> checkInfrastructure(String infrastructure, String startScopes)
checkInfrastructure
in interface NewLoginService
infrastructure
- the infrastructure name as in GHNConfig.xmlstartScopes
- the starting scopes as in GHNConfig.xmlpublic Boolean checkVresPresence(String infrastructure, String startScopes)
checkVresPresence
in interface NewLoginService
public ArrayList<VO> getVresFromInfrastructure(String infrastructure, String startScopes)
getVresFromInfrastructure
in interface NewLoginService
infrastructure
- the infrastructure namestartScopes
- the starting scopespublic Boolean installVREs(ArrayList<VO> parents)
installVREs
in interface NewLoginService
public Boolean createAdministratorAccount(String email, String password, String firstname, String lastname)
createAdministratorAccount
in interface NewLoginService
Copyright © 2015. All Rights Reserved.