/** * Locates name of the entity for the given alias. * * @param entityAlias to load entityId for * @return entityId or null if not found * @throws MetadataProviderException provider in case alias is not unique or missing */ public String getEntityIdForAlias(String entityAlias) throws MetadataProviderException { return getFromCacheOrUpdate(aliasCache, entityAlias, aliasLoader); }
/** * In case entity exists in the cache it is returned, otherwise mechanism from the super class is used to locate it. * * @param entityID id to load extended metadata for * @return entity descriptor or null if not found * @throws MetadataProviderException provider */ @Override public ExtendedMetadata getExtendedMetadata(String entityID) throws MetadataProviderException { return getFromCacheOrUpdate(extendedMetadataCache, entityID, extendedLoader); }
/** * In case entity exists in the cache it is returned, otherwise mechanism from the super class is used to locate it. * * @param entityID id to load descriptor for * @return entity descriptor or null if not found * @throws MetadataProviderException provider */ @Override public EntityDescriptor getEntityDescriptor(String entityID) throws MetadataProviderException { return getFromCacheOrUpdate(basicMetadataCache, entityID, entityLoader); }
/** * Locates entity descriptor whose entityId SHA-1 hash equals the one in the parameter. * * @param hash hash of the entity descriptor * @return found descriptor or null */ @Override public EntityDescriptor getEntityDescriptor(byte[] hash) throws MetadataProviderException { return getFromCacheOrUpdate(hashMetadataCache, hash, entityHashLoader); }