|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetadataProvider
A local store into which metadata can be loaded and queried. Specific implementations may perform additional logic
such as caching (and refreshing) metadata and merging metadata, about a single entity, from multiple sources.
NOTE, developers should not try to marshall the metadata that comes from a metadata provider. It is
possible that the a provider, or MetadataFilter
, implementation may make changes to the retrieved metadata
that make it unusable for marshalling. For example, by removing elements required by the schema but not by the user
of the provider as a way of saving on memory.
Method Summary | |
---|---|
EntitiesDescriptor |
getEntitiesDescriptor(String name)
Gets a valid named EntitiesDescriptor from the metadata. |
EntityDescriptor |
getEntityDescriptor(String entityID)
Gets the valid metadata for a given entity. |
XMLObject |
getMetadata()
Gets the valid metadata tree, after the registered filter has been applied. |
MetadataFilter |
getMetadataFilter()
Gets the metadata filter applied to the metadata. |
List<RoleDescriptor> |
getRole(String entityID,
QName roleName)
Gets the valid role descriptors of a given type for a given entity. |
RoleDescriptor |
getRole(String entityID,
QName roleName,
String supportedProtocol)
Gets the valid role descriptors of a given type for a given entity that support the given protocol. |
boolean |
requireValidMetadata()
Gets whether the metadata returned by queries must be valid. |
void |
setMetadataFilter(MetadataFilter newFilter)
Sets the metadata filter applied to the metadata. |
void |
setRequireValidMetadata(boolean requireValidMetadata)
Sets whether the metadata returned by queries must be valid. |
Method Detail |
---|
boolean requireValidMetadata()
void setRequireValidMetadata(boolean requireValidMetadata)
requireValidMetadata
- whether the metadata returned by queries must be validMetadataFilter getMetadataFilter()
void setMetadataFilter(MetadataFilter newFilter) throws MetadataProviderException
newFilter
- the metadata filter applied to the metadata
MetadataProviderException
- thrown if the provider can not apply the filter to the metadataXMLObject getMetadata() throws MetadataProviderException
MetadataProviderException
- thrown if the provider can not fetch the metadata, must not be thrown simply if
there is no metadata to fetchEntitiesDescriptor getEntitiesDescriptor(String name) throws MetadataProviderException
name
- the name of the EntitiesDescriptor
MetadataProviderException
- thrown if the provider can not fetch the metadata, must not be thrown if there
is simply no EntitiesDescriptor with the given nameEntityDescriptor getEntityDescriptor(String entityID) throws MetadataProviderException
entityID
- the ID of the entity
MetadataProviderException
- thrown if the provider can not fetch the metadata, must not be thrown if there
is simply no EntityDescriptor with the given IDList<RoleDescriptor> getRole(String entityID, QName roleName) throws MetadataProviderException
entityID
- the ID of the entityroleName
- the role type
MetadataProviderException
- thrown if the provider can not fetch the metadata, must not be thrown if there
is simply no such entity with the given rolesRoleDescriptor getRole(String entityID, QName roleName, String supportedProtocol) throws MetadataProviderException
entityID
- the ID of the entityroleName
- the role typesupportedProtocol
- the protocol supported by the role
MetadataProviderException
- thrown if the provider can not fetch the metadata, must not be thrown if there
is simply no such entity with the given role supporting the given protocol
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |