").append(sender).append(" ").append("removed his/her account from the portal with the following email: ") // has done something
+ .append(newUserEmailAddress)
+ .append("
")
+ .append("
You received this email because you are an Infrastructure Manager in this portal
")
+ .append("
")
+ .append("");
+
+ return body.toString();
+
+ }
+
+
+
+}
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..f448a2e
--- /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..c0a6ab8
--- /dev/null
+++ b/src/main/webapp/WEB-INF/liferay-plugin-package.properties
@@ -0,0 +1,9 @@
+name=RemoveAccount
+module-group-id=liferay
+module-incremental-version=1
+tags=
+short-description=
+change-log=
+page-url=http://www.gcube-system.org
+author=M. Assante
+licenses=EUPL
\ 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..c834a38
--- /dev/null
+++ b/src/main/webapp/WEB-INF/liferay-portlet.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ remove-account
+ /icon.png
+ my
+ 10
+ com.liferay.portlet.LiberalControlPanelEntry
+ /css/main.css
+
+ /js/main.js
+
+ remove-account-portlet
+ true
+
+
+ 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..a47c304
--- /dev/null
+++ b/src/main/webapp/WEB-INF/portlet.xml
@@ -0,0 +1,67 @@
+
+
+
+
+ RemoveAccount
+ RemoveAccount
+ com.liferay.util.bridges.mvc.MVCPortlet
+
+ view-template
+ /view.jsp
+
+ 0
+
+ text/html
+
+
+ RemoveAccount
+ RemoveAccount
+ RemoveAccount
+
+
+ administrator
+
+
+ guest
+
+
+ power-user
+
+
+ user
+
+
+
+ remove-account
+ Remove Account
+
+ org.gcube.portlets.admin.RemoveAccountPortlet
+
+
+ view-template
+ /html/removeaccount/view.jsp
+
+ 0
+
+ text/html
+ view
+
+
+ Delete Account
+ Delete Account
+
+
+
+ administrator
+
+
+ guest
+
+
+ power-user
+
+
+ user
+
+
+
\ 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..7d8c082
--- /dev/null
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ 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/html/removeaccount/view.jsp b/src/main/webapp/html/removeaccount/view.jsp
new file mode 100644
index 0000000..7b57e04
--- /dev/null
+++ b/src/main/webapp/html/removeaccount/view.jsp
@@ -0,0 +1,24 @@
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
+
+
+
+
+
+
+
Delete your Account
+
Deleting your account will disable your profile and remove your
+ name and photo from most things you've shared on this D4Science gateway.
+
Some information may still be visible to others, such as your
+ name in the posts and private messages you sent. Non shared files and folders of your virtual workspace will be removed.
+
+
+
Warning
+ Clicking on "Confirm delete account" below is an undoable operation, your account will be removed and you'll be automatically logged out from this Gateway.
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/icon.png b/src/main/webapp/icon.png
new file mode 100644
index 0000000..807b862
Binary files /dev/null and b/src/main/webapp/icon.png differ
diff --git a/src/main/webapp/js/main.js b/src/main/webapp/js/main.js
new file mode 100644
index 0000000..e69de29
diff --git a/src/main/webapp/view.jsp b/src/main/webapp/view.jsp
new file mode 100644
index 0000000..8671525
--- /dev/null
+++ b/src/main/webapp/view.jsp
@@ -0,0 +1,21 @@
+<%--
+/**
+ * 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.
+ */
+--%>
+
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
+
+
+
+This is the RemoveAccount.
\ No newline at end of file
diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties
new file mode 100644
index 0000000..44f4580
--- /dev/null
+++ b/target/maven-archiver/pom.properties
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Mon Nov 27 16:23:54 CET 2017
+version=1.0.0-SNAPSHOT
+groupId=org.gcube.portlets.admin
+artifactId=remove-account-portlet
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT.war b/target/remove-account-portlet-1.0.0-SNAPSHOT.war
new file mode 100644
index 0000000..99dac27
Binary files /dev/null and b/target/remove-account-portlet-1.0.0-SNAPSHOT.war differ
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/classes/org/gcube/portlets/admin/RemoveAccountPortlet.class b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/classes/org/gcube/portlets/admin/RemoveAccountPortlet.class
new file mode 100644
index 0000000..044cd56
Binary files /dev/null and b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/classes/org/gcube/portlets/admin/RemoveAccountPortlet.class differ
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/classes/org/gcube/portlets/admin/RemovedUserAccountThread.class b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/classes/org/gcube/portlets/admin/RemovedUserAccountThread.class
new file mode 100644
index 0000000..2683f62
Binary files /dev/null and b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/classes/org/gcube/portlets/admin/RemovedUserAccountThread.class differ
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/liferay-display.xml b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/liferay-display.xml
new file mode 100644
index 0000000..f448a2e
--- /dev/null
+++ b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/liferay-display.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/liferay-plugin-package.properties b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/liferay-plugin-package.properties
new file mode 100644
index 0000000..c0a6ab8
--- /dev/null
+++ b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/liferay-plugin-package.properties
@@ -0,0 +1,9 @@
+name=RemoveAccount
+module-group-id=liferay
+module-incremental-version=1
+tags=
+short-description=
+change-log=
+page-url=http://www.gcube-system.org
+author=M. Assante
+licenses=EUPL
\ No newline at end of file
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/liferay-portlet.xml b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/liferay-portlet.xml
new file mode 100644
index 0000000..c834a38
--- /dev/null
+++ b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/liferay-portlet.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ remove-account
+ /icon.png
+ my
+ 10
+ com.liferay.portlet.LiberalControlPanelEntry
+ /css/main.css
+
+ /js/main.js
+
+ remove-account-portlet
+ true
+
+
+ administrator
+ Administrator
+
+
+ guest
+ Guest
+
+
+ power-user
+ Power User
+
+
+ user
+ User
+
+
\ No newline at end of file
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/portlet.xml b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/portlet.xml
new file mode 100644
index 0000000..a47c304
--- /dev/null
+++ b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/portlet.xml
@@ -0,0 +1,67 @@
+
+
+
+
+ RemoveAccount
+ RemoveAccount
+ com.liferay.util.bridges.mvc.MVCPortlet
+
+ view-template
+ /view.jsp
+
+ 0
+
+ text/html
+
+
+ RemoveAccount
+ RemoveAccount
+ RemoveAccount
+
+
+ administrator
+
+
+ guest
+
+
+ power-user
+
+
+ user
+
+
+
+ remove-account
+ Remove Account
+
+ org.gcube.portlets.admin.RemoveAccountPortlet
+
+
+ view-template
+ /html/removeaccount/view.jsp
+
+ 0
+
+ text/html
+ view
+
+
+ Delete Account
+ Delete Account
+
+
+
+ administrator
+
+
+ guest
+
+
+ power-user
+
+
+ user
+
+
+
\ No newline at end of file
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/web.xml b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/web.xml
new file mode 100644
index 0000000..7d8c082
--- /dev/null
+++ b/target/remove-account-portlet-1.0.0-SNAPSHOT/WEB-INF/web.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/css/.sass-cache/main.css b/target/remove-account-portlet-1.0.0-SNAPSHOT/css/.sass-cache/main.css
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/target/remove-account-portlet-1.0.0-SNAPSHOT/css/.sass-cache/main.css
@@ -0,0 +1 @@
+
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/css/.sass-cache/main_rtl.css b/target/remove-account-portlet-1.0.0-SNAPSHOT/css/.sass-cache/main_rtl.css
new file mode 100644
index 0000000..e69de29
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/css/main.css b/target/remove-account-portlet-1.0.0-SNAPSHOT/css/main.css
new file mode 100644
index 0000000..e69de29
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/html/removeaccount/view.jsp b/target/remove-account-portlet-1.0.0-SNAPSHOT/html/removeaccount/view.jsp
new file mode 100644
index 0000000..7b57e04
--- /dev/null
+++ b/target/remove-account-portlet-1.0.0-SNAPSHOT/html/removeaccount/view.jsp
@@ -0,0 +1,24 @@
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
+
+
+
+
+
+
+
Delete your Account
+
Deleting your account will disable your profile and remove your
+ name and photo from most things you've shared on this D4Science gateway.
+
Some information may still be visible to others, such as your
+ name in the posts and private messages you sent. Non shared files and folders of your virtual workspace will be removed.
+
+
+
Warning
+ Clicking on "Confirm delete account" below is an undoable operation, your account will be removed and you'll be automatically logged out from this Gateway.
+
+
+
\ No newline at end of file
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/icon.png b/target/remove-account-portlet-1.0.0-SNAPSHOT/icon.png
new file mode 100644
index 0000000..807b862
Binary files /dev/null and b/target/remove-account-portlet-1.0.0-SNAPSHOT/icon.png differ
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/js/main.js b/target/remove-account-portlet-1.0.0-SNAPSHOT/js/main.js
new file mode 100644
index 0000000..e69de29
diff --git a/target/remove-account-portlet-1.0.0-SNAPSHOT/view.jsp b/target/remove-account-portlet-1.0.0-SNAPSHOT/view.jsp
new file mode 100644
index 0000000..8671525
--- /dev/null
+++ b/target/remove-account-portlet-1.0.0-SNAPSHOT/view.jsp
@@ -0,0 +1,21 @@
+<%--
+/**
+ * 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.
+ */
+--%>
+
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
+
+
+
+This is the RemoveAccount.
\ No newline at end of file