Package dev.dsf.fhir.authorization
Class QuestionnaireResponseAuthorizationRule
java.lang.Object
dev.dsf.fhir.authorization.AbstractAuthorizationRule<org.hl7.fhir.r4.model.QuestionnaireResponse,QuestionnaireResponseDao>
dev.dsf.fhir.authorization.QuestionnaireResponseAuthorizationRule
- All Implemented Interfaces:
AuthorizationRule<org.hl7.fhir.r4.model.QuestionnaireResponse>,org.springframework.beans.factory.InitializingBean
public class QuestionnaireResponseAuthorizationRule
extends AbstractAuthorizationRule<org.hl7.fhir.r4.model.QuestionnaireResponse,QuestionnaireResponseDao>
-
Field Summary
Fields inherited from class dev.dsf.fhir.authorization.AbstractAuthorizationRule
daoProvider, ORGANIZATION_IDENTIFIER_SYSTEM, organizationProvider, parameterConverter, readAccessHelper, referenceResolver, resourceType, serverBase -
Constructor Summary
ConstructorsConstructorDescriptionQuestionnaireResponseAuthorizationRule(DaoProvider daoProvider, String serverBase, ReferenceResolver referenceResolver, OrganizationProvider organizationProvider, ReadAccessHelper readAccessHelper, ParameterConverter parameterConverter) -
Method Summary
Modifier and TypeMethodDescriptionreasonCreateAllowed(Connection connection, Identity identity, org.hl7.fhir.r4.model.QuestionnaireResponse newResource) Override this method for non default behavior.reasonDeleteAllowed(Connection connection, Identity identity, org.hl7.fhir.r4.model.QuestionnaireResponse oldResource) Override this method for non default behavior.reasonReadAllowed(Connection connection, Identity identity, org.hl7.fhir.r4.model.QuestionnaireResponse existingResource) Override this method for non default behavior.reasonUpdateAllowed(Connection connection, Identity identity, org.hl7.fhir.r4.model.QuestionnaireResponse oldResource, org.hl7.fhir.r4.model.QuestionnaireResponse newResource) Override this method for non default behavior.Methods inherited from class dev.dsf.fhir.authorization.AbstractAuthorizationRule
afterPropertiesSet, createIfLiteralInternalOrLogicalReference, getAffiliations, getDao, getResourceType, getResourceTypeName, isCurrentIdentityPartOfReferencedOrganization, isCurrentIdentityPartOfReferencedOrganizations, isCurrentIdentityPartOfReferencedOrganizations, isLocalOrganization, organizationWithIdentifierExists, reasonCreateAllowed, reasonDeleteAllowed, reasonHistoryAllowed, reasonPermanentDeleteAllowed, reasonPermanentDeleteAllowed, reasonReadAllowed, reasonSearchAllowed, reasonUpdateAllowed, resolveReference, roleExists
-
Constructor Details
-
QuestionnaireResponseAuthorizationRule
public QuestionnaireResponseAuthorizationRule(DaoProvider daoProvider, String serverBase, ReferenceResolver referenceResolver, OrganizationProvider organizationProvider, ReadAccessHelper readAccessHelper, ParameterConverter parameterConverter)
-
-
Method Details
-
reasonCreateAllowed
public Optional<String> reasonCreateAllowed(Connection connection, Identity identity, org.hl7.fhir.r4.model.QuestionnaireResponse newResource) Description copied from interface:AuthorizationRuleOverride 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
public Optional<String> reasonReadAllowed(Connection connection, Identity identity, org.hl7.fhir.r4.model.QuestionnaireResponse existingResource) Description copied from interface:AuthorizationRuleOverride 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
public Optional<String> reasonUpdateAllowed(Connection connection, Identity identity, org.hl7.fhir.r4.model.QuestionnaireResponse oldResource, org.hl7.fhir.r4.model.QuestionnaireResponse newResource) Description copied from interface:AuthorizationRuleOverride 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
public Optional<String> reasonDeleteAllowed(Connection connection, Identity identity, org.hl7.fhir.r4.model.QuestionnaireResponse oldResource) Description copied from interface:AuthorizationRuleOverride 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
-