Class CatalogueRoleManager


  • public class CatalogueRoleManager
    extends Object
    Facilities to check roles into the catalogue.
    • Constructor Detail

      • CatalogueRoleManager

        public CatalogueRoleManager()
    • 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