Fixed Final and Lock error
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@100280 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f9a1f03b6a
commit
a6fb69823a
|
@ -6,6 +6,8 @@ import java.util.HashMap;
|
|||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTIsFinalException;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTIsLockedException;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.licenses.LicenceData;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.share.Contacts;
|
||||
|
@ -118,8 +120,6 @@ public class TabularResourceProperties extends FramedPanel {
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void addTabularResource() {
|
||||
trFieldSet = new FieldSet();
|
||||
trFieldSet.setHeadingText("Tabular Resource");
|
||||
|
@ -180,7 +180,6 @@ public class TabularResourceProperties extends FramedPanel {
|
|||
storeCombo = new ListStore<LicenceData>(propsLicenceData.id());
|
||||
storeCombo.addAll(licencesList);
|
||||
|
||||
|
||||
comboLicences = new ComboBox<LicenceData>(storeCombo,
|
||||
propsLicenceData.licence());
|
||||
comboLicences.setMinListWidth(250);
|
||||
|
@ -292,6 +291,7 @@ public class TabularResourceProperties extends FramedPanel {
|
|||
UtilsGXT3.alert("Error",
|
||||
"Error retrieving licences.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void onSuccess(ArrayList<LicenceData> result) {
|
||||
|
@ -451,14 +451,20 @@ public class TabularResourceProperties extends FramedPanel {
|
|||
if (caught instanceof TDGWTSessionExpiredException) {
|
||||
eventBus.fireEvent(new SessionExpiredEvent(
|
||||
SessionExpiredType.EXPIREDONSERVER));
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsLockedException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error Locked",
|
||||
caught.getLocalizedMessage());
|
||||
} else {
|
||||
Log.error("Error retrienving properties: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert(
|
||||
"Error",
|
||||
UtilsGXT3.alert("Error",
|
||||
"Error retrienving properties: "
|
||||
+ caught.getLocalizedMessage());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
@ -479,6 +485,11 @@ public class TabularResourceProperties extends FramedPanel {
|
|||
if (caught instanceof TDGWTSessionExpiredException) {
|
||||
eventBus.fireEvent(new SessionExpiredEvent(
|
||||
SessionExpiredType.EXPIREDONSERVER));
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsLockedException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error Locked",
|
||||
caught.getLocalizedMessage());
|
||||
} else {
|
||||
Log.error("Error retrienving Share Informations: "
|
||||
+ caught.getLocalizedMessage());
|
||||
|
@ -487,6 +498,7 @@ public class TabularResourceProperties extends FramedPanel {
|
|||
+ caught.getLocalizedMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
@ -505,15 +517,20 @@ public class TabularResourceProperties extends FramedPanel {
|
|||
if (caught instanceof TDGWTSessionExpiredException) {
|
||||
eventBus.fireEvent(new SessionExpiredEvent(
|
||||
SessionExpiredType.EXPIREDONSERVER));
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsLockedException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error Locked",
|
||||
caught.getLocalizedMessage());
|
||||
} else {
|
||||
Log.error("Error retrienving Last Table: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert(
|
||||
"Error",
|
||||
UtilsGXT3.alert("Error",
|
||||
"Error retrienving Last Table: "
|
||||
+ caught.getLocalizedMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
@ -580,14 +597,27 @@ public class TabularResourceProperties extends FramedPanel {
|
|||
if (caught instanceof TDGWTSessionExpiredException) {
|
||||
eventBus.fireEvent(new SessionExpiredEvent(
|
||||
SessionExpiredType.EXPIREDONSERVER));
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsLockedException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error Locked",
|
||||
caught.getLocalizedMessage());
|
||||
} else {
|
||||
if (caught instanceof TDGWTIsFinalException) {
|
||||
Log.error(caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error Final",
|
||||
caught.getLocalizedMessage());
|
||||
} else {
|
||||
Log.error("Error Setting Tabular Resoruce Properties: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error",
|
||||
UtilsGXT3
|
||||
.alert("Error",
|
||||
"Error setting tabular resource properties: "
|
||||
+ caught.getLocalizedMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onSuccess(Void result) {
|
||||
Log.debug("Tabular Resource properties are set: "
|
||||
|
|
Loading…
Reference in New Issue