public class FederationAdmin extends Object implements FederationAdminMBean, org.osgi.service.event.EventHandler
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_MODE |
static String |
FILTER_INVERTED |
static String |
SUMMARY_FILTERED |
static String |
SUMMARY_IDENTITY_NODE |
static String |
SUMMARY_LOCAL_NODE |
static String |
SUMMARY_METACARD_ID |
static String |
SUMMARY_NAME |
static String |
SUMMARY_REGISTRY_ID |
static String |
SUMMARY_REPORT_ACTION |
OBJECT_NAME
Constructor and Description |
---|
FederationAdmin(AdminHelper helper) |
Modifier and Type | Method and Description |
---|---|
List<Service> |
allRegistryInfo() |
Map<String,Object> |
allRegistryMetacards()
Returns a Map of
RegistryPackageType objects as converted using RegistryPackageWebConverter List of node maps representing all registry entries can be found
in the returned map using the key 'nodes'. |
Map<String,Object> |
allRegistryMetacardsSummary()
Returns a Map of node maps representing all registry entries which can be found in the returned
map using the key 'nodes'.
|
void |
bindEndpoint(org.osgi.framework.ServiceReference reference) |
String |
createLocalEntry(Map<String,Object> registryMap)
Create a local entry in the registry catalog for the given object map.
|
String |
createLocalEntry(String base64EncodedXmlData)
Create a local entry in the registry catalog for the given string.
|
void |
deleteLocalEntry(List<String> ids)
Deletes a local entry in the registry catalog for each of the ids provided.
|
void |
destroy() |
protected org.osgi.framework.BundleContext |
getContext() |
Map<String,Object> |
getLocalNodes()
Returns a Map of
RegistryPackageType objects as converted using RegistryPackageWebConverter List of node maps representing local registry entries can be found
in the returned map using the key 'nodes'. |
void |
handleEvent(org.osgi.service.event.Event event) |
void |
init() |
void |
nodeFilterProperties(Map<String,Object> properties)
Sets the properties associated with the registry filter/policy
|
void |
regenerateRegistrySources(List<String> ids)
Regenerates registry sources for the given registry-ids
|
Map<String,Object> |
registryMetacard(String registryId)
Returns a Map of
RegistryPackageType object as converted using RegistryPackageWebConverter A map of the registry node identified by the given registry id. |
boolean |
registryStatus(String servicePID) |
void |
setFederationAdminService(FederationAdminService federationAdminService) |
void |
setMetacardMarshaller(MetacardMarshaller metacardMarshaller) |
void |
setRegistryActionProvider(MultiActionProvider provider) |
void |
setRegistryMapConverter(RegistryPackageWebConverter registryMapConverter) |
void |
setRegistryTransformer(InputTransformer inputTransformer) |
void |
setRegistryTypeConverter(RegistryPackageTypeConverter registryTypeConverter) |
void |
setSlotHelper(SlotTypeHelper slotHelper) |
void |
setSourceConfigRefresh(RegistrySourceConfiguration sourceConfigRefresh) |
void |
unbindEndpoint(org.osgi.framework.ServiceReference reference) |
void |
updateLocalEntry(Map<String,Object> registryObjectMap)
Update a local entry in the registry catalog for the given object map.
|
public static final String SUMMARY_METACARD_ID
public static final String SUMMARY_REGISTRY_ID
public static final String SUMMARY_NAME
public static final String SUMMARY_LOCAL_NODE
public static final String SUMMARY_IDENTITY_NODE
public static final String SUMMARY_REPORT_ACTION
public static final String SUMMARY_FILTERED
public static final String FILTER_INVERTED
public static final String CLIENT_MODE
public FederationAdmin(AdminHelper helper)
public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
public String createLocalEntry(Map<String,Object> registryMap) throws FederationAdminException
FederationAdminMBean
RegistryPackageType
using the RegistryPackageWebConverter
. The
resulting RegistryPackageType
will be passed to FederationAdminService#addLocalEntry
to create the entry.createLocalEntry
in interface FederationAdminMBean
FederationAdminException
- Passes exception thrown by FederationAdminServiceImplpublic String createLocalEntry(String base64EncodedXmlData) throws FederationAdminException
FederationAdminMBean
createLocalEntry
in interface FederationAdminMBean
base64EncodedXmlData
- Base64 encoded registry package xml.FederationAdminException
- If Base64 decoding of the string fails If the
RegistryTransformer can't convert the stream into a metacard Passes exceptions thrown by
FederationAdminServiceImplpublic void updateLocalEntry(Map<String,Object> registryObjectMap) throws FederationAdminException
FederationAdminMBean
RegistryPackageType
using the RegistryPackageWebConverter
. The
resulting RegistryPackageType
will be passed to FederationAdminService#addLocalEntry
to update the entry.updateLocalEntry
in interface FederationAdminMBean
registryObjectMap
- A map of the registry object to updateFederationAdminException
- Passes exception thrown byFederationAdminServiceImplpublic void deleteLocalEntry(List<String> ids) throws FederationAdminException
FederationAdminMBean
deleteLocalEntry
in interface FederationAdminMBean
ids
- List of registry ids to be deletedFederationAdminException
- Passes exception thrown byFederationAdminServiceImplpublic Map<String,Object> getLocalNodes() throws FederationAdminException
FederationAdminMBean
RegistryPackageType
objects as converted using RegistryPackageWebConverter
List of node maps representing local registry entries can be found
in the returned map using the key 'nodes'. Additional information about the nodes/registry is
also included in the map.getLocalNodes
in interface FederationAdminMBean
FederationAdminException
- Passes exception thrown byFederationAdminServiceImplpublic boolean registryStatus(String servicePID)
registryStatus
in interface FederationAdminMBean
servicePID
- - The PID of the registry which will have the status checkedpublic List<Service> allRegistryInfo()
allRegistryInfo
in interface FederationAdminMBean
public Map<String,Object> allRegistryMetacards()
FederationAdminMBean
RegistryPackageType
objects as converted using RegistryPackageWebConverter
List of node maps representing all registry entries can be found
in the returned map using the key 'nodes'. Additional information about the nodes/registry is
also included in the map.allRegistryMetacards
in interface FederationAdminMBean
public Map<String,Object> registryMetacard(String registryId)
FederationAdminMBean
RegistryPackageType
object as converted using RegistryPackageWebConverter
A map of the registry node identified by the given registry id.
Additional information about the node is also included in the map.registryMetacard
in interface FederationAdminMBean
registryId
- The registry id of the node to retrieve.public Map<String,Object> allRegistryMetacardsSummary()
FederationAdminMBean
allRegistryMetacardsSummary
in interface FederationAdminMBean
public void regenerateRegistrySources(List<String> ids)
FederationAdminMBean
regenerateRegistrySources
in interface FederationAdminMBean
ids
- registry-ids to regeneratepublic void nodeFilterProperties(Map<String,Object> properties)
FederationAdminMBean
nodeFilterProperties
in interface FederationAdminMBean
public void destroy()
public void init()
public void bindEndpoint(org.osgi.framework.ServiceReference reference)
public void unbindEndpoint(org.osgi.framework.ServiceReference reference)
protected org.osgi.framework.BundleContext getContext()
public void setFederationAdminService(FederationAdminService federationAdminService)
public void setMetacardMarshaller(MetacardMarshaller metacardMarshaller)
public void setRegistryTransformer(InputTransformer inputTransformer)
public void setRegistryTypeConverter(RegistryPackageTypeConverter registryTypeConverter)
public void setRegistryMapConverter(RegistryPackageWebConverter registryMapConverter)
public void setSlotHelper(SlotTypeHelper slotHelper)
public void setSourceConfigRefresh(RegistrySourceConfiguration sourceConfigRefresh)
public void setRegistryActionProvider(MultiActionProvider provider)
This work is licensed under a Creative Commons Attribution 4.0 International License.