|
|
|
@ -56,6 +56,7 @@ import org.gcube.vremanagement.resourcemanager.client.proxies.Proxies;
|
|
|
|
|
* <a href="https://gcube.wiki.gcube-system.org/gcube/index.php/Programmatic_Administration_Interface">
|
|
|
|
|
* official wiki</a>.
|
|
|
|
|
* @author Daniele Strollo (ISTI-CNR)
|
|
|
|
|
* @author Massimiliano Assante (ISTI-CNR)
|
|
|
|
|
*/
|
|
|
|
|
public abstract class AbstractResourceManager {
|
|
|
|
|
private String id = null;
|
|
|
|
@ -231,6 +232,11 @@ public abstract class AbstractResourceManager {
|
|
|
|
|
LOG_PREFIX,
|
|
|
|
|
"[BIND-SCOPE-ENTER] Adding " + this.getType() + " " + this.getID() + " to scope [" +
|
|
|
|
|
targetScope.toString() + "]");
|
|
|
|
|
|
|
|
|
|
System.out.println("***\n\n[BIND-SCOPE-ENTER] Adding " + this.getType() + " " + this.getID() + " to scope [" +
|
|
|
|
|
targetScope.toString() + "]");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String curr = ScopeProvider.instance.get();
|
|
|
|
|
ScopeProvider.instance.set(targetScope.toString());
|
|
|
|
|
|
|
|
|
@ -254,6 +260,8 @@ public abstract class AbstractResourceManager {
|
|
|
|
|
ScopeProvider.instance.set(scope.enclosingScope().toString());
|
|
|
|
|
} else
|
|
|
|
|
ScopeProvider.instance.set(targetScope);
|
|
|
|
|
System.out.println("***\n\nCalling manager.addResources(addParam) addParam.toString()=" + addParam.toString());
|
|
|
|
|
|
|
|
|
|
String reportID = manager.addResources(addParam);
|
|
|
|
|
|
|
|
|
|
ServerConsole.trace(
|
|
|
|
@ -261,6 +269,9 @@ public abstract class AbstractResourceManager {
|
|
|
|
|
"[BIND-SCOPE-EXIT] Applyed Adding " + this.getType() + " " + this.getID() + " to scope [" +
|
|
|
|
|
targetScope.toString() + "]... reportID: " + reportID);
|
|
|
|
|
|
|
|
|
|
System.out.println("***\n\n[BIND-SCOPE-EXIT] Applyed Adding " + this.getType() + " " + this.getID() + " to scope [" +
|
|
|
|
|
targetScope.toString() + "]... reportID: " + reportID);
|
|
|
|
|
|
|
|
|
|
RMReportingLibrary pt = this.getReportResourceManager(scope.toString());
|
|
|
|
|
|
|
|
|
|
String toReturn = pt.getReport(reportID);
|
|
|
|
@ -271,6 +282,7 @@ public abstract class AbstractResourceManager {
|
|
|
|
|
ServerConsole.trace(
|
|
|
|
|
LOG_PREFIX,
|
|
|
|
|
"[BIND-SCOPE-EXIT] [FAILURE]");
|
|
|
|
|
System.out.println("***[BIND-SCOPE-EXIT] [FAILURE]" +e.getMessage());
|
|
|
|
|
throw new ResourceOperationException("During resource::addToScope: "+ targetScope + " Message: \n" + e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|