Class CatalogueRoleManager
- java.lang.Object
-
- org.gcube.portlets.widgets.ckandatapublisherwidget.server.utils.CatalogueRoleManager
-
public class CatalogueRoleManager extends Object
Facilities to check roles into the catalogue.
-
-
Constructor Summary
Constructors Constructor Description CatalogueRoleManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.gcube.datacatalogue.utillibrary.shared.RolesCkanGroupOrOrggetHighestRole(String currentScope, String username, String groupName, CKANPublisherServicesImpl gcubeCkanDataCatalogServiceImpl, List<OrganizationBean> orgsInWhichAtLeastEditorRole, String gatewayHostname)Retrieve the highest ckan role the user has and also retrieve the list of organizations (scopes) in which the user has the ckan-admin or ckan-editor role
-
-
-
Method Detail
-
getHighestRole
public static org.gcube.datacatalogue.utillibrary.shared.RolesCkanGroupOrOrg getHighestRole(String currentScope, String username, String groupName, CKANPublisherServicesImpl gcubeCkanDataCatalogServiceImpl, List<OrganizationBean> orgsInWhichAtLeastEditorRole, String gatewayHostname)
Retrieve the highest ckan role the user has and also retrieve the list of organizations (scopes) in which the user has the ckan-admin or ckan-editor role- Parameters:
currentScope-username-groupName-gcubeCkanDataCatalogServiceImpl-orgsInWhichAtLeastEditorRole-- Returns:
- the highest among the roles
-
-