public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
concatenateSessionKeyScope(String key,
String scope)
Builds a string made of key + scope
|
static Map<String,String> |
getGcubeItemProperties(org.gcube.common.homelibrary.home.workspace.WorkspaceItem item)
Gets the gcube item properties.
|
static List<MetaDataProfileBean> |
getMetadataProfilesList(String scope,
javax.servlet.http.HttpSession httpSession,
org.gcube.application.framework.core.session.ASLSession aslSession,
String profilesKey)
Retrieve the list of metadata beans
|
static String |
getOrganizationNameFromScope(String scope)
Given the scope in the infrastructure the method retrieves the name of the ckan organization
|
static List<OrganizationBean> |
getUserOrganizationsListAdmin(String currentScope,
String username,
String groupName,
CKANPublisherServicesImpl ckanPublisherServicesImpl)
Retrieve the list of organizations in which the user has the ckan-admin role
|
static List<ResourceBeanWrapper> |
getWorkspaceResourcesInformation(List<String> resourceIds,
org.gcube.common.homelibrary.home.workspace.Workspace ws,
String username)
Build up the resource beans.
|
static String |
retrieveScopeFromOrganizationName(String organizationName)
Given a ckan organization name retrieve the infrastructure scope
|
public static String concatenateSessionKeyScope(String key, String scope)
key - scope - public static List<ResourceBeanWrapper> getWorkspaceResourcesInformation(List<String> resourceIds, org.gcube.common.homelibrary.home.workspace.Workspace ws, String username)
resourceIds - ws - username - public static Map<String,String> getGcubeItemProperties(org.gcube.common.homelibrary.home.workspace.WorkspaceItem item)
item - the itempublic static List<OrganizationBean> getUserOrganizationsListAdmin(String currentScope, String username, String groupName, CKANPublisherServicesImpl ckanPublisherServicesImpl)
currentScope - the current scopeusername - the current usernamegroupName - the current groupNameckanPublisherServicesImpl - public static String retrieveScopeFromOrganizationName(String organizationName) throws Exception
organizationName - (prevre, devvre, ...)Exceptionpublic static String getOrganizationNameFromScope(String scope) throws Exception
Exceptionpublic static List<MetaDataProfileBean> getMetadataProfilesList(String scope, javax.servlet.http.HttpSession httpSession, org.gcube.application.framework.core.session.ASLSession aslSession, String profilesKey)
Copyright © 2016. All Rights Reserved.