public interface RegistryPublicationService
Modifier and Type | Method and Description |
---|---|
void |
publish(String registryId,
String destinationRegistryId)
Publishes a local registry to a remote registry.
|
void |
unpublish(String registryId,
String destinationRegistryId)
Unpublishes a local registry from a remote registry.
|
void |
update(Metacard metacard)
Writes the metacard to each of the remote registries in the metacard's list of published
locations.
|
void publish(String registryId, String destinationRegistryId) throws FederationAdminException
This will write the local metacard to the remote destination.
The remote destination will be added to the local metacard's list of published locations. The local metacard's last published time will also be updated. The updated metacard will be written to the local store.
registryId
- the registry id of the registry to be publisheddestinationRegistryId
- the registry of the remote registry to be published toFederationAdminException
- if there were problems writing to the remote registry or
updating the local metacardvoid unpublish(String registryId, String destinationRegistryId) throws FederationAdminException
The local registry metacard will be deleted from the remote registry.
The remote destination will be removed from the local metacard's list of published locations. The local metacard's last published time will also be updated. The updated metacard will be written to the local store.
registryId
- the registry id of the registry to be unpublisheddestinationRegistryId
- the registry of the remote registry to be unpublished fromFederationAdminException
- if there were problems deleting from the remote registry or
updating the local metacardvoid update(Metacard metacard) throws FederationAdminException
The metacard's last published time will be updated and the updated metacard will be written to the local store.
metacard
- the metacard up writeFederationAdminException
- if there are any problems updating the local or remote
registries.This work is licensed under a Creative Commons Attribution 4.0 International License.