Class GeonetworkAccessParameter
- java.lang.Object
-
- org.gcube.datatransfer.resolver.gis.GeonetworkAccessParameter
-
- All Implemented Interfaces:
GeonetworkServiceInterface
public class GeonetworkAccessParameter extends Object implements GeonetworkServiceInterface
The Class GeonetworkAccessParameter.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) May 20, 2019
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeonetworkAccessParameter.AccountTypeThe Enum AccountType.static classGeonetworkAccessParameter.GeonetworkLoginLevelThe Enum GeonetworkLoginLevel.
-
Field Summary
Fields Modifier and Type Field Description protected GeonetworkInstancegeonetworkInstanceprotected static org.slf4j.Loggerloggerprotected Stringscope
-
Constructor Summary
Constructors Constructor Description GeonetworkAccessParameter(String scope)Instantiates a new geonetwork access parameter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GeonetworkInstancegetGeonetworkInstance(boolean authenticate, GeonetworkAccessParameter.GeonetworkLoginLevel loginLevel, GeonetworkAccessParameter.AccountType accType)Gets the geonetwork instance.StringgetScope()Gets the scope.static org.gcube.spatial.data.geonetwork.LoginLeveltoLoginLevel(GeonetworkAccessParameter.GeonetworkLoginLevel loginLevel)To login level.
-
-
-
Field Detail
-
logger
protected static org.slf4j.Logger logger
-
geonetworkInstance
protected GeonetworkInstance geonetworkInstance
-
scope
protected String scope
-
-
Constructor Detail
-
GeonetworkAccessParameter
public GeonetworkAccessParameter(String scope)
Instantiates a new geonetwork access parameter.- Parameters:
scope- the scope
-
-
Method Detail
-
getGeonetworkInstance
public GeonetworkInstance getGeonetworkInstance(boolean authenticate, GeonetworkAccessParameter.GeonetworkLoginLevel loginLevel, GeonetworkAccessParameter.AccountType accType) throws GeonetworkInstanceException
Description copied from interface:GeonetworkServiceInterfaceGets the geonetwork instance.- Specified by:
getGeonetworkInstancein interfaceGeonetworkServiceInterface- Parameters:
authenticate- the authenticateloginLevel- the login levelaccType- the acc type- Returns:
- the geonetwork instance
- Throws:
GeonetworkInstanceException
-
getScope
public String getScope()
Description copied from interface:GeonetworkServiceInterfaceGets the scope.- Specified by:
getScopein interfaceGeonetworkServiceInterface- Returns:
- the scope
-
toLoginLevel
public static final org.gcube.spatial.data.geonetwork.LoginLevel toLoginLevel(GeonetworkAccessParameter.GeonetworkLoginLevel loginLevel)
To login level.- Parameters:
loginLevel- the login level- Returns:
- the login level
-
-