Package ca.uhn.fhir.rest.api.server
Interface IPreResourceShowDetails
-
- All Superinterfaces:
Iterable<org.hl7.fhir.instance.model.api.IBaseResource>
- All Known Implementing Classes:
SimplePreResourceShowDetails
public interface IPreResourceShowDetails extends Iterable<org.hl7.fhir.instance.model.api.IBaseResource>
This interface is a parameter type for thePointcut.STORAGE_PRESHOW_RESOURCEShook.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.hl7.fhir.instance.model.api.IBaseResourcegetResource(int theIndex)voidmarkResourceAtIndexAsSubset(int theIndex)Indicates that data is being masked from within the resource at the given index.voidsetResource(int theIndex, org.hl7.fhir.instance.model.api.IBaseResource theResource)Replace the resource being returned at indexintsize()-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
size
int size()
- Returns:
- Returns the number of resources being shown
-
getResource
org.hl7.fhir.instance.model.api.IBaseResource getResource(int theIndex)
- Returns:
- Returns the resource at the given index. If you wish to make modifications to any resources
-
setResource
void setResource(int theIndex, org.hl7.fhir.instance.model.api.IBaseResource theResource)
Replace the resource being returned at index- Parameters:
theIndex- The resource indextheResource- The resource at index
-
markResourceAtIndexAsSubset
void markResourceAtIndexAsSubset(int theIndex)
Indicates that data is being masked from within the resource at the given index. This generally flags to the rest of the stack that the resource should include a SUBSET tag as an indication to consumers that some data has been removed.- Parameters:
theIndex- The resource index
-
-