ready for release
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/my-vres@94574 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
82d3711da5
commit
b75d233521
18
.classpath
18
.classpath
|
@ -7,13 +7,6 @@
|
|||
</attributes>
|
||||
</classpathentry>
|
||||
<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">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
|
||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
|
@ -30,5 +23,16 @@
|
|||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/my-vres-1.2.0-SNAPSHOT/WEB-INF/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -4,9 +4,8 @@
|
|||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/>
|
||||
<dependent-module archiveName="guided-tour-widget-1.5.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/guided-tour-widget/guided-tour-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/resources"/>
|
||||
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
|
||||
<property name="context-root" value="my-vres"/>
|
||||
</wb-module>
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -85,7 +85,7 @@
|
|||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
<artifactId>guided-tour-widget</artifactId>
|
||||
<version>[1.4.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
<scope>compile</scope>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.liferay.portal</groupId>
|
||||
|
|
|
@ -11,15 +11,19 @@
|
|||
<title>Overview</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 40px;">
|
||||
<b>Social Networking </b>
|
||||
and <b>Shared Workspace</b> services are features of this social collaboration portal you should know about.
|
||||
<div style="line-height: 19px; padding: 0 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 25px;">
|
||||
This portal offers three major facilities for collaboration: <b>Collaboration Environments</b>, <b>Social Networking</b> services, and <b>Shared Workspace</b>.
|
||||
</div>
|
||||
<div style="padding-bottom: 40px;"><b>Social networking</b> services realize a shared status wall where users can post messages and share links and files with their coworkers.</div>
|
||||
<div style="padding-bottom: 40px;">
|
||||
<div style="padding-bottom: 25px;">
|
||||
<b>Collaboration Environments</b> are dedicated working environments offering selected services
|
||||
in addition to the social networking services and the shared workspace. Each environment serves a community.
|
||||
</div>
|
||||
<div style="padding-bottom: 25px;">
|
||||
<b>Social networking</b> services realize a shared status wall where users can post messages, share links and files with their coworkers.</div>
|
||||
<div style="padding-bottom: 25px;">
|
||||
The <a href="/group/data-e-infrastructure-gateway/workspace" target="_blank"><b>Shared Workspace</b></a>, is a service for managing files in the cloud. Through the workspace you can manage, upload and delete files as you wish.
|
||||
You can <b>share folders</b> with any users you would so as to maximize collaboration among members.
|
||||
You can <b>share folders</b> with any users you like so as to maximize collaboration among members.
|
||||
</div>
|
||||
<div style="padding-bottom: 10px;">
|
||||
Discover more about the Collaboration Facilities through this quick tour, click next.
|
||||
|
@ -29,14 +33,44 @@
|
|||
</body>
|
||||
</bodies>
|
||||
<images>
|
||||
<image url="images/tour/1.png" />
|
||||
<image url="images/tour/1.jpg" />
|
||||
</images>
|
||||
</step>
|
||||
<step showTitle="false" v-alignment="ALIGN_MIDDLE">
|
||||
<title>Join New</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="padding-bottom: 40px;">
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 40px;">
|
||||
You can check the <b>Collaboration Environments</b> and the communities available on the System
|
||||
by clicking on Join New in the top menu of this page.
|
||||
</div>
|
||||
<div style="padding-bottom: 40px;">
|
||||
For each <b>Collaboration Environment</b> you can ask to join.
|
||||
Your request will be reviewed by a delegated person in the related community and approved (depending on the scope of the community).
|
||||
</div>
|
||||
<div style="padding-bottom: 40px;">
|
||||
You will be notified whether your request will be approved or not via email. While the request is in the approval phase the related icon will be listed as pending.
|
||||
</div>
|
||||
<div style="padding-bottom: 40px;">
|
||||
In some cases you could be added to a community automatically, should this happen you will be notified via email.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
|
||||
</body>
|
||||
</bodies>
|
||||
<images>
|
||||
<image url="images/tour/6.jpg" />
|
||||
</images>
|
||||
</step>
|
||||
<step showTitle="true" v-alignment="ALIGN_TOP">
|
||||
<title>The Dockbar</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="line-height: 19px; padding: 0 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 10px;">
|
||||
The Dockbar is <b>very important</b>, it is always on the top of the page and contains 4 icons (links) always accessible as shown in the figure.
|
||||
</div>
|
||||
|
@ -77,10 +111,10 @@
|
|||
<body><![CDATA[
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 20px;">
|
||||
<b>Notification Settings</b> are very <b>fine grained</b>. For each Notification generated by the System you can choose <b>whether to and how to</b> get notified.
|
||||
<b>Notification Settings</b> are very <b>fine grained</b>. For each Notification type generated by the System you can choose <b>whether to and how to</b> get notified.
|
||||
</div>
|
||||
<div style="padding-bottom: 10px;">
|
||||
For each type of notification you can choose to be notified through this <b>portal</b>, via <b>email</b> or <b>none</b> by clicking off. By default almost all the notification types are set to ON.
|
||||
For each type of notification you can choose to be notified through this <b>portal</b>, via <b>email</b> or <b>none</b> (by clicking OFF). By default almost all the notification types are set to ON.
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
|
@ -92,10 +126,10 @@
|
|||
</images>
|
||||
</step>
|
||||
<step showTitle="false" v-alignment="ALIGN_MIDDLE">
|
||||
<title>Posting News</title>
|
||||
<title>News Sharing</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="line-height: 19px; padding: 0 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 40px;">
|
||||
When <b>posting a news</b> you can use some useful features:
|
||||
<div style="padding-top: 15px;">
|
||||
|
@ -110,7 +144,10 @@
|
|||
<div style="padding-top: 15px;">
|
||||
Finally, if you want <b>everyone in a group to be notified</b> about your update, select the +notification to members in the "Share with" dropdown menu.
|
||||
They will receive a notification about your post, unless they decided not to in their settings.
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding-top: 25px;">
|
||||
The tour is over, remember to click on the "Don't show this again" checkbox <b>located at the bottom of this window</b> to not make this popup appear in the future. Thank you for taking this tour.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
|
@ -118,38 +155,8 @@
|
|||
</bodies>
|
||||
<images>
|
||||
<image url="images/tour/5.jpg" />
|
||||
<image url="images/tour/7.jpg" />
|
||||
</images>
|
||||
</step>
|
||||
<step showTitle="false" v-alignment="ALIGN_MIDDLE">
|
||||
<title>Join New</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="padding-bottom: 40px;">
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 15px;">
|
||||
You can check the <b>virtual environments</b> and the communities available on the System by clicking on Join New in the menu of the Social Home page:
|
||||
</div>
|
||||
<div style="padding-bottom: 15px;">
|
||||
For each <b>virtual environment</b> you can ask to join.
|
||||
Your request will be reviewed by a responsible person in the related community and approved (depending on the scope of the community).
|
||||
</div>
|
||||
<div style="padding-bottom: 15px;">
|
||||
You will be notified whether your request will be approved or not via email. While the request is in the approval phase the related icon will be listed as pending.
|
||||
</div>
|
||||
</div>
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-top: 1px;">
|
||||
The tour is over, remember to click on the "Don't show this again" checkbox <b>located at the bottom of this window</b> to not make this popup appear in the future. Thank you for taking this tour.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
|
||||
</body>
|
||||
</bodies>
|
||||
<images>
|
||||
<image url="images/tour/6.jpg" />
|
||||
</images>
|
||||
</step>
|
||||
</step>
|
||||
</steps>
|
||||
</guidedtour>
|
|
@ -8,51 +8,87 @@
|
|||
<themecolor>BLUE</themecolor>
|
||||
<steps>
|
||||
<step showTitle="true" v-alignment="ALIGN_TOP">
|
||||
<title>Overview</title>
|
||||
<title>Generale</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 40px;">
|
||||
<b>Social Networking </b>
|
||||
and <b>Shared Workspace</b> services are features of this social collaboration portal you should know about.
|
||||
<div style="line-height: 19px; padding: 0 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 25px;">
|
||||
Questo portale offre tre caratteristiche per la collaborazione: <b>Ambienti Collaborativi</b>, servizi per <b>Social Networking</b> ed un <b>Workspace Condiviso</b>.
|
||||
</div>
|
||||
<div style="padding-bottom: 40px;"><b>Social networking</b> services realize a shared status wall where users can post messages and share links and files with their coworkers.</div>
|
||||
<div style="padding-bottom: 40px;">
|
||||
The <a href="/group/data-e-infrastructure-gateway/workspace" target="_blank"><b>Shared Workspace</b></a>, is a service for managing files in the cloud. Through the workspace you can manage, upload and delete files as you wish.
|
||||
You can <b>share folders</b> with any users you would so as to maximize collaboration among members.
|
||||
<div style="padding-bottom: 25px;">
|
||||
Gli <b>Ambienti Collaborativi</b> sono ambienti di lavoro che offrono servizi selezionati in aggiunta a quelli di Social Networking
|
||||
ed al workspace condiviso. Ogni ambiente serve una community.
|
||||
</div>
|
||||
<div style="padding-bottom: 25px;">
|
||||
I servizi di <b>Social networking</b> mettono a disposizione una bacheca virtuale dove gli utenti possono scrivere, condividere link e file tra di loro.</div>
|
||||
<div style="padding-bottom: 25px;">
|
||||
Il <a href="/group/data-e-infrastructure-gateway/workspace" target="_blank"><b>Workspace Condiviso</b></a>, è un servizio per gestire file nel Cloud.
|
||||
Attraverso esso puoi gestire, caricare e cancellare file come meglio credi.
|
||||
Puoi <b>condividere cartelle</b> con qualsiasi utente per massimizzare la collaborazione tra utenti.
|
||||
</div>
|
||||
<div style="padding-bottom: 10px;">
|
||||
Discover more about the Collaboration Facilities through this quick tour, click next.
|
||||
Scopri di più attraverso questo tour virtuale, clicca su Next.
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
</body>
|
||||
</bodies>
|
||||
<images>
|
||||
<image url="images/tour/1.png" />
|
||||
<image url="images/tour/1.jpg" />
|
||||
</images>
|
||||
</step>
|
||||
<step showTitle="false" v-alignment="ALIGN_MIDDLE">
|
||||
<title>Iscrizioni</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="padding-bottom: 40px;">
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 40px;">
|
||||
Puoi vedere gli <b>Ambienti Collaborativi</b> e le community disponibili nel Sistema cliccando su "Join New" nel menu sotto questa pagina.
|
||||
</div>
|
||||
<div style="padding-bottom: 40px;">
|
||||
Per ogni <b>Ambienti Collaborativo</b> puoi chiedere la sottoscrizione.
|
||||
La tua richiesta sarà assegnata ad una persona delegata dalla community ed approvata (a seconda dello scopo della community).
|
||||
</div>
|
||||
<div style="padding-bottom: 40px;">
|
||||
Sarai notificato sia che la richiesta venga approvata che no, via email.
|
||||
Mentre la richiesta si trova in fase di approvazione l'icona relativa sarà segnalata come pendente (Pending).
|
||||
</div>
|
||||
<div style="padding-bottom: 40px;">
|
||||
In casi particolari potresti essere aggiunto automaticamente ad un ambiente, se questo succede verrai notificato via email.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
|
||||
</body>
|
||||
</bodies>
|
||||
<images>
|
||||
<image url="images/tour/6.jpg" />
|
||||
</images>
|
||||
</step>
|
||||
<step showTitle="true" v-alignment="ALIGN_TOP">
|
||||
<title>The Dockbar</title>
|
||||
<title>La Dockbar</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="line-height: 19px; padding: 0 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 10px;">
|
||||
The Dockbar is <b>very important</b>, it is always on the top of the page and contains 4 icons (links) always accessible as shown in the figure.
|
||||
La Dockbar è <b>molto importante</b>, è sempre presente in alto e contiene 4 icone come mostrato in figura.
|
||||
</div>
|
||||
<div style="padding-bottom: 10px;">
|
||||
Each icon points to a <b>key application of the System</b>, please take few seconds to locate them (on your top-left corner of the page).
|
||||
<div style="padding-bottom: 5px;">
|
||||
Ogni icona punta ad una <b>applicazione del Sistema</b>, per favore prenditi qualche secondo per capire dove si trova la Dockbar (in alto alla tua sinistra)
|
||||
</div>
|
||||
<div style="padding-top: 10px;">
|
||||
<div style="padding-top: 5px;">
|
||||
<ul style="list-style-type: circle; padding-left: 10px;">
|
||||
<li><b>Home Social</b> is the page behind this tour and contains your personalized news feed;</li>
|
||||
<li><b>Workspace</b> is the application for sharing your data and for your private cloud storage;</li>
|
||||
<li><b>Messages</b> allows you to exchange private messages with the other users of the System;</li>
|
||||
<li><b>Notifications</b> keeps you up-to-date to what is happening and it is related to you. To know how to <b>tune/change how you get notified</b> see the next step.</b> </li>
|
||||
<li><b>Home Social</b> è la pagina dietro questo tour virtuale e contiene la tua bacheca personale (News Feed);</li>
|
||||
<li><b>Workspace</b> è l'applicazione per condividere i tuoi dati e per il tuo Cloud storage privato;</li>
|
||||
<li><b>Messages</b> permette di scambiare messaggi con gli altri utenti del sistema e di allegare grossi file dal workspace;</li>
|
||||
<li><b>Notifications</b> ti tiene aggiornato su cosa succede nel Sistema (relativo a te).
|
||||
Per conoscere e <b>personalizzare il modo in cui vieni notificato</b>, guarda lo step successivo.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div style="padding-top: 10px;">
|
||||
<b>Please note:</b> whenever you receive a new notification or message the related icon gets red.
|
||||
<div style="padding-top: 5px;">
|
||||
<b>Nota bene:</b> quando ricevi una nuova notifica o messagio l'icona relativa diventa rossa.
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
|
@ -63,13 +99,13 @@
|
|||
</images>
|
||||
</step>
|
||||
<step showTitle="false" v-alignment="ALIGN_MIDDLE">
|
||||
<title>Notification Settings</title>
|
||||
<title>Notifiche</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 10px;">
|
||||
To open the <b>Notification Settings</b> go to the <a href="/group/data-e-infrastructure-gateway/notifications" target="_blank">Notifications Page</a>
|
||||
and click Notification Settings (top-right). See the red rectangle in the figure to locate the settings.
|
||||
Per aprire le <b>Impostazioni di Notifica</b> vai alla pagina delle <a href="/group/data-e-infrastructure-gateway/notifications" target="_blank">Notifiche</a>
|
||||
e clicca "Notification Settings" come mostrato in figura nel rettangolo rosso.
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
|
@ -77,10 +113,11 @@
|
|||
<body><![CDATA[
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 20px;">
|
||||
<b>Notification Settings</b> are very <b>fine grained</b>. For each Notification generated by the System you can choose <b>whether to and how to</b> get notified.
|
||||
Le <b>impostazioni</b> sono molto <b>personalizzabili</b>. Per ogni tipo di Notifica generata dal Sistema puoi scegliere <b>se e come</b> essere notificato.
|
||||
</div>
|
||||
<div style="padding-bottom: 10px;">
|
||||
For each type of notification you can choose to be notified through this <b>portal</b>, via <b>email</b> or <b>none</b> by clicking off. By default almost all the notification types are set to ON.
|
||||
Per ogni tipo di Notifica puoi scegliere di essere notificato tramite questo <b>portale</b>, via <b>email</b> o <b>nessuna notifica</b> (cliccando OFF).
|
||||
Di default quasi tutte le notifiche sono impostate ad ON.
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
|
@ -92,25 +129,27 @@
|
|||
</images>
|
||||
</step>
|
||||
<step showTitle="false" v-alignment="ALIGN_MIDDLE">
|
||||
<title>Posting News</title>
|
||||
<title>Condividere News</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="line-height: 19px; padding: 0 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 40px;">
|
||||
When <b>posting a news</b> you can use some useful features:
|
||||
Quando <b>condividi una news</b> puoi usare queste utility:
|
||||
<div style="padding-top: 15px;">
|
||||
If you <b>paste a link</b> the System will try to create a preview of it.
|
||||
Se <b>incolli un link</b> il Sistema cercherà di crearne un'anteprima.
|
||||
</div>
|
||||
<div style="padding-top: 15px;">
|
||||
If you want to <b>post a file</b> instead use the attachment icon and pick the file from your disk.
|
||||
Per i <b>file</b> invece puoi usare l'icona di attachment.
|
||||
</div>
|
||||
<div style="padding-top: 15px;">
|
||||
You can also use the “@” to mention someone. In this case the mentioned user will receive a notification.
|
||||
</div>
|
||||
Puoi anche usare la “@” per <b>menzionare</b> qualcuno. In questo caso "qualcuno" riceverà una notifica :)</div>
|
||||
<div style="padding-top: 15px;">
|
||||
Finally, if you want <b>everyone in a group to be notified</b> about your update, select the +notification to members in the "Share with" dropdown menu.
|
||||
They will receive a notification about your post, unless they decided not to in their settings.
|
||||
</div>
|
||||
Inoltre, se vuoi che <b>ognuno nel gruppo sia notificato</b> a proposito del tuo post, seleziona la +notification to members nel "Share with" menu.
|
||||
Gli utenti saranno notificati via email a meno che abbiano deciso di no nelle loro impostazioni.
|
||||
</div>
|
||||
<div style="padding-top: 25px;">
|
||||
Il Tour è finito, ricorda di cliccare "Don't show this again" <b>qui in basso</b> per non far apparire questo popup in futuro. Grazie per aver seguito il tour virtuale.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
|
@ -118,28 +157,8 @@
|
|||
</bodies>
|
||||
<images>
|
||||
<image url="images/tour/5.jpg" />
|
||||
<image url="images/tour/7.jpg" />
|
||||
</images>
|
||||
</step>
|
||||
<step showTitle="false" v-alignment="ALIGN_MIDDLE">
|
||||
<title>Join New</title>
|
||||
<bodies>
|
||||
<body><![CDATA[
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-bottom: 15px;">
|
||||
You can check the <b>virtual environments</b> available on the System by clickin on Join New:
|
||||
</div>
|
||||
</div>
|
||||
<div style="line-height: 19px; padding: 10px; font-size: 14px; ">
|
||||
<div style="padding-top: 1px;">
|
||||
The tour is over, remember to click on the "Don't show this again" checkbox <b>located at the bottom of this window</b> to not make this popup appear in the future. Thank you for taking this tour.
|
||||
</div>
|
||||
</div>
|
||||
]]>
|
||||
</body>
|
||||
</bodies>
|
||||
<images>
|
||||
<image url="images/tour/5.jpg" />
|
||||
</images>
|
||||
</step>
|
||||
</step>
|
||||
</steps>
|
||||
</guidedtour>
|
|
@ -4,9 +4,6 @@
|
|||
<inherits name='com.google.gwt.user.User' />
|
||||
<!-- To Comment out -->
|
||||
<!-- <set-property name="user.agent" value="gecko1_8" /> -->
|
||||
<!-- We need the JUnit module in the main module, -->
|
||||
<!-- otherwise eclipse complains (Google plugin bug?) -->
|
||||
<inherits name='com.google.gwt.junit.JUnit' />
|
||||
<!-- inherits GCUBE Quick tour -->
|
||||
<inherits name='org.gcube.portlets.widgets.guidedtour.GuidedTour' />
|
||||
<!-- Other module inherits -->
|
||||
|
|
|
@ -12,11 +12,7 @@
|
|||
<servlet-name>greetServlet</servlet-name>
|
||||
<url-pattern>/myvres/greet</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet>
|
||||
<servlet-name>jUnitHostImpl</servlet-name>
|
||||
<servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class>
|
||||
</servlet>
|
||||
|
||||
|
||||
<!-- Quick Tour -->
|
||||
<servlet>
|
||||
<servlet-name>quicktourServlet</servlet-name>
|
||||
|
@ -28,21 +24,6 @@
|
|||
<url-pattern>/myvres/quicktourServlet</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>jUnitHostImpl</servlet-name>
|
||||
<url-pattern>/myvres/junithost/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>greetServlet</servlet-name>
|
||||
<url-pattern>/org.gcube.portlet.user.my_vres.MyVREsJUnit/myvres/greet</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>jUnitHostImpl</servlet-name>
|
||||
<url-pattern>/org.gcube.portlet.user.my_vres.MyVREsJUnit/junithost/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- Default page to serve -->
|
||||
<welcome-file-list>
|
||||
<welcome-file>MyVREs.html</welcome-file>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
Binary file not shown.
Before Width: | Height: | Size: 154 KiB |
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
|
@ -1,74 +0,0 @@
|
|||
package org.gcube.portlet.user.my_vres.client;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.junit.client.GWTTestCase;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.google.gwt.user.client.rpc.ServiceDefTarget;
|
||||
|
||||
/**
|
||||
* GWT JUnit <b>integration</b> tests must extend GWTTestCase.
|
||||
* Using <code>"GwtTest*"</code> naming pattern exclude them from running with
|
||||
* surefire during the test phase.
|
||||
*
|
||||
* If you run the tests using the Maven command line, you will have to
|
||||
* navigate with your browser to a specific url given by Maven.
|
||||
* See http://mojo.codehaus.org/gwt-maven-plugin/user-guide/testing.html
|
||||
* for details.
|
||||
*/
|
||||
public class GwtTestMyVREs extends GWTTestCase {
|
||||
|
||||
/**
|
||||
* Must refer to a valid module that sources this class.
|
||||
*/
|
||||
public String getModuleName() {
|
||||
return "org.gcube.portlet.user.my_vres.MyVREsJUnit";
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the FieldVerifier.
|
||||
*/
|
||||
public void testFieldVerifier() {
|
||||
// assertFalse(FieldVerifier.isValidName(null));
|
||||
// assertFalse(FieldVerifier.isValidName(""));
|
||||
// assertFalse(FieldVerifier.isValidName("a"));
|
||||
// assertFalse(FieldVerifier.isValidName("ab"));
|
||||
// assertFalse(FieldVerifier.isValidName("abc"));
|
||||
// assertTrue(FieldVerifier.isValidName("abcd"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This test will send a request to the server using the greetServer method in
|
||||
* MyVREsService and verify the response.
|
||||
*/
|
||||
public void testGreetingService() {
|
||||
// Create the service that we will test.
|
||||
MyVREsServiceAsync greetingService = GWT.create(MyVREsService.class);
|
||||
ServiceDefTarget target = (ServiceDefTarget) greetingService;
|
||||
target.setServiceEntryPoint(GWT.getModuleBaseURL() + "MyVREs/greet");
|
||||
|
||||
// Since RPC calls are asynchronous, we will need to wait for a response
|
||||
// after this test method returns. This line tells the test runner to wait
|
||||
// up to 10 seconds before timing out.
|
||||
delayTestFinish(10000);
|
||||
|
||||
// Send a request to the server.
|
||||
// greetingService.greetServer("GWT User", new AsyncCallback<String>() {
|
||||
// public void onFailure(Throwable caught) {
|
||||
// // The request resulted in an unexpected error.
|
||||
// fail("Request failure: " + caught.getMessage());
|
||||
// }
|
||||
//
|
||||
// public void onSuccess(String result) {
|
||||
// // Verify that the response is correct.
|
||||
// assertTrue(result.startsWith("Hello, GWT User!"));
|
||||
//
|
||||
// // Now that we have received a response, we need to tell the test runner
|
||||
// // that the test is complete. You must call finishTest() after an
|
||||
// // asynchronous test finishes successfully, or the test will time out.
|
||||
// finishTest();
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module>
|
||||
<!-- Inherit our applications main module. -->
|
||||
<inherits name='org.gcube.portlet.user.my_vres.MyVREs' />
|
||||
|
||||
<!-- Specify the path to any remote services. -->
|
||||
<servlet path="/myvres/greet" class="org.gcube.portlet.user.my_vres.server.MyVREsServiceImpl" />
|
||||
|
||||
</module>
|
Loading…
Reference in New Issue