@Test void testIsAddNotAnEntityReport() { FreemarkerTemplate freemarkerTemplate = mock(FreemarkerTemplate.class); when(freemarkerTemplate.getName()).thenReturn("not-an-entity-report.ftl"); assertTrue(entityReportPermissionChecker.isAddAllowed(freemarkerTemplate)); }
@Override public boolean isAddAllowed(FreemarkerTemplate freemarkerTemplate) { return hasEntityTypeReportPermission(freemarkerTemplate, MANAGE_REPORT); }
EntityReportPermissionChecker implements PermissionChecker<FreemarkerTemplate> { @Override public boolean isAddAllowed(FreemarkerTemplate freemarkerTemplate) { return hasEntityTypeReportPermission(freemarkerTemplate, MANAGE_REPORT); } }
EntityReportPermissionChecker implements PermissionChecker<FreemarkerTemplate> { @Override public boolean isAddAllowed(FreemarkerTemplate freemarkerTemplate) { return hasEntityTypeReportPermission(freemarkerTemplate, MANAGE_REPORT); } EntityReportPermissionChecker(UserPermissionEvaluator permissionEvaluator); }
EntityReportPermissionChecker implements PermissionChecker<FreemarkerTemplate> { @Override public boolean isAddAllowed(FreemarkerTemplate freemarkerTemplate) { return hasEntityTypeReportPermission(freemarkerTemplate, MANAGE_REPORT); } EntityReportPermissionChecker(UserPermissionEvaluator permissionEvaluator); @Override boolean isAddAllowed(FreemarkerTemplate freemarkerTemplate); @Override boolean isCountAllowed(FreemarkerTemplate freemarkerTemplate); @Override boolean isReadAllowed(FreemarkerTemplate freemarkerTemplate); @Override boolean isUpdateAllowed(FreemarkerTemplate freemarkerTemplate); @Override boolean isDeleteAllowed(FreemarkerTemplate freemarkerTemplate); }
EntityReportPermissionChecker implements PermissionChecker<FreemarkerTemplate> { @Override public boolean isAddAllowed(FreemarkerTemplate freemarkerTemplate) { return hasEntityTypeReportPermission(freemarkerTemplate, MANAGE_REPORT); } EntityReportPermissionChecker(UserPermissionEvaluator permissionEvaluator); @Override boolean isAddAllowed(FreemarkerTemplate freemarkerTemplate); @Override boolean isCountAllowed(FreemarkerTemplate freemarkerTemplate); @Override boolean isReadAllowed(FreemarkerTemplate freemarkerTemplate); @Override boolean isUpdateAllowed(FreemarkerTemplate freemarkerTemplate); @Override boolean isDeleteAllowed(FreemarkerTemplate freemarkerTemplate);  }