minor update

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/liferay62-plugins/landing-page-hook@126767 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2016-04-05 13:31:35 +00:00
parent 5015d6ec36
commit ec655fdf1e
2 changed files with 8 additions and 2 deletions

View File

@ -27,6 +27,12 @@
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.gcube.common.portal</groupId>
<artifactId>portal-manager</artifactId>
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>portal-service</artifactId>

View File

@ -67,7 +67,7 @@ public class LandingPageAction extends Action {
}
public String getLandingPagePath(final HttpServletRequest request) throws PortalException, SystemException {
public static String getLandingPagePath(final HttpServletRequest request) throws PortalException, SystemException {
String sitePath = StringPool.BLANK;
User currentUser = PortalUtil.getUser(request);
@ -113,7 +113,7 @@ public class LandingPageAction extends Action {
* @param site
* @throws SystemException
*/
private void registerUserToSite(User user, Group site) throws SystemException {
private static void registerUserToSite(User user, Group site) throws SystemException {
UserLocalServiceUtil.addGroupUser(site.getGroupId(), user.getUserId());
_log.debug("User " + user.getScreenName() +" registered to " + site.getName());
}