@Test public void consentsGloballyEnabledSystemConsentsEmpty() { when(this.consentManager.getSystemConsents()).thenReturn(Collections.<Consent>emptySet()); Assert.assertFalse(this.component.consentsGloballyEnabled()); }
@Override public boolean consentsGloballyEnabled() { return !this.consentManager.getSystemConsents().isEmpty(); }
DefaultConsentAuthorizer implements ConsentAuthorizer { @Override public boolean consentsGloballyEnabled() { return !this.consentManager.getSystemConsents().isEmpty(); } }
DefaultConsentAuthorizer implements ConsentAuthorizer { @Override public boolean consentsGloballyEnabled() { return !this.consentManager.getSystemConsents().isEmpty(); }  }
DefaultConsentAuthorizer implements ConsentAuthorizer { @Override public boolean consentsGloballyEnabled() { return !this.consentManager.getSystemConsents().isEmpty(); }  @Override boolean consentsGloballyEnabled(); @Override List<RecordElement> filterForm(List<RecordElement> elements, Patient patient); @Override boolean authorizeInteraction(Patient patient); @Override boolean authorizeInteraction(Set<String> grantedConsents); @Override boolean isElementConsented(RecordElement element, Patient patient); }
DefaultConsentAuthorizer implements ConsentAuthorizer { @Override public boolean consentsGloballyEnabled() { return !this.consentManager.getSystemConsents().isEmpty(); }  @Override boolean consentsGloballyEnabled(); @Override List<RecordElement> filterForm(List<RecordElement> elements, Patient patient); @Override boolean authorizeInteraction(Patient patient); @Override boolean authorizeInteraction(Set<String> grantedConsents); @Override boolean isElementConsented(RecordElement element, Patient patient);  }