Registers an XML entity. The entity meta-data must contain
non-null
ResourceMetaData.getContent content .
Parameters: entity - The entity definition. throws: ObjectAlreadyExistsException - if the entity ID is alreadyregistered. throws: RepositoryException - if the entity could not be registered someother reason.
Unregisters an XML entity.
Parameters: id - The entity ID (publicId if it has one, otherwise systemId). throws: ObjectNotFoundException - if the entity ID is not registered. throws: RepositoryException - if the entity could not be unregistered forsome other reason.
Opens an XML entity for reading. This method is called by the engine at
run-time when it needs to resolve the entity from the given ID.
Parameters: id - The entity ID. The requested entity. throws: ObjectNotFoundException - if the entity ID is not registered. throws: RepositoryException - if some other error occurred.
Finds meta-data for all entities. This method is intended to support
design-time clients and management applications.
Parameters: includeContent - true if theResourceMetaData.getContent content property of the returnedmeta-data objects should be populated with the content of the XMLentities. The list of all entities. throws: RepositoryException - if an error occurred.
Finds meta-data for an XML entity. This method is intended to support
design-time clients and management applications.
Parameters: id - The entity ID. Parameters: includeContent - true if theResourceMetaData.getContent content property of the returnedmeta-data object should be populated with the content of the XML entity. Meta-data about the requested entity. throws: ObjectNotFoundException - if the entity ID is not registered. throws: RepositoryException - if some other error occurred.
Finds all entity types known to the repository. This method is intended
to support design-time clients and management applications.
Parameters: locale - The locale in which the results should be formatted. All entity types. throws: RepositoryException - if an error occurred.
Updates an XML entity. If the entity meta-data contains
non-null
ResourceMetaData.getContent content , the repository
persists the updated content. Otherwise, any existing content remains
intact.
Parameters: entity - The entity definition. throws: ObjectNotFoundException - if the entity ID is not registered. throws: RepositoryException - if the entity could not be updated for someother reason.