Class TaskAuthorizationRule

java.lang.Object
dev.dsf.fhir.authorization.AbstractAuthorizationRule<org.hl7.fhir.r4.model.Task,TaskDao>
dev.dsf.fhir.authorization.TaskAuthorizationRule
All Implemented Interfaces:
AuthorizationRule<org.hl7.fhir.r4.model.Task>, org.springframework.beans.factory.InitializingBean

public class TaskAuthorizationRule extends AbstractAuthorizationRule<org.hl7.fhir.r4.model.Task,TaskDao>
  • Constructor Details

  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class AbstractAuthorizationRule<org.hl7.fhir.r4.model.Task,TaskDao>
      Throws:
      Exception
    • reasonCreateAllowed

      public Optional<String> reasonCreateAllowed(Connection connection, Identity identity, org.hl7.fhir.r4.model.Task newResource)
      Description copied from interface: AuthorizationRule
      Override this method for non default behavior. Default: Not allowed.
      Parameters:
      connection - not null
      identity - not null
      newResource - not null
      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.Task existingResource)
      Description copied from interface: AuthorizationRule
      Override this method for non default behavior. Default: Not allowed.
      Parameters:
      connection - not null
      identity - not null
      existingResource - not null
      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.Task oldResource, org.hl7.fhir.r4.model.Task newResource)
      Description copied from interface: AuthorizationRule
      Override this method for non default behavior. Default: Not allowed.
      Parameters:
      connection - not null
      identity - not null
      oldResource - not null
      newResource - not null
      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.Task oldResource)
      Description copied from interface: AuthorizationRule
      Override this method for non default behavior. Default: Not allowed.
      Parameters:
      connection - not null
      identity - not null
      oldResource - not null
      Returns:
      Reason as String in Optional.of(Object) if delete allowed