diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component index e41db7d..cfa24b9 100644 --- a/.settings/org.eclipse.wst.common.component +++ b/.settings/org.eclipse.wst.common.component @@ -1,5 +1,6 @@ - + + @@ -7,7 +8,8 @@ - + + @@ -15,7 +17,8 @@ - + + @@ -23,7 +26,8 @@ - + + @@ -31,7 +35,8 @@ - + + @@ -39,7 +44,8 @@ - + + @@ -47,10 +53,8 @@ - - uses - - + + @@ -58,13 +62,15 @@ - + + - + + @@ -72,7 +78,8 @@ - + + diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java index 274cda5..6b5f82a 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java @@ -49,7 +49,7 @@ public class GeoPortalDataEntryApp implements EntryPoint { /** * Create a remote service proxy to talk to the server-side Greeting service. */ - private final GreetingServiceAsync greetingService = GWT.create(GreetingService.class); + private final GeoportalDataEntryServiceAsync greetingService = GWT.create(GeoportalDataEntryService.class); private final HandlerManager appManagerBus = new HandlerManager(null); @@ -73,7 +73,7 @@ public class GeoPortalDataEntryApp implements EntryPoint { geoNaMainForm = new GeonaDataEntryMainForm(appManagerBus); - GreetingServiceAsync.Util.getInstance().getGeonaInitConfig(new AsyncCallback() { + GeoportalDataEntryServiceAsync.Util.getInstance().getGeonaInitConfig(new AsyncCallback() { @Override public void onFailure(Throwable caught) { @@ -205,7 +205,7 @@ public class GeoPortalDataEntryApp implements EntryPoint { loader.setText("Trying to save the data, please wait..."); modal.add(loader); - GreetingServiceAsync.Util.getInstance().saveGeonaDataForms(saveGeonaDataFormsEvent.getListGeonaDataForms(), new AsyncCallback() { + GeoportalDataEntryServiceAsync.Util.getInstance().saveGeonaDataForms(saveGeonaDataFormsEvent.getListGeonaDataForms(), new AsyncCallback() { @Override public void onFailure(Throwable caught) { diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GreetingService.java b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoportalDataEntryService.java similarity index 83% rename from src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GreetingService.java rename to src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoportalDataEntryService.java index 62fa8d2..07e255f 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GreetingService.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoportalDataEntryService.java @@ -12,8 +12,8 @@ import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for the RPC service. */ -@RemoteServiceRelativePath("greet") -public interface GreetingService extends RemoteService { +@RemoteServiceRelativePath("geoportaldataentryservice") +public interface GeoportalDataEntryService extends RemoteService { CommitReport saveGeonaDataForms(List listGeonaFormObjects) throws Exception; diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GreetingServiceAsync.java b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoportalDataEntryServiceAsync.java similarity index 76% rename from src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GreetingServiceAsync.java rename to src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoportalDataEntryServiceAsync.java index 08ba377..e4cba31 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GreetingServiceAsync.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoportalDataEntryServiceAsync.java @@ -9,7 +9,7 @@ import org.gcube.portlets.user.geoportaldataentry.shared.GeonaISConfig; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; -public interface GreetingServiceAsync +public interface GeoportalDataEntryServiceAsync { /** @@ -17,13 +17,13 @@ public interface GreetingServiceAsync */ public static final class Util { - private static GreetingServiceAsync instance; + private static GeoportalDataEntryServiceAsync instance; - public static final GreetingServiceAsync getInstance() + public static final GeoportalDataEntryServiceAsync getInstance() { if ( instance == null ) { - instance = (GreetingServiceAsync) GWT.create( GreetingService.class ); + instance = (GeoportalDataEntryServiceAsync) GWT.create( GeoportalDataEntryService.class ); } return instance; } diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataentry/server/GreetingServiceImpl.java b/src/main/java/org/gcube/portlets/user/geoportaldataentry/server/GeoportalDataEntryServiceImpl.java similarity index 97% rename from src/main/java/org/gcube/portlets/user/geoportaldataentry/server/GreetingServiceImpl.java rename to src/main/java/org/gcube/portlets/user/geoportaldataentry/server/GeoportalDataEntryServiceImpl.java index 590f00e..27073d1 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataentry/server/GreetingServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataentry/server/GeoportalDataEntryServiceImpl.java @@ -15,7 +15,7 @@ import org.gcube.application.geoportal.model.concessioni.RelazioneScavo; import org.gcube.application.geoportal.model.content.UploadedImage; import org.gcube.application.geoportal.model.content.WorkspaceContent; import org.gcube.portlets.user.geoportaldataentry.client.ConcessioniFormCardTitle; -import org.gcube.portlets.user.geoportaldataentry.client.GreetingService; +import org.gcube.portlets.user.geoportaldataentry.client.GeoportalDataEntryService; import org.gcube.portlets.user.geoportaldataentry.shared.CommitReport; import org.gcube.portlets.user.geoportaldataentry.shared.CommitReport.STATE; import org.gcube.portlets.user.geoportaldataentry.shared.GeoNaFormDataObject; @@ -32,10 +32,10 @@ import com.google.gwt.user.server.rpc.RemoteServiceServlet; * The server side implementation of the RPC service. */ @SuppressWarnings("serial") -public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { +public class GeoportalDataEntryServiceImpl extends RemoteServiceServlet implements GeoportalDataEntryService { public static final String GEONA_GENERIC_RESOURCE_SECONDARY_TYPE = "GEONA_GENERIC_RESOURCE_SECONDARY_TYPE"; - private static final Logger LOG = LoggerFactory.getLogger(GreetingServiceImpl.class); + private static final Logger LOG = LoggerFactory.getLogger(GeoportalDataEntryServiceImpl.class); @Override public CommitReport saveGeonaDataForms(List listGeonaFormObjects) throws Exception { diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 739b165..eed5b89 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -6,8 +6,8 @@ version="3.0"> - greetServlet - org.gcube.portlets.user.geoportaldataentry.server.GreetingServiceImpl + geoportalDataEntryServlet + org.gcube.portlets.user.geoportaldataentry.server.GeoportalDataEntryServiceImpl @@ -21,8 +21,8 @@ - greetServlet - /GeoPortalDataEntryApp/greet + geoportalDataEntryServlet + /GeoPortalDataEntryApp/geoportaldataentryservice