Working on Feature #9760: WS-Thredds synch folder integration
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@154678 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
992ae01887
commit
df6d5a520b
|
@ -219,6 +219,7 @@ public class DialogPublishOnThredds extends Dialog {
|
|||
@Override
|
||||
public void onSuccess(TransferOnThreddsReport result) {
|
||||
GWT.log("Publishing on Thredds return: "+result);
|
||||
InfoDisplay.display("Transferring on Thredds", "Transferring started correclty...");
|
||||
if(result!=null){
|
||||
pollingStart(result);
|
||||
}
|
||||
|
|
|
@ -4179,12 +4179,20 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
|||
|
||||
long userId = user.getUserId();
|
||||
|
||||
if (isTestMode())
|
||||
userId = 21150; //USER ID OF FRANCESCo
|
||||
|
||||
// Instanciate the manager
|
||||
GroupManager groupManager = new LiferayGroupManager();
|
||||
List<GcubeVRE> listOfVres = new ArrayList<GcubeVRE>();
|
||||
|
||||
|
||||
if (isTestMode()){
|
||||
userId = 21150; //USER ID OF FRANCESCO
|
||||
listOfVres.add(new GcubeVRE("devVRE", "/gcube/devsec/devVRE"));
|
||||
listOfVres.add(new GcubeVRE("NextNext", "/gcube/devNext/NextNext"));
|
||||
return listOfVres;
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
List<GCubeGroup> listOfGroups = groupManager.listGroupsByUser(userId);
|
||||
|
|
|
@ -106,11 +106,9 @@ public class PublishOnThredds {
|
|||
|
||||
|
||||
}catch(WorkspaceException | HomeNotFoundException | InternalErrorException | UserNotFoundException e){
|
||||
System.err.println("WORKSPACE EXC ");
|
||||
logger.error("WORKSPACE EXC ", e);
|
||||
setStatusOnTransferId(transferId, true, "Sorry, an error has occurred during getting workspace for user: "+e.getMessage(), false);
|
||||
}catch(Exception e){
|
||||
System.err.println("UNEXPECTED EXC");
|
||||
logger.error("UNEXPECTED EXC ", e);
|
||||
setStatusOnTransferId(transferId, true, "Sorry, an unexpected error has occurred during getting workspace for user", false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue