This commit is contained in:
Massimiliano Assante 2016-03-15 11:43:45 +00:00
parent 1c5e1c00dc
commit ddc2488b72
2 changed files with 5 additions and 11 deletions

View File

@ -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>

View File

@ -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) {