").append("") + .append(user.getFullName()).append(" (").append(user.getScreenName()).append(")").append("").append(" registered to the portal with the following email:").append(user.getEmailAddress()) + .append("
") + .append("") + .append("You received this email because you are an Infrastructure Manager in this portal") + .append("
"); + + + EmailNotification toSend = new EmailNotification(manager.getEmail(), SUBJECT, body.toString(), null); + toSend.sendEmail(); + } +} \ No newline at end of file diff --git a/src/main/resources/clientlog4j.properties b/src/main/resources/clientlog4j.properties new file mode 100644 index 0000000..4a2e1cd --- /dev/null +++ b/src/main/resources/clientlog4j.properties @@ -0,0 +1,12 @@ +log4j.rootLogger=DEBUG, A1 +log4j.appender.A1=org.apache.log4j.ConsoleAppender +log4j.appender.A1.layout=org.apache.log4j.PatternLayout + +# Print the date in ISO 8601 format +log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n + +# Print only messages of level TRACE or above in the package org.gcube +log4j.logger.org.gcube=TRACE +log4j.logger.org.gcube.application.framework.core.session=INFO +log4j.logger.org.gcube.common.scope.impl.DefaultScopeProvider=ERROR +log4j.logger.com.netflix.astyanax.connectionpool.impl.CountingConnectionPoolMonitor=ERROR \ No newline at end of file diff --git a/src/main/resources/portal.properties b/src/main/resources/portal.properties new file mode 100644 index 0000000..c1ee47b --- /dev/null +++ b/src/main/resources/portal.properties @@ -0,0 +1,3 @@ +# +#Mon July 4 16:56:00 CET 2016 +value.object.listener.com.liferay.portal.model.User=org.gcube.portal.usersaccount.MyCreateUserAccountListener diff --git a/src/main/webapp/WEB-INF/liferay-hook.xml b/src/main/webapp/WEB-INF/liferay-hook.xml new file mode 100644 index 0000000..944195a --- /dev/null +++ b/src/main/webapp/WEB-INF/liferay-hook.xml @@ -0,0 +1,6 @@ + + + +