|
void | outputStatus (std::ostream &os) const |
| Generate an XML representation of the provider's status.
|
|
void | emitChangeEvent () const |
| Convenience method for notifying every registered Observer of an event.
|
|
void | emitChangeEvent (const EntityDescriptor &) const |
| Convenience method for notifying every registered Observer of an event.
|
|
std::pair< const
EntityDescriptor *, const
RoleDescriptor * > | getEntityDescriptor (const Criteria &criteria) const |
| Gets entity metadata based on supplied criteria.
|
|
const EntitiesDescriptor * | getEntitiesDescriptor (const char *name, bool requireValidMetadata=true) const |
| Gets the metadata for a given group of entities.
|
|
const xmltooling::Credential * | resolve (const xmltooling::CredentialCriteria *criteria=nullptr) const |
|
std::vector< const
xmltooling::Credential * >
::size_type | resolve (std::vector< const xmltooling::Credential * > &results, const xmltooling::CredentialCriteria *criteria=nullptr) const |
|
virtual void | addObserver (const Observer *newObserver) const |
| Adds a metadata observer.
|
|
virtual const Observer * | removeObserver (const Observer *oldObserver) const |
| Removes a metadata observer.
|
|
virtual | ~MetadataProvider () |
| Destructor will delete any installed filters.
|
|
virtual const char * | getId () const |
| Returns an identifier for the provider for logging/status purposes.
|
|
virtual void | addMetadataFilter (MetadataFilter *newFilter) |
| Adds a metadata filter to apply to any resolved metadata.
|
|
virtual MetadataFilter * | removeMetadataFilter (MetadataFilter *oldFilter) |
| Removes a metadata filter.
|
|
void | setContext (const MetadataFilterContext *ctx) |
| Sets a filtering context object for use by the filtering process.
|
|
virtual void | init ()=0 |
| Should be called after instantiating provider and adding filters, but before performing any lookup operations.
|
|
virtual const
xmltooling::XMLObject * | getMetadata () const =0 |
| Gets the entire metadata tree, after the registered filter has been applied.
|
|
virtual const EntitiesDescriptor * | getEntitiesDescriptor (const XMLCh *name, bool requireValidMetadata=true) const |
| Gets the metadata for a given group of entities.
|
|
|
| AbstractMetadataProvider (const xercesc::DOMElement *e=nullptr) |
| Constructor.
|
|
virtual void | indexEntity (EntityDescriptor *site, time_t &validUntil, bool replace=false) const |
| Loads an entity into the cache for faster lookup.
|
|
virtual void | indexGroup (EntitiesDescriptor *group, time_t &validUntil) const |
| Loads a group of entities into the cache for faster lookup.
|
|
virtual void | index (EntityDescriptor *site, time_t validUntil, bool replace=false) const |
|
virtual void | index (EntitiesDescriptor *group, time_t validUntil) const |
|
virtual void | clearDescriptorIndex (bool freeSites=false) |
| Clear the cache of known entities and groups.
|
|
| ObservableMetadataProvider (const xercesc::DOMElement *e=nullptr) |
| Constructor.
|
|
| MetadataProvider (const xercesc::DOMElement *e=nullptr) |
| Constructor.
|
|
void | doFilters (xmltooling::XMLObject &xmlObject) const |
| Applies any installed filters to a metadata instance.
|
|
Base class for caching metadata providers.