public class ServerUtil extends Object
| Constructor and Description |
|---|
ServerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
groupHLToScope(String group)
Group HL to scope.
|
static boolean |
isWithinPortal()
Checks if is within portal.
|
static TrainingContact |
resolveContact(String portalLogin,
String scope)
Resolve contact.
|
static String |
scopeToHLGroup(String scope)
Scope to HL group.
|
static TrainingCourseObj |
toTrainingCourse(org.gcube.portal.trainingmodule.shared.TrainingCourseDTO dto,
String scope)
To training course.
|
public static boolean isWithinPortal()
public static TrainingCourseObj toTrainingCourse(org.gcube.portal.trainingmodule.shared.TrainingCourseDTO dto, String scope)
dto - the dtoscope - the scopepublic static String scopeToHLGroup(String scope)
scope - the scopepublic static String groupHLToScope(String group)
group - the grouppublic static TrainingContact resolveContact(String portalLogin, String scope)
portalLogin - the portal loginscope - the scopeCopyright © 2018. All Rights Reserved.