Roles (into liferay) changed
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@129312 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
568d54e0cd
commit
a5237b1c70
|
@ -4,7 +4,7 @@
|
|||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<dependent-module archiveName="ckan-util-library-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/ckan-util-library/ckan-util-library">
|
||||
<dependent-module archiveName="workspace-tree-widget-6.13.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/WorkspaceTree/WorkspaceTree">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<property name="context-root" value="gcube-ckan-datacatalog"/>
|
||||
|
|
|
@ -106,7 +106,7 @@ public class GcubeCkanDataCatalogServiceImpl extends RemoteServiceServlet implem
|
|||
ckanConnectorUri = ckanConnectorUri+fullPath;
|
||||
logger.info("returning ckanConnectorUri: "+ckanConnectorUri);
|
||||
return ckanConnectorUri;
|
||||
// return "http://ckan-d-d4s.d4science.org";
|
||||
// return "http://ckan-d-d4s.d4science.org";
|
||||
}catch(Exception e ){
|
||||
String message = "Sorry an error occurred during contacting gCube Ckan Data Catalogue";
|
||||
logger.error(message, e);
|
||||
|
@ -272,7 +272,7 @@ public class GcubeCkanDataCatalogServiceImpl extends RemoteServiceServlet implem
|
|||
logger.debug("The list of roles for " + username + " into " + groupName + " is " + roles);
|
||||
|
||||
// the default one
|
||||
CkanRolesIntoLiferay mainRole = CkanRolesIntoLiferay.CATALOG_MEMBER;
|
||||
String mainRole = CkanRolesIntoLiferay.CATALOG_MEMBER;
|
||||
RolesIntoOrganization correspondentRoleToCheck = RolesIntoOrganization.MEMBER;
|
||||
|
||||
// NOTE: it is supposed that there is just one role for this person correspondent to the one in the catalog
|
||||
|
@ -312,11 +312,11 @@ public class GcubeCkanDataCatalogServiceImpl extends RemoteServiceServlet implem
|
|||
* @param mainRole the main role
|
||||
* @return the ckan role
|
||||
*/
|
||||
private CkanRole reMapRole(CkanRolesIntoLiferay mainRole) {
|
||||
private CkanRole reMapRole(String mainRole) {
|
||||
switch(mainRole){
|
||||
case CATALOG_ADMIN: return CkanRole.ADMIN;
|
||||
case CATALOG_EDITOR: return CkanRole.EDITOR;
|
||||
case CATALOG_MEMBER: ;
|
||||
case CkanRolesIntoLiferay.CATALOG_ADMIN: return CkanRole.ADMIN;
|
||||
case CkanRolesIntoLiferay.CATALOG_EDITOR: return CkanRole.EDITOR;
|
||||
case CkanRolesIntoLiferay.CATALOG_MEMBER: ;
|
||||
default : return CkanRole.MEMBER;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue