Class GNADataEntryConfigProfileReader
- java.lang.Object
-
- org.gcube.application.geoportalcommon.GNADataEntryConfigProfileReader
-
public class GNADataEntryConfigProfileReader extends Object
The Class GNADataEntryConfigProfileReader.- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Dec 21, 2021
-
-
Field Summary
Fields Modifier and Type Field Description static StringGENERIC_RESOURCE_NAMEstatic StringSECONDARY_TYPE
-
Constructor Summary
Constructors Constructor Description GNADataEntryConfigProfileReader()Instantiates a new application profile reader.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetGcubeGenericQueryString(String secondaryType, String genericResourceName)Gets the gcube generic query string.StringgetScope()Gets the scope.StringgetSecondaryType()Gets the secondary type.GNADataEntryConfigProfilereadProfileFromInfrastrucure()Read profile from infrastrucure.List<RoleRights>readRoleRightsConfig(String permissions_for_role)Read user rights config.protected static GcubeUserRoletoGcubeUserRole(String name)To gcube user role.
-
-
-
Field Detail
-
SECONDARY_TYPE
public static final String SECONDARY_TYPE
- See Also:
- Constant Field Values
-
GENERIC_RESOURCE_NAME
public static final String GENERIC_RESOURCE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
readProfileFromInfrastrucure
public GNADataEntryConfigProfile readProfileFromInfrastrucure() throws Exception
Read profile from infrastrucure.- Returns:
- the map
- Throws:
Exception- the exception
-
toGcubeUserRole
protected static GcubeUserRole toGcubeUserRole(String name)
To gcube user role.- Parameters:
name- the name- Returns:
- the gcube user role
-
readRoleRightsConfig
public List<RoleRights> readRoleRightsConfig(String permissions_for_role) throws GNAConfigException
Read user rights config.- Parameters:
permissions_for_role- the permissions for role- Returns:
- the list
- Throws:
GNAConfigException- the GNA user rights config not found exception
-
getGcubeGenericQueryString
public static String getGcubeGenericQueryString(String secondaryType, String genericResourceName)
Gets the gcube generic query string.- Parameters:
secondaryType- the secondary typegenericResourceName- the generic resource name- Returns:
- the gcube generic query string
-
getSecondaryType
public String getSecondaryType()
Gets the secondary type.- Returns:
- the secondary type
-
getScope
public String getScope()
Gets the scope.- Returns:
- the scope
-
-