Package dev.dsf.fhir.authorization
Interface AuthorizationRule<R extends org.hl7.fhir.r4.model.Resource>
- All Known Implementing Classes:
AbstractAuthorizationRule,AbstractMetaTagAuthorizationRule,ActivityDefinitionAuthorizationRule,BinaryAuthorizationRule,BundleAuthorizationRule,CodeSystemAuthorizationRule,DocumentReferenceAuthorizationRule,EndpointAuthorizationRule,GroupAuthorizationRule,HealthcareServiceAuthorizationRule,LibraryAuthorizationRule,LocationAuthorizationRule,MeasureAuthorizationRule,MeasureReportAuthorizationRule,NamingSystemAuthorizationRule,OrganizationAffiliationAuthorizationRule,OrganizationAuthorizationRule,PatientAuthorizationRule,PractitionerAuthorizationRule,PractitionerRoleAuthorizationRule,ProvenanceAuthorizationRule,QuestionnaireAuthorizationRule,QuestionnaireResponseAuthorizationRule,ResearchStudyAuthorizationRule,RootAuthorizationRule,StructureDefinitionAuthorizationRule,SubscriptionAuthorizationRule,TaskAuthorizationRule,ValueSetAuthorizationRule
public interface AuthorizationRule<R extends org.hl7.fhir.r4.model.Resource>
-
Method Summary
Modifier and TypeMethodDescriptionreasonCreateAllowed(Identity identity, R newResource) Override this method for non default behavior.reasonCreateAllowed(Connection connection, Identity identity, R newResource) Override this method for non default behavior.reasonDeleteAllowed(Identity identity, R oldResource) Override this method for non default behavior.reasonDeleteAllowed(Connection connection, Identity identity, R oldResource) Override this method for non default behavior.reasonHistoryAllowed(Identity identity) Override this method for non default behavior.reasonPermanentDeleteAllowed(Identity identity, R oldResource) Override this method for non default behavior.reasonPermanentDeleteAllowed(Connection connection, Identity identity, R oldResource) Override this method for non default behavior.reasonReadAllowed(Identity identity, R existingResource) Override this method for non default behavior.reasonReadAllowed(Connection connection, Identity identity, R existingResource) Override this method for non default behavior.reasonSearchAllowed(Identity identity) Override this method for non default behavior.reasonUpdateAllowed(Identity identity, R oldResource, R newResource) Override this method for non default behavior.reasonUpdateAllowed(Connection connection, Identity identity, R oldResource, R newResource) Override this method for non default behavior.
-
Method Details
-
getResourceType
-
reasonCreateAllowed
Override this method for non default behavior. Default: Not allowed.- Parameters:
identity- notnullnewResource- notnull- Returns:
- Reason as String in
Optional.of(Object)if create allowed
-
reasonCreateAllowed
Override this method for non default behavior. Default: Not allowed.- Parameters:
connection- notnullidentity- notnullnewResource- notnull- Returns:
- Reason as String in
Optional.of(Object)if create allowed
-
reasonReadAllowed
Override this method for non default behavior. Default: Not allowed.- Parameters:
identity- notnullexistingResource- notnull- Returns:
- Reason as String in
Optional.of(Object)if read allowed
-
reasonReadAllowed
Override this method for non default behavior. Default: Not allowed.- Parameters:
connection- notnullidentity- notnullexistingResource- notnull- Returns:
- Reason as String in
Optional.of(Object)if read allowed
-
reasonUpdateAllowed
Override this method for non default behavior. Default: Not allowed.- Parameters:
identity- notnulloldResource- notnullnewResource- notnull- Returns:
- Reason as String in
Optional.of(Object)if update allowed
-
reasonUpdateAllowed
Optional<String> reasonUpdateAllowed(Connection connection, Identity identity, R oldResource, R newResource) Override this method for non default behavior. Default: Not allowed.- Parameters:
connection- notnullidentity- notnulloldResource- notnullnewResource- notnull- Returns:
- Reason as String in
Optional.of(Object)if update allowed
-
reasonDeleteAllowed
Override this method for non default behavior. Default: Not allowed.- Parameters:
identity- notnulloldResource- notnull- Returns:
- Reason as String in
Optional.of(Object)if delete allowed
-
reasonDeleteAllowed
Override this method for non default behavior. Default: Not allowed.- Parameters:
connection- notnullidentity- notnulloldResource- notnull- Returns:
- Reason as String in
Optional.of(Object)if delete allowed
-
reasonSearchAllowed
Override this method for non default behavior. Default: Not allowed.- Parameters:
identity- notnull- Returns:
- Reason as String in
Optional.of(Object)if delete allowed
-
reasonHistoryAllowed
Override this method for non default behavior. Default: Not allowed.- Parameters:
identity- notnull- Returns:
- Reason as String in
Optional.of(Object)if delete allowed
-
reasonPermanentDeleteAllowed
Override this method for non default behavior. Default: Not allowed.- Parameters:
identity- notnulloldResource- notnull- Returns:
- Reason as String in
Optional.of(Object)if permanent delete allowed
-
reasonPermanentDeleteAllowed
Optional<String> reasonPermanentDeleteAllowed(Connection connection, Identity identity, R oldResource) Override this method for non default behavior. Default: Not allowed.- Parameters:
connection- notnullidentity- notnulloldResource- notnull- Returns:
- Reason as String in
Optional.of(Object)if permanent delete allowed
-