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

    Constructors
    Constructor
    Description
    Default constructor for RMTargetContext
    RMTargetContext(String contextFullPath)
    Create RMTargetContext from a context full path
    Create RMTargetContext from a context UUID
    RMTargetContext(org.gcube.informationsystem.contexts.reference.entities.Context context)
    Create RMTargetContext from a Context object
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gcube.common.security.secrets.Secret
     

    Methods inherited from class org.gcube.resourcemanagement.context.TargetContext

    getContext, getContextFullPath, getUUID, init, setContext, setContextFullPath, setSecret, setUUID

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 found
      org.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 found
      org.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:
      getSecret in class org.gcube.resourcemanagement.context.TargetContext