Package com.ibm.fhir.server.registry
Class ServerRegistryResourceProvider
- java.lang.Object
-
- com.ibm.fhir.server.registry.ServerRegistryResourceProvider
-
- All Implemented Interfaces:
FHIRPersistenceInterceptor
,FHIRRegistryResourceProvider
public class ServerRegistryResourceProvider extends Object implements FHIRRegistryResourceProvider, FHIRPersistenceInterceptor
-
-
Constructor Summary
Constructors Constructor Description ServerRegistryResourceProvider(PersistenceHelper persistenceHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCreate(FHIRPersistenceEvent event)
This method is called during the processing of a 'create' REST API invocation, immediately after the new resource has been stored by the persistence layer.void
afterDelete(FHIRPersistenceEvent event)
This method is called during the processing of a 'delete' REST API invocation, immediately after the resource has been deleted by the persistence layer.void
afterUpdate(FHIRPersistenceEvent event)
This method is called during the processing of an 'update' REST API invocation, immediately after the updated resource has been stored by the persistence layer.Collection<FHIRRegistryResource>
getProfileResources()
Get the profiles for all of the resources.Collection<FHIRRegistryResource>
getProfileResources(String type)
Get the profile resources from this provider that constrain the given resource typeFHIRRegistryResource
getRegistryResource(Class<? extends Resource> resourceType, String url, String version)
Get the registry resource from this provider for the given resource type, url and versionCollection<FHIRRegistryResource>
getRegistryResources()
Get all the registry resources from this providerCollection<FHIRRegistryResource>
getRegistryResources(Class<? extends Resource> resourceType)
Get the registry resources from this provider for the given resource typeCollection<FHIRRegistryResource>
getSearchParameterResources(String type)
Get the search parameter resources from this provider with the given search parameter type (e.g.-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.persistence.interceptor.FHIRPersistenceInterceptor
afterHistory, afterPatch, afterRead, afterSearch, afterVread, beforeCreate, beforeDelete, beforeHistory, beforePatch, beforeRead, beforeSearch, beforeUpdate, beforeVread
-
-
-
-
Field Detail
-
log
public static final Logger log
-
-
Constructor Detail
-
ServerRegistryResourceProvider
public ServerRegistryResourceProvider(PersistenceHelper persistenceHelper)
-
-
Method Detail
-
getRegistryResource
public FHIRRegistryResource getRegistryResource(Class<? extends Resource> resourceType, String url, String version)
Description copied from interface:FHIRRegistryResourceProvider
Get the registry resource from this provider for the given resource type, url and versionIf the version is null, then the latest version of the registry resource is returned (if available)
- Specified by:
getRegistryResource
in interfaceFHIRRegistryResourceProvider
- Parameters:
resourceType
- the resource type of the registry resourceurl
- the url of the registry resourceversion
- the version of the registry resource (optional)- Returns:
- the registry resource from this provider for the given resource type, url and version if exists, null otherwise
-
getRegistryResources
public Collection<FHIRRegistryResource> getRegistryResources(Class<? extends Resource> resourceType)
Description copied from interface:FHIRRegistryResourceProvider
Get the registry resources from this provider for the given resource type- Specified by:
getRegistryResources
in interfaceFHIRRegistryResourceProvider
- Parameters:
resourceType
- the resource type of the registry resource- Returns:
- the registry resources from this provider for the given resource type
-
getRegistryResources
public Collection<FHIRRegistryResource> getRegistryResources()
Description copied from interface:FHIRRegistryResourceProvider
Get all the registry resources from this provider- Specified by:
getRegistryResources
in interfaceFHIRRegistryResourceProvider
- Returns:
- all of the registry resources from this provider
-
getProfileResources
public Collection<FHIRRegistryResource> getProfileResources()
Description copied from interface:FHIRRegistryResourceProvider
Get the profiles for all of the resources.- Specified by:
getProfileResources
in interfaceFHIRRegistryResourceProvider
- Returns:
- the profile resources from this provider that constrain the resource types
-
getProfileResources
public Collection<FHIRRegistryResource> getProfileResources(String type)
Description copied from interface:FHIRRegistryResourceProvider
Get the profile resources from this provider that constrain the given resource type- Specified by:
getProfileResources
in interfaceFHIRRegistryResourceProvider
- Parameters:
type
- the constrained resource type- Returns:
- the profile resources from this provider that constrain the given resource type
-
getSearchParameterResources
public Collection<FHIRRegistryResource> getSearchParameterResources(String type)
Description copied from interface:FHIRRegistryResourceProvider
Get the search parameter resources from this provider with the given search parameter type (e.g. string, token, etc.)- Specified by:
getSearchParameterResources
in interfaceFHIRRegistryResourceProvider
- Parameters:
type
- the search parameter type- Returns:
- the search parameter resources from this provider with the given search parameter type
-
afterCreate
public void afterCreate(FHIRPersistenceEvent event)
Description copied from interface:FHIRPersistenceInterceptor
This method is called during the processing of a 'create' REST API invocation, immediately after the new resource has been stored by the persistence layer.- Specified by:
afterCreate
in interfaceFHIRPersistenceInterceptor
- Parameters:
event
- information about the 'create' event
-
afterUpdate
public void afterUpdate(FHIRPersistenceEvent event)
Description copied from interface:FHIRPersistenceInterceptor
This method is called during the processing of an 'update' REST API invocation, immediately after the updated resource has been stored by the persistence layer.- Specified by:
afterUpdate
in interfaceFHIRPersistenceInterceptor
- Parameters:
event
- information about the 'update' event
-
afterDelete
public void afterDelete(FHIRPersistenceEvent event)
Description copied from interface:FHIRPersistenceInterceptor
This method is called during the processing of a 'delete' REST API invocation, immediately after the resource has been deleted by the persistence layer.- Specified by:
afterDelete
in interfaceFHIRPersistenceInterceptor
- Parameters:
event
- information about the 'delete' event
-
-