From 991a6ac0132a353877b61818b1a6bf8470bb10e0 Mon Sep 17 00:00:00 2001 From: "massimiliano.assante" Date: Thu, 30 Nov 2017 17:31:08 +0000 Subject: [PATCH] Initial import. git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/accept-invite-portlet@158973 82a268e6-3cf1-43bd-a215-b396298e98cf --- .classpath | 32 +++ .project | 38 ++++ .settings/.jsdtscope | 12 ++ .settings/org.eclipse.core.resources.prefs | 4 + .settings/org.eclipse.jdt.core.prefs | 8 + .settings/org.eclipse.jst.jsp.core.prefs | 3 + .settings/org.eclipse.m2e.core.prefs | 4 + .settings/org.eclipse.wst.common.component | 16 ++ ....eclipse.wst.common.project.facet.core.xml | 8 + ...rg.eclipse.wst.jsdt.ui.superType.container | 1 + .../org.eclipse.wst.jsdt.ui.superType.name | 1 + .settings/org.eclipse.wst.validation.prefs | 2 + .tern-project | 23 ++ pom.xml | 204 ++++++++++++++++++ .../acceptinvite/PortletViewController.java | 173 +++++++++++++++ .../webapp/WEB-INF/jsp/invite-expired.jsp | 16 ++ .../webapp/WEB-INF/jsp/invite-notfound.jsp | 17 ++ .../webapp/WEB-INF/jsp/not-authorized.jsp | 21 ++ src/main/webapp/WEB-INF/jsp/view.jsp | 78 +++++++ src/main/webapp/WEB-INF/jsp/vre-notfound.jsp | 17 ++ src/main/webapp/WEB-INF/liferay-display.xml | 8 + .../WEB-INF/liferay-plugin-package.properties | 9 + src/main/webapp/WEB-INF/liferay-portlet.xml | 29 +++ src/main/webapp/WEB-INF/portlet.xml | 34 +++ .../portlet-application-context.xml | 19 ++ .../portlet/accept-invite-portlet-portlet.xml | 10 + src/main/webapp/WEB-INF/web.xml | 25 +++ src/main/webapp/css/main.css | 0 src/main/webapp/icon.png | Bin 0 -> 467 bytes src/main/webapp/js/main.js | 0 30 files changed, 812 insertions(+) create mode 100644 .classpath create mode 100644 .project create mode 100644 .settings/.jsdtscope create mode 100644 .settings/org.eclipse.core.resources.prefs create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 .settings/org.eclipse.jst.jsp.core.prefs create mode 100644 .settings/org.eclipse.m2e.core.prefs create mode 100644 .settings/org.eclipse.wst.common.component create mode 100644 .settings/org.eclipse.wst.common.project.facet.core.xml create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.container create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.name create mode 100644 .settings/org.eclipse.wst.validation.prefs create mode 100644 .tern-project create mode 100644 pom.xml create mode 100644 src/main/java/org/gcube/portlets/user/acceptinvite/PortletViewController.java create mode 100644 src/main/webapp/WEB-INF/jsp/invite-expired.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/invite-notfound.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/not-authorized.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/view.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/vre-notfound.jsp create mode 100644 src/main/webapp/WEB-INF/liferay-display.xml create mode 100644 src/main/webapp/WEB-INF/liferay-plugin-package.properties create mode 100644 src/main/webapp/WEB-INF/liferay-portlet.xml create mode 100644 src/main/webapp/WEB-INF/portlet.xml create mode 100644 src/main/webapp/WEB-INF/spring-context/portlet-application-context.xml create mode 100644 src/main/webapp/WEB-INF/spring-context/portlet/accept-invite-portlet-portlet.xml create mode 100644 src/main/webapp/WEB-INF/web.xml create mode 100644 src/main/webapp/css/main.css create mode 100644 src/main/webapp/icon.png create mode 100644 src/main/webapp/js/main.js diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..3b073e7 --- /dev/null +++ b/.classpath @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..d8e6e67 --- /dev/null +++ b/.project @@ -0,0 +1,38 @@ + + + accept-invite-portlet + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + com.liferay.ide.core.liferayNature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope new file mode 100644 index 0000000..81672d4 --- /dev/null +++ b/.settings/.jsdtscope @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..abdea9a --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..6e80039 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/.settings/org.eclipse.jst.jsp.core.prefs b/.settings/org.eclipse.jst.jsp.core.prefs new file mode 100644 index 0000000..3a5c98d --- /dev/null +++ b/.settings/org.eclipse.jst.jsp.core.prefs @@ -0,0 +1,3 @@ +eclipse.preferences.version=1 +validateFragments=false +validation.use-project-settings=true diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..e6f7678 --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles=Liferay-v6.2-CE-(Tomcat-7)-(2) +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..7cd2074 --- /dev/null +++ b/.settings/org.eclipse.wst.common.component @@ -0,0 +1,16 @@ + + + + + + + + uses + + + uses + + + + + diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..2885fc4 --- /dev/null +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/.settings/org.eclipse.wst.validation.prefs b/.settings/org.eclipse.wst.validation.prefs new file mode 100644 index 0000000..04cad8c --- /dev/null +++ b/.settings/org.eclipse.wst.validation.prefs @@ -0,0 +1,2 @@ +disabled=06target +eclipse.preferences.version=1 diff --git a/.tern-project b/.tern-project new file mode 100644 index 0000000..d7fbf24 --- /dev/null +++ b/.tern-project @@ -0,0 +1,23 @@ +{ + "plugins": { + "guess-types": { + + }, + "outline": { + + }, + "liferay": { + + }, + "yui3": { + + }, + "aui2.0.x": { + + } + }, + "libs": [ + "ecma5", + "browser" + ] +} \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..9b2161c --- /dev/null +++ b/pom.xml @@ -0,0 +1,204 @@ + + + + 4.0.0 + + maven-parent + org.gcube.tools + 1.0.0 + + + org.gcube.portlets.user + accept-invite-portlet + war + accept-invite-portlet Portlet + 1.0.0-SNAPSHOT + + accept-invite-portlet manage the sent invitations + + + scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/${project.artifactId} + scm:https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/${project.artifactId} + http://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/${project.artifactId} + + + + Liferay-v6.2-CE-(Tomcat-7)-(2) + + 6.2.5 + 6.2.10.12 + /Users/massi/portal/liferay-portal-6.2-ce-ga6/deploy + /Users/massi/portal/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps + /Users/massi/portal/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/lib/ext + /Users/massi/portal/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps/ROOT + + + + + + + + org.gcube.distribution + maven-portal-bom + LATEST + pom + import + + + + + + org.gcube.portal + social-networking-library + provided + + + org.gcube.dvos + usermanagement-core + + + org.gcube.common.portal + portal-manager + provided + + + commons-codec + commons-codec + provided + + + org.gcube.portal + invites-common-library + [1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT) + + + com.liferay.portal + portal-service + ${liferay.version} + provided + + + com.liferay.portal + util-bridges + ${liferay.version} + provided + + + com.liferay.portal + util-taglib + ${liferay.version} + provided + + + com.liferay.portal + util-java + ${liferay.version} + provided + + + javax.portlet + portlet-api + 2.0 + provided + + + javax.servlet + servlet-api + 2.4 + provided + + + javax.servlet.jsp + jsp-api + 2.0 + provided + + + javax.servlet + jstl + 1.2 + + + org.springframework + spring-aop + 3.0.7.RELEASE + + + org.springframework + spring-beans + 3.0.7.RELEASE + + + org.springframework + spring-context + 3.0.7.RELEASE + + + org.springframework + spring-core + 3.0.7.RELEASE + + + org.springframework + spring-expression + 3.0.7.RELEASE + + + org.springframework + spring-web + 3.0.7.RELEASE + + + org.springframework + spring-webmvc + 3.0.7.RELEASE + + + org.springframework + spring-webmvc-portlet + 3.0.7.RELEASE + + + + + + com.liferay.maven.plugins + liferay-maven-plugin + ${liferay.maven.plugin.version} + + + generate-sources + + build-css + + + + + ${liferay.auto.deploy.dir} + ${liferay.app.server.deploy.dir} + ${liferay.app.server.lib.global.dir} + ${liferay.app.server.portal.dir} + ${liferay.version} + portlet + + + + maven-compiler-plugin + 2.5 + + UTF-8 + 1.8 + 1.8 + + + + maven-resources-plugin + 2.5 + + UTF-8 + + + + + \ No newline at end of file diff --git a/src/main/java/org/gcube/portlets/user/acceptinvite/PortletViewController.java b/src/main/java/org/gcube/portlets/user/acceptinvite/PortletViewController.java new file mode 100644 index 0000000..b8a648f --- /dev/null +++ b/src/main/java/org/gcube/portlets/user/acceptinvite/PortletViewController.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2000-present Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ + +package org.gcube.portlets.user.acceptinvite; +import java.io.IOException; + +import javax.portlet.PortalContext; +import javax.portlet.RenderRequest; +import javax.portlet.RenderResponse; +import javax.portlet.ResourceRequest; +import javax.portlet.ResourceResponse; +import javax.servlet.http.HttpServletRequest; + +import org.apache.commons.codec.binary.Base64; +import org.gcube.portal.databook.server.DBCassandraAstyanaxImpl; +import org.gcube.portal.databook.server.DatabookStore; +import org.gcube.portal.databook.shared.Invite; +import org.gcube.portal.databook.shared.InviteStatus; +import org.gcube.portal.databook.shared.ex.InviteIDNotFoundException; +import org.gcube.portal.databook.shared.ex.InviteStatusNotFoundException; +import org.gcube.portal.invites.InvitesManager; +import org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException; +import org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault; +import org.gcube.vomanagement.usermanagement.impl.LiferayUserManager; +import org.gcube.vomanagement.usermanagement.model.GCubeUser; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.portlet.bind.annotation.RenderMapping; +import org.springframework.web.portlet.bind.annotation.ResourceMapping; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.json.JSONArray; +import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.util.ParamUtil; +import com.liferay.portal.model.Group; +import com.liferay.portal.service.GroupLocalServiceUtil; +import com.liferay.portal.util.PortalUtil; + +@Controller(value = "PortletViewController") +@RequestMapping("VIEW") +public class PortletViewController { + private static Log _log = LogFactoryUtil.getLog(PortletViewController.class); + + private static String PAGE_NOT_AUTHORIZED = "not-authorized"; + private static String PAGE_INVITE_NOTFOUND = "invite-notfound"; + private static String PAGE_VRE_NOTFOUND = "vre-notfound"; + private static String PAGE_INVITE_EXPIRED = "invite-expired"; + private static String PAGE_INVITE_PROCESS = "view"; + + public static String INVITE_INSTANCE = "inviteInstance"; + + private static DatabookStore store; + + /** + * + * @return the unique instance of the store + */ + public static synchronized DatabookStore getStore() { + if (store == null) { + store = new DBCassandraAstyanaxImpl(); + } + return store; + } + + // .append(PortalContext.getConfiguration().getSiteLandingPagePath(request)) + @RenderMapping + public String handleRenderRequest(RenderRequest request,RenderResponse response, Model model) { + + HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(request)); + + final String INVITE_ID_ENCODED = new String(Base64.encodeBase64(InvitesManager.INVITEID_ATTR.getBytes())); + final String SITE_ID_ENCODED = new String(Base64.encodeBase64(InvitesManager.SITEID_ATTR.getBytes())); + if (httpReq.getParameter(INVITE_ID_ENCODED) == null || SITE_ID_ENCODED == null) + return PAGE_NOT_AUTHORIZED; + String inviteIdEncoded = (String) httpReq.getParameter(INVITE_ID_ENCODED); + String siteIdEncoded = (String) httpReq.getParameter(SITE_ID_ENCODED); + String inviteId= new String(Base64.decodeBase64(inviteIdEncoded)); + String groupId = new String(Base64.decodeBase64(siteIdEncoded)); + + _log.info("GOT inviteId=" + inviteId); + _log.info("siteId=" + groupId); + + Group site = null; + try { + site = GroupLocalServiceUtil.getGroup(Long.parseLong(groupId)); + } catch (Exception e1) { + e1.printStackTrace(); + return PAGE_VRE_NOTFOUND; + } + + Invite invite = null; + + try { + invite = getStore().readInvite(inviteId); + } catch (InviteIDNotFoundException | InviteStatusNotFoundException e) { + e.printStackTrace(); + return PAGE_INVITE_NOTFOUND; + } + + if (invite.getStatus() == InviteStatus.ACCEPTED) + return PAGE_INVITE_EXPIRED; + + + GCubeUser invitedUser = null; + try { + invitedUser = new LiferayUserManager().getUserByEmail(invite.getInvitedEmail()); + model.addAttribute("invitedUser", invitedUser); + } catch (UserManagementSystemException | UserRetrievalFault e) { + _log.info("No user account exist with this email: " + invite.getInvitedEmail()); + } + + //we set the invite instance retrieved in the model + model.addAttribute(INVITE_INSTANCE, invite); + model.addAttribute("vreName", site.getName()); + model.addAttribute("vreFriendlyURL", site.getFriendlyURL()); + model.addAttribute("groupId", site.getGroupId()); + + return PAGE_INVITE_PROCESS; + } + + + + @ResourceMapping(value="findState") + public void findStateForCountry(ResourceRequest request, ResourceResponse response) throws IOException { + String countryName = ParamUtil.getString(request, "countryName"); + + JSONArray stateArray = JSONFactoryUtil.createJSONArray(); + JSONObject stateObject,stateObject2; + if(countryName.equalsIgnoreCase("india")) + { + stateObject = JSONFactoryUtil.createJSONObject(); + stateObject.put("stateId", "1"); + stateObject.put("name", "Delhi"); + + stateObject2 = JSONFactoryUtil.createJSONObject(); + stateObject2.put("stateId", "2"); + stateObject2.put("name", "Gujrat"); + + + } + else{ + + stateObject = JSONFactoryUtil.createJSONObject(); + stateObject.put("stateId", "21"); + stateObject.put("name", "LA"); + + stateObject2 = JSONFactoryUtil.createJSONObject(); + stateObject2.put("stateId", "22"); + stateObject2.put("name", "California"); + } + stateArray.put(stateObject); + stateArray.put(stateObject2); + response.getWriter().println(stateArray); + } + + +} \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/invite-expired.jsp b/src/main/webapp/WEB-INF/jsp/invite-expired.jsp new file mode 100644 index 0000000..01d1210 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/invite-expired.jsp @@ -0,0 +1,16 @@ +<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%> + + +
+

Invite Expired

+ The invite you received has been accepted already.

If + you were trying to access a VRE make sure you are member, you can ask + to be member in the Explore page of this + gateway. Please click here to do so.

+
+ +
If you need support for manage your invitation please go to http://www.d4science.org/contact-us + to ask for D4Science Help Desk support.
+
+
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/invite-notfound.jsp b/src/main/webapp/WEB-INF/jsp/invite-notfound.jsp new file mode 100644 index 0000000..8525da1 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/invite-notfound.jsp @@ -0,0 +1,17 @@ +<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%> + + +
+

Invite Not Found

+ The invite you received could not be found.
+
+ +
+ If you believe this requires support please go to http://www.d4science.org/contact-us + to ask for D4Science Help Desk support.

+ + + + +
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/not-authorized.jsp b/src/main/webapp/WEB-INF/jsp/not-authorized.jsp new file mode 100644 index 0000000..46b0039 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/not-authorized.jsp @@ -0,0 +1,21 @@ +<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%> + + +
+

Forbidden

+ You do not have permission to access this page.
+
+ If you need support for manage your invitation please go to http://www.d4science.org/contact-us to ask for D4Science Help Desk support.
+
If you were trying to access a VRE make sure you are member, + you can ask to be member in the Explore page of this gateway. Please click here to do so.
+
+
+ +
+ + + +
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/view.jsp b/src/main/webapp/WEB-INF/jsp/view.jsp new file mode 100644 index 0000000..7db95a2 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/view.jsp @@ -0,0 +1,78 @@ +<%@ page contentType="text/html" pageEncoding="UTF-8"%> +<%@ page import="javax.portlet.*"%> +<%@ page import="org.gcube.common.portal.*"%> +<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%> +<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui"%> +<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui"%> +<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme"%> + + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> + + + +

Hello!

+ +

+ You have recently received an invitation from + + to join the + " target="_blank"> Virtual Research Environment. +This invite is valid for the email address: + "> + only. + + + + var1 is empty or null. +
+
+ +

+ If you already have a D4Science account click here: +

+ + + +

+ +
+ + + +Change the Country State Change By Ajax +
+
+Country: + + +
+
+State: + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/vre-notfound.jsp b/src/main/webapp/WEB-INF/jsp/vre-notfound.jsp new file mode 100644 index 0000000..0c44fef --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/vre-notfound.jsp @@ -0,0 +1,17 @@ +<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%> + + +
+

VRE not Found

+ The VRE addressed by this invite could not be found.
+
+ +
+ If you believe this requires support please go to http://www.d4science.org/contact-us + to ask for D4Science Help Desk support.

+ + + + +
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/liferay-display.xml b/src/main/webapp/WEB-INF/liferay-display.xml new file mode 100644 index 0000000..843bdc9 --- /dev/null +++ b/src/main/webapp/WEB-INF/liferay-display.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/liferay-plugin-package.properties b/src/main/webapp/WEB-INF/liferay-plugin-package.properties new file mode 100644 index 0000000..39ebf86 --- /dev/null +++ b/src/main/webapp/WEB-INF/liferay-plugin-package.properties @@ -0,0 +1,9 @@ +name=accept-invite-portlet +module-group-id=liferay +module-incremental-version=1 +tags= +short-description= +change-log= +page-url=http://www.liferay.com +author=Liferay, Inc. +licenses=LGPL \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/liferay-portlet.xml b/src/main/webapp/WEB-INF/liferay-portlet.xml new file mode 100644 index 0000000..c7ab88b --- /dev/null +++ b/src/main/webapp/WEB-INF/liferay-portlet.xml @@ -0,0 +1,29 @@ + + + + + + accept-invite-portlet + /icon.png + false + /css/main.css + https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js + /js/main.js + + + administrator + Administrator + + + guest + Guest + + + power-user + Power User + + + user + User + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/portlet.xml b/src/main/webapp/WEB-INF/portlet.xml new file mode 100644 index 0000000..8e89a26 --- /dev/null +++ b/src/main/webapp/WEB-INF/portlet.xml @@ -0,0 +1,34 @@ + + + + + accept-invite-portlet + accept-invite-portlet + org.springframework.web.portlet.DispatcherPortlet + + contextConfigLocation + /WEB-INF/spring-context/portlet/accept-invite-portlet-portlet.xml + + 0 + + text/html + + + Accept invite + Accept invite + accept-invite-portlet + + + administrator + + + guest + + + power-user + + + user + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/spring-context/portlet-application-context.xml b/src/main/webapp/WEB-INF/spring-context/portlet-application-context.xml new file mode 100644 index 0000000..ba3abf7 --- /dev/null +++ b/src/main/webapp/WEB-INF/spring-context/portlet-application-context.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/spring-context/portlet/accept-invite-portlet-portlet.xml b/src/main/webapp/WEB-INF/spring-context/portlet/accept-invite-portlet-portlet.xml new file mode 100644 index 0000000..73a23d8 --- /dev/null +++ b/src/main/webapp/WEB-INF/spring-context/portlet/accept-invite-portlet-portlet.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..3412378 --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,25 @@ + + + + + contextConfigLocation + /WEB-INF/spring-context/portlet-application-context.xml + + + ViewRendererServlet + org.springframework.web.servlet.ViewRendererServlet + 1 + + + ViewRendererServlet + /WEB-INF/servlet/view + + + org.springframework.web.context.ContextLoaderListener + + \ No newline at end of file diff --git a/src/main/webapp/css/main.css b/src/main/webapp/css/main.css new file mode 100644 index 0000000..e69de29 diff --git a/src/main/webapp/icon.png b/src/main/webapp/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..807b862cfc087b70dcdd971af3ac92688484e998 GIT binary patch literal 467 zcmV;^0WAKBP)4nWfMy23V#h*$3p-!?D%AI~T5+JJ;5Qi)|`;Y?)XOj2U`VS70o zp1%L~Y4f1;U-b7MEOk38OU$EtImvzCpiEkKCg)@3^{;h@nc_6NuOBn7?ZF9Ev4w3+ zWiSxI_v2&k@_b{1R8kdeGLx;rFK&F@c}mqZ4YwJO$7q^VC6&nL^Y#-6g9F*zM-oa= z70W0^1X#=%!t{DQE-wCJ^Pd1r08&yFDUlL$EtoM3e+;?Hv-Nc(QI%=il9}v$`OS^N z)(TbAG~DLw><`m+N>!Xf5_@kR0j83~eKLh5sv-%=fC#``TU}jaG#UW`VS>Ph2!jLJ zROR&N$x3B;J002ov JPDHLkV1im=zq