public class RegistryPublicationServiceImpl extends Object implements RegistryPublicationService
Constructor and Description |
---|
RegistryPublicationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
bindRegistryStore(org.osgi.framework.ServiceReference serviceReference) |
void |
publish(String registryId,
String destinationRegistryId)
Publishes a local registry to a remote registry.
|
void |
setFederationAdminService(FederationAdminService federationAdminService) |
void |
unbindRegistryStore(org.osgi.framework.ServiceReference serviceReference) |
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.
|
public void publish(String registryId, String destinationRegistryId) throws FederationAdminException
RegistryPublicationService
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.
publish
in interface RegistryPublicationService
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 metacardpublic void unpublish(String registryId, String destinationRegistryId) throws FederationAdminException
RegistryPublicationService
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.
unpublish
in interface RegistryPublicationService
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 metacardpublic void update(Metacard metacard) throws FederationAdminException
RegistryPublicationService
The metacard's last published time will be updated and the updated metacard will be written to the local store.
update
in interface RegistryPublicationService
metacard
- the metacard up writeFederationAdminException
- if there are any problems updating the local or remote
registries.public void bindRegistryStore(org.osgi.framework.ServiceReference serviceReference)
public void unbindRegistryStore(org.osgi.framework.ServiceReference serviceReference)
public void setFederationAdminService(FederationAdminService federationAdminService)
This work is licensed under a Creative Commons Attribution 4.0 International License.