Package dev.dsf.fhir.authorization
Class PractitionerRoleAuthorizationRule
java.lang.Object
dev.dsf.fhir.authorization.AbstractAuthorizationRule<R,D>
dev.dsf.fhir.authorization.AbstractMetaTagAuthorizationRule<org.hl7.fhir.r4.model.PractitionerRole,PractitionerRoleDao>
dev.dsf.fhir.authorization.PractitionerRoleAuthorizationRule
- All Implemented Interfaces:
AuthorizationRule<org.hl7.fhir.r4.model.PractitionerRole>,org.springframework.beans.factory.InitializingBean
public class PractitionerRoleAuthorizationRule
extends AbstractMetaTagAuthorizationRule<org.hl7.fhir.r4.model.PractitionerRole,PractitionerRoleDao>
-
Field Summary
Fields inherited from class dev.dsf.fhir.authorization.AbstractAuthorizationRule
daoProvider, ORGANIZATION_IDENTIFIER_SYSTEM, organizationProvider, parameterConverter, readAccessHelper, referenceResolver, resourceType, serverBase -
Constructor Summary
ConstructorsConstructorDescriptionPractitionerRoleAuthorizationRule(DaoProvider daoProvider, String serverBase, ReferenceResolver referenceResolver, OrganizationProvider organizationProvider, ReadAccessHelper readAccessHelper, ParameterConverter parameterConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanmodificationsOk(Connection connection, org.hl7.fhir.r4.model.PractitionerRole oldResource, org.hl7.fhir.r4.model.PractitionerRole newResource) No need to check if the new resource is valid, will be checked byAbstractMetaTagAuthorizationRule.newResourceOkForUpdate(Connection, Identity, Resource)newResourceOkForCreate(Connection connection, Identity identity, org.hl7.fhir.r4.model.PractitionerRole newResource) newResourceOkForUpdate(Connection connection, Identity identity, org.hl7.fhir.r4.model.PractitionerRole newResource) protected booleanresourceExists(Connection connection, org.hl7.fhir.r4.model.PractitionerRole newResource) Methods inherited from class dev.dsf.fhir.authorization.AbstractMetaTagAuthorizationRule
hasValidReadAccessTag, reasonCreateAllowed, reasonDeleteAllowed, reasonReadAllowed, reasonUpdateAllowedMethods 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, roleExistsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.dsf.fhir.authorization.AuthorizationRule
getResourceType, reasonCreateAllowed, reasonDeleteAllowed, reasonHistoryAllowed, reasonPermanentDeleteAllowed, reasonPermanentDeleteAllowed, reasonReadAllowed, reasonSearchAllowed, reasonUpdateAllowedMethods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
-
Constructor Details
-
PractitionerRoleAuthorizationRule
public PractitionerRoleAuthorizationRule(DaoProvider daoProvider, String serverBase, ReferenceResolver referenceResolver, OrganizationProvider organizationProvider, ReadAccessHelper readAccessHelper, ParameterConverter parameterConverter)
-
-
Method Details
-
newResourceOkForCreate
protected Optional<String> newResourceOkForCreate(Connection connection, Identity identity, org.hl7.fhir.r4.model.PractitionerRole newResource) - Specified by:
newResourceOkForCreatein classAbstractMetaTagAuthorizationRule<org.hl7.fhir.r4.model.PractitionerRole,PractitionerRoleDao>
-
newResourceOkForUpdate
protected Optional<String> newResourceOkForUpdate(Connection connection, Identity identity, org.hl7.fhir.r4.model.PractitionerRole newResource) - Specified by:
newResourceOkForUpdatein classAbstractMetaTagAuthorizationRule<org.hl7.fhir.r4.model.PractitionerRole,PractitionerRoleDao>
-
resourceExists
protected boolean resourceExists(Connection connection, org.hl7.fhir.r4.model.PractitionerRole newResource) - Specified by:
resourceExistsin classAbstractMetaTagAuthorizationRule<org.hl7.fhir.r4.model.PractitionerRole,PractitionerRoleDao>
-
modificationsOk
protected boolean modificationsOk(Connection connection, org.hl7.fhir.r4.model.PractitionerRole oldResource, org.hl7.fhir.r4.model.PractitionerRole newResource) Description copied from class:AbstractMetaTagAuthorizationRuleNo need to check if the new resource is valid, will be checked byAbstractMetaTagAuthorizationRule.newResourceOkForUpdate(Connection, Identity, Resource)- Specified by:
modificationsOkin classAbstractMetaTagAuthorizationRule<org.hl7.fhir.r4.model.PractitionerRole,PractitionerRoleDao> - Parameters:
connection- notnulloldResource- notnullnewResource- notnull- Returns:
trueif modifications from oldResource to newResource are ok
-