Class RMTargetContext
java.lang.Object
org.gcube.resourcemanagement.context.TargetContext
org.gcube.resourcemanagement.context.RMTargetContext
public class RMTargetContext
extends org.gcube.resourcemanagement.context.TargetContext
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
Fields inherited from class org.gcube.resourcemanagement.context.TargetContext
client, context, contextCache, contextFullPath, secret, uuid -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for RMTargetContextRMTargetContext(String contextFullPath) Create RMTargetContext from a context full pathRMTargetContext(UUID uuid) Create RMTargetContext from a context UUIDRMTargetContext(org.gcube.informationsystem.contexts.reference.entities.Context context) Create RMTargetContext from a Context object -
Method Summary
Methods inherited from class org.gcube.resourcemanagement.context.TargetContext
getContext, getContextFullPath, getUUID, init, setContext, setContextFullPath, setSecret, setUUID
-
Constructor Details
-
RMTargetContext
public RMTargetContext()Default constructor for RMTargetContext -
RMTargetContext
public RMTargetContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException Create RMTargetContext from a context UUID- Parameters:
uuid- the UUID of the context- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException- if the context is not foundorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if there's an error in the resource registry
-
RMTargetContext
public RMTargetContext(String contextFullPath) throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException Create RMTargetContext from a context full path- Parameters:
contextFullPath- the full path of the context- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException- if the context is not foundorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if there's an error in the resource registry
-
RMTargetContext
public RMTargetContext(org.gcube.informationsystem.contexts.reference.entities.Context context) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException Create RMTargetContext from a Context object- Parameters:
context- the Context object- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if there's an error in the resource registry
-
-
Method Details
-
getSecret
public org.gcube.common.security.secrets.Secret getSecret()- Overrides:
getSecretin classorg.gcube.resourcemanagement.context.TargetContext
-