Class TargetContext
java.lang.Object
org.gcube.resourcemanagement.context.TargetContext
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.gcube.informationsystem.resourceregistry.client.ResourceRegistryClientprotected org.gcube.informationsystem.contexts.reference.entities.Contextprotected org.gcube.informationsystem.resourceregistry.api.contexts.ContextCacheprotected Stringprotected org.gcube.common.security.secrets.Secretprotected UUID -
Constructor Summary
ConstructorsConstructorDescriptionTargetContext(String contextFullPath) TargetContext(UUID uuid) TargetContext(org.gcube.informationsystem.contexts.reference.entities.Context context) The provided context must be part of a tree of contexts -
Method Summary
Modifier and TypeMethodDescriptionorg.gcube.informationsystem.contexts.reference.entities.Contextorg.gcube.common.security.secrets.SecretgetUUID()protected voidinit()voidsetContext(org.gcube.informationsystem.contexts.reference.entities.Context context) voidsetContextFullPath(String contextFullPath) voidsetSecret(org.gcube.common.security.secrets.Secret secret) void
-
Field Details
-
client
protected org.gcube.informationsystem.resourceregistry.client.ResourceRegistryClient client -
contextCache
protected org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache contextCache -
contextFullPath
-
uuid
-
context
protected org.gcube.informationsystem.contexts.reference.entities.Context context -
secret
protected org.gcube.common.security.secrets.Secret secret
-
-
Constructor Details
-
TargetContext
public TargetContext() -
TargetContext
public TargetContext(org.gcube.informationsystem.contexts.reference.entities.Context context) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException The provided context must be part of a tree of contexts- Parameters:
context-- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
TargetContext
public TargetContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
TargetContext
public TargetContext(String contextFullPath) throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-
Method Details
-
init
protected void init() -
getUUID
-
setUUID
-
getContextFullPath
-
setContextFullPath
-
getContext
public org.gcube.informationsystem.contexts.reference.entities.Context getContext() -
setContext
public void setContext(org.gcube.informationsystem.contexts.reference.entities.Context context) -
getSecret
public org.gcube.common.security.secrets.Secret getSecret() -
setSecret
public void setSecret(org.gcube.common.security.secrets.Secret secret)
-