ref 18964: Create a Generic Resource to record Dismissed VREs

https://support.d4science.org/issues/18964

Create a library to support the resource access
This commit is contained in:
Giancarlo Panichi 2020-04-01 17:55:46 +02:00
parent 02ee44074d
commit ac4486f7e2
1 changed files with 10 additions and 2 deletions

View File

@ -36,10 +36,19 @@ public class DetachedREsClient {
public DetachedREs getDetachedREs() throws Exception {
retrieveAuthInfo();
logger.debug("Use: [userName={}, scope={}, token={}]",userName,scope,token);
return DetachedREsBuilder.build(scope);
}
public DetachedREs getDetachedREsInScope(String scope) throws Exception {
retrieveAuthInfo();
this.scope=scope;
logger.debug("Use: [userName={}, scope={}, token={}]",userName,scope,token);
return DetachedREsBuilder.build(scope);
}
private void retrieveAuthInfo() throws Exception {
if (Constants.DEBUG_MODE) {
logger.debug("Debug Mode");
@ -66,8 +75,7 @@ public class DetachedREsClient {
}
logger.debug("Use: [userName={}, scope={}, token={}]",userName,scope,token);
}
}