Class UriResolverSmartGearManagerInit
- java.lang.Object
-
- org.gcube.datatransfer.resolver.init.UriResolverSmartGearManagerInit
-
- All Implemented Interfaces:
org.gcube.smartgears.ApplicationManager
public class UriResolverSmartGearManagerInit extends Object implements org.gcube.smartgears.ApplicationManager
The Class UriResolverSmartGearManagerInit.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Nov 15, 2018
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringAPP_IDstatic StringENV_SCOPEstatic StringGEO_EXPLORER_GENERIC_RESOURCE_GCUBE_APPS_PROPERTIES_FILENAMEstatic StringGIS_VIEWER_GENERIC_RESOURCE_GCUBE_APPS_PROPERTIES_FILENAMEstatic StringPARTHENOS_VRE_PROPERTIES_FILENAMEprotected static StringSECONDARY_TYPEprotected static StringVRE_NAME
-
Constructor Summary
Constructors Constructor Description UriResolverSmartGearManagerInit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApplicationProfilePropertyReadergetGeoExplorerProfile()Gets the geo explorer profile.static ApplicationProfilePropertyReadergetGisViewerProfile()Gets the gis viewer profile.static StringgetParthenosVREName()Gets the parthenos vre name.static StringgetRootContextScope()Gets the root context scope.static StringgetRootTokenFromSGConfiguration()Gets the root token from SG configurations.static StringloadScopeFromEnvironment()Load scope from environment.voidonInit()voidonShutdown()static voidsetRootContextScope(String rootContextScope)
-
-
-
Field Detail
-
GIS_VIEWER_GENERIC_RESOURCE_GCUBE_APPS_PROPERTIES_FILENAME
public static final String GIS_VIEWER_GENERIC_RESOURCE_GCUBE_APPS_PROPERTIES_FILENAME
- See Also:
- Constant Field Values
-
GEO_EXPLORER_GENERIC_RESOURCE_GCUBE_APPS_PROPERTIES_FILENAME
public static final String GEO_EXPLORER_GENERIC_RESOURCE_GCUBE_APPS_PROPERTIES_FILENAME
- See Also:
- Constant Field Values
-
PARTHENOS_VRE_PROPERTIES_FILENAME
public static final String PARTHENOS_VRE_PROPERTIES_FILENAME
- See Also:
- Constant Field Values
-
SECONDARY_TYPE
protected static final String SECONDARY_TYPE
- See Also:
- Constant Field Values
-
APP_ID
protected static final String APP_ID
- See Also:
- Constant Field Values
-
VRE_NAME
protected static final String VRE_NAME
- See Also:
- Constant Field Values
-
ENV_SCOPE
public static final String ENV_SCOPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
onInit
public void onInit()
- Specified by:
onInitin interfaceorg.gcube.smartgears.ApplicationManager
-
onShutdown
public void onShutdown()
- Specified by:
onShutdownin interfaceorg.gcube.smartgears.ApplicationManager
-
loadScopeFromEnvironment
public static String loadScopeFromEnvironment() throws javax.servlet.ServletException
Load scope from environment.- Returns:
- the scope read from Environment Variable
- Throws:
javax.servlet.ServletException- the servlet exception
-
getGisViewerProfile
public static ApplicationProfilePropertyReader getGisViewerProfile()
Gets the gis viewer profile.- Returns:
- the gis viewer profile
-
getGeoExplorerProfile
public static ApplicationProfilePropertyReader getGeoExplorerProfile()
Gets the geo explorer profile.- Returns:
- the geoExplorerProfile
-
getParthenosVREName
public static String getParthenosVREName()
Gets the parthenos vre name.- Returns:
- the parthenosVREName
-
getRootContextScope
public static String getRootContextScope()
Gets the root context scope.- Returns:
- the root context scope
-
setRootContextScope
public static void setRootContextScope(String rootContextScope)
-
getRootTokenFromSGConfiguration
public static String getRootTokenFromSGConfiguration()
Gets the root token from SG configurations.- Returns:
- the root token from SG configurations
-
-