git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vo-management/usermanagement-core@125248 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1c5e1c00dc
commit
ddc2488b72
|
@ -15,8 +15,6 @@
|
|||
<includes>
|
||||
<include>README</include>
|
||||
<include>LICENSE</include>
|
||||
<include>INSTALL</include>
|
||||
<include>MAINTAINERS</include>
|
||||
<include>changelog.xml</include>
|
||||
</includes>
|
||||
<fileMode>755</fileMode>
|
||||
|
@ -39,10 +37,5 @@
|
|||
<source>target/${build.finalName}.jar</source>
|
||||
<outputDirectory>/${artifactId}</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${distroDirectory}/svnpath.txt</source>
|
||||
<outputDirectory>/${artifactId}</outputDirectory>
|
||||
<filtered>true</filtered>
|
||||
</file>
|
||||
</files>
|
||||
</assembly>
|
|
@ -92,7 +92,7 @@ public class LiferayRoleManager implements RoleManager {
|
|||
} catch (PortalException e) {
|
||||
_log.warn(roleId + " Role id not existing");
|
||||
} catch (SystemException e) {
|
||||
e.printStackTrace();
|
||||
_log.error("Liferay SystemException");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@ -112,10 +112,11 @@ public class LiferayRoleManager implements RoleManager {
|
|||
Role toReturn = RoleLocalServiceUtil.getRole(ManagementUtils.getCompany().getCompanyId(), roleName);
|
||||
return toReturn.getRoleId();
|
||||
} catch (PortalException e) {
|
||||
throw new RoleRetrievalFault("Role not existing", e);
|
||||
throw new RoleRetrievalFault("Role not existing");
|
||||
} catch (SystemException e) {
|
||||
throw new RoleRetrievalFault(e.getMessage(), e);
|
||||
_log.error("Liferay SystemException");
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
|
@ -157,7 +158,7 @@ public class LiferayRoleManager implements RoleManager {
|
|||
long existingroleId = -1;
|
||||
try {
|
||||
existingroleId = getRoleIdByName(roleName);
|
||||
} catch (RoleRetrievalFault e1) {
|
||||
} catch (Exception e) {
|
||||
_log.debug("Site Role having name " + roleName + " does not exist, proceed with creation OK");
|
||||
}
|
||||
if (existingroleId == -1) {
|
||||
|
|
Loading…
Reference in New Issue