public interface MetadataManager
MetadataProvider and EntityMetadataProvider components in
the application and the MetadataKey of the MetadataKeyProvider components, using it's ComponentId
It also provides access to the MetadataKey associated to a configuration through the operations
and sources that belong to that configuration.| Modifier and Type | Method and Description |
|---|---|
void |
disposeCache(String id)
Removes the
MetadataCache with the specified id. |
MetadataResult<MetadataKeysContainer> |
getEntityKeys(ComponentId componentId)
Returns the list of entity types that can be queried in an
EntityMetadataProvider component
identified by the ComponentId. |
MetadataResult<TypeMetadataDescriptor> |
getEntityMetadata(ComponentId componentId,
MetadataKey key)
Resolves an entity
TypeMetadataDescriptor for the EntityMetadataProvider component identified by the
ComponentId. |
MetadataResult<ComponentMetadataDescriptor> |
getMetadata(ComponentId componentId)
Resolves the
ComponentMetadataDescriptor for the MetadataProvider Component identified by the
ComponentId using only the static types of its parameters, attributes and output. |
MetadataResult<ComponentMetadataDescriptor> |
getMetadata(ComponentId componentId,
MetadataKey key)
Resolves the
ComponentMetadataDescriptor for the MetadataProvider Component identified by the
ComponentId using both static and dynamic resolving of the parameters, attributes and output types. |
MetadataResult<MetadataKeysContainer> |
getMetadataKeys(ComponentId componentId)
Returns the list of types that can be described by the
MetadataKeysResolver associated to the
MetadataKeyProvider Component identified by the ComponentId. |
MetadataResult<MetadataKeysContainer> getMetadataKeys(ComponentId componentId)
MetadataKeysResolver associated to the
MetadataKeyProvider Component identified by the ComponentId.componentId - the id of the MetadataKeyProvider component to query for its available keysMetadataResult if the keys are successfully resolved Failure MetadataResult if there is an
error while resolving the keysMetadataResult<ComponentMetadataDescriptor> getMetadata(ComponentId componentId)
ComponentMetadataDescriptor for the MetadataProvider Component identified by the
ComponentId using only the static types of its parameters, attributes and output.componentId - the id of the MetadataProvider component to query for its available keysComponentMetadataDescriptor with the static Metadata representation of the Component. Successful
MetadataResult if the Metadata is successfully retrieved Failure MetadataResult when the Metadata
retrieval of any element fails for any reasonMetadataResult<ComponentMetadataDescriptor> getMetadata(ComponentId componentId, MetadataKey key)
ComponentMetadataDescriptor for the MetadataProvider Component identified by the
ComponentId using both static and dynamic resolving of the parameters, attributes and output types.
If the component has a MetadataContentResolver or MetadataOutputResolver associated that can be used to
resolve the dynamic MetadataType for the Content or Output, then the ComponentMetadataDescriptor will contain
those dynamic types instead of the static types declaration.
When neither Content nor Output have dynamic types, then invoking this method is the same as invoking
this#getMetadata
componentId - the id of the MetadataProvider component to query for its available keyskey - MetadataKey of the type which's structure has to be resolved, used both for input and output typesMetadataResult of ComponentMetadataDescriptor type with Successful MetadataResult if the
Metadata is successfully retrieved and a Failed MetadataResult when the Metadata retrieval of any element
fails for any reasonvoid disposeCache(String id)
MetadataCache with the specified id.id - the id of the cache to be removedMetadataResult<MetadataKeysContainer> getEntityKeys(ComponentId componentId)
EntityMetadataProvider component
identified by the ComponentId.componentId - the id of the EntityMetadataProvider component to query for its available keysMetadataResult if the keys are successfully resolved Failure MetadataResult if there is an
error while resolving the entity keysMetadataResult<TypeMetadataDescriptor> getEntityMetadata(ComponentId componentId, MetadataKey key)
TypeMetadataDescriptor for the EntityMetadataProvider component identified by the
ComponentId.componentId - the id of the EntityMetadataProvider component to query for its available keyskey - MetadataKey representing an entity of the type which's structure has to be resolvedMetadataResult of TypeMetadataDescriptor type with a successful MetadataResult if the
metadata is successfully retrieved and a failed MetadataResult when the metadata retrieval of the entity
had a problem.Copyright © 2016 MuleSoft, Inc.. All rights reserved.