uncomment manager.commit to geoportal-logic

This commit is contained in:
francesco 2020-10-20 17:43:47 +02:00
parent 5e480535db
commit 88ff360a99
3 changed files with 13 additions and 12 deletions

View File

@ -9,4 +9,6 @@ public class ConstantsGeoPortalDataEntryApp {
public static final String TIME_FORMAT = ConstantsMPFormBuilder.TIME_FORMAT;
public static final String HOURS_MINUTES_SEPARATOR = ConstantsMPFormBuilder.HOURS_MINUTES_SEPARATOR;
public static final String FILE_UPLOADED_SESSION_ATTR = ConstantsMPFormBuilder.FILE_UPLOADED_SESSION_ATTR;
}

View File

@ -13,6 +13,7 @@ import org.gcube.application.geoportal.model.concessioni.Concessione;
import org.gcube.application.geoportal.model.concessioni.LayerConcessione;
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.shared.GeoNaFormDataObject;
@ -158,17 +159,17 @@ public class GreetingServiceImpl extends RemoteServiceServlet implements Greetin
*scrittura sul WS
*pubblicazione sull'SDI (boolean publish)
*scrittura sul DB di applicazione sia dei meta che dei vari link */
// Concessione registered=manager.commit(publish);
//
// LOG.info("Registered: "+registered);
// String link = null;
// try {
// link = ((WorkspaceContent)registered.getRelazioneScavo().getActualContent().get(0)).getLink();
// }catch (Exception e) {
// // TODO: handle exception
// }
Concessione registered=manager.commit(publish);
String link = "toTest";
LOG.info("Registered: "+registered);
String link = null;
try {
link = ((WorkspaceContent)registered.getRelazioneScavo().getActualContent().get(0)).getLink();
}catch (Exception e) {
// TODO: handle exception
}
//String link = "toTest";
if(link!=null)
return "Project saved successfully";

View File

@ -19,8 +19,6 @@ import org.slf4j.LoggerFactory;
import com.liferay.portal.service.UserLocalServiceUtil;
// TODO: Auto-generated Javadoc
/**
* The Class SessionUtil.
*