updated portlet category in portlet descriptor

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/vre-manager@82281 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-10-02 13:47:21 +00:00
parent a728f1d313
commit 4b2d3935a6
7 changed files with 25 additions and 22 deletions

View File

@ -6,7 +6,6 @@
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="src" path="target/generated-sources/gwt"/>
<classpathentry including="**/*.java" kind="src" output="src/main/webapp/WEB-INF/classes" path="src/main/resources"/> <classpathentry including="**/*.java" kind="src" output="src/main/webapp/WEB-INF/classes" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> <classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes> <attributes>

View File

@ -13,9 +13,9 @@
<artifactId>vre-manager</artifactId> <artifactId>vre-manager</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<version>3.0.0-SNAPSHOT</version> <version>3.0.0-SNAPSHOT</version>
<name>VRE Definition Portlet</name> <name>VRE Manager Portlet</name>
<description> <description>
gCube VRE Definition Portlet shows a Wizard to create VREs. gCube VRE Manager Portlet shows a Wizard to create VREs.
</description> </description>
<scm> <scm>
<connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/${project.artifactId}</connection> <connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/${project.artifactId}</connection>

View File

@ -28,6 +28,11 @@ import org.gcube.application.framework.vremanagement.vremanagement.impl.VREGener
import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper; import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper;
import org.gcube.portlets.admin.vredeployment.client.VREDeploymentService; import org.gcube.portlets.admin.vredeployment.client.VREDeploymentService;
import org.gcube.portlets.admin.vredeployment.shared.VREDefinitionBean; import org.gcube.portlets.admin.vredeployment.shared.VREDefinitionBean;
import org.gcube.vomanagement.usermanagement.UserManager;
import org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException;
import org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault;
import org.gcube.vomanagement.usermanagement.impl.liferay.LiferayUserManager;
import org.gcube.vomanagement.usermanagement.model.UserModel;
import org.gcube.vremanagement.vremodel.cl.stubs.types.FunctionalityItem; import org.gcube.vremanagement.vremodel.cl.stubs.types.FunctionalityItem;
import org.gcube.vremanagement.vremodel.cl.stubs.types.Report; import org.gcube.vremanagement.vremodel.cl.stubs.types.Report;
import org.gcube.vremanagement.vremodel.cl.stubs.types.ResourceDescriptionItem; import org.gcube.vremanagement.vremodel.cl.stubs.types.ResourceDescriptionItem;
@ -65,21 +70,20 @@ public class VREDeploymentServiceImpl extends RemoteServiceServlet implements VR
ArrayList<VREDefinitionBean> toReturn = new ArrayList<VREDefinitionBean>(); ArrayList<VREDefinitionBean> toReturn = new ArrayList<VREDefinitionBean>();
System.out.println("getAllVREs"); System.out.println("getAllVREs");
VREGeneratorEvo evo = new VREGeneratorEvo(aslSession); VREGeneratorEvo evo = new VREGeneratorEvo(aslSession);
List<Report> list = evo.getAllVREs(aslSession); List<Report> vres = evo.getAllVREs(aslSession);
if (list == null || list.isEmpty()) {
if (vres == null || vres.isEmpty()) {
return toReturn; return toReturn;
} }
else { else {
Report[] vres = list.toArray(new Report[0]); for (Report vre: vres) {
if (vre.name().equals("notCompletedVirtualResearchEnv.")) {
for (int i = 0; i < vres.length; i++) { _log.debug("removing fake vre" +vre.name());
if (vres[i].name().equals("notCompletedVirtualResearchEnv.")) { doRemove(vre.id());
_log.debug("removing fake vre" + vres[i].name());
doRemove(vres[i].id());
} }
else { else {
toReturn.add(new VREDefinitionBean(vres[i].id(), vres[i].name(), vres[i].description(), "", "", new Date(), new Date(), vres[i].state(), "")); toReturn.add(new VREDefinitionBean(vre.id(), vre.name(), vre.description(), "", "", new Date(), new Date(), vre.state(), ""));
_log.debug(vres[i].name() + " id=" + vres[i].id()); _log.debug(vre.name() + " id=" + vre.id());
} }
} }
} }

View File

@ -2,7 +2,7 @@
<!DOCTYPE display PUBLIC "-//Liferay//DTD Display 5.2.0//EN" "http://www.liferay.com/dtd/liferay-display_5_2_0.dtd"> <!DOCTYPE display PUBLIC "-//Liferay//DTD Display 5.2.0//EN" "http://www.liferay.com/dtd/liferay-display_5_2_0.dtd">
<display> <display>
<category name="gCube Applications"> <category name="gCube Enabling Apps">
<portlet id="VREDeployment" /> <portlet id="VREManager" />
</category> </category>
</display> </display>

View File

@ -1,4 +1,4 @@
name=VRE Deployment name=VRE Manager
module-group-id=liferay module-group-id=liferay
module-incremental-version=1 module-incremental-version=1
tags= tags=

View File

@ -3,7 +3,7 @@
<liferay-portlet-app> <liferay-portlet-app>
<portlet> <portlet>
<portlet-name>VREDeployment</portlet-name> <portlet-name>VREManager</portlet-name>
<layout-cacheable>false</layout-cacheable> <layout-cacheable>false</layout-cacheable>
<instanceable>false</instanceable> <instanceable>false</instanceable>
<ajaxable>false</ajaxable> <ajaxable>false</ajaxable>

View File

@ -2,8 +2,8 @@
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"> <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet> <portlet>
<portlet-name>VREDeployment</portlet-name> <portlet-name>VREManager</portlet-name>
<display-name>=VRE Deployment</display-name> <display-name>=VRE Manager</display-name>
<portlet-class>org.gcube.portlets.admin.vredeployment.server.portlet.VREDeploymentPortlet</portlet-class> <portlet-class>org.gcube.portlets.admin.vredeployment.server.portlet.VREDeploymentPortlet</portlet-class>
<init-param> <init-param>
<name>view-jsp</name> <name>view-jsp</name>
@ -14,9 +14,9 @@
<mime-type>text/html</mime-type> <mime-type>text/html</mime-type>
</supports> </supports>
<portlet-info> <portlet-info>
<title>VRE Deployment</title> <title>VRE Manager</title>
<short-title>VRE Deployment</short-title> <short-title>VRE Manager</short-title>
<keywords>VRE Deployment</keywords> <keywords>VRE Manager</keywords>
</portlet-info> </portlet-info>
<security-role-ref> <security-role-ref>
<role-name>administrator</role-name> <role-name>administrator</role-name>