MetaDataRoleAuthorizationStrategy.authorize(successGroup, RENDER,
xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
MetaDataRoleAuthorizationStrategy.authorize(successGroup, RENDER,
xmlRolesReader.getAllAllowedRoles("Audit", "disable"));
final CheckGroupSelector successSelector = new CheckGroupSelector("successSelector", successGroup);
add(successSelector);
MetaDataRoleAuthorizationStrategy.authorize(successSelector, RENDER,
xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
MetaDataRoleAuthorizationStrategy.authorize(successSelector, RENDER,
xmlRolesReader.getAllAllowedRoles("Audit", "disable"));
final CheckGroup<AuditLoggerName> failureGroup = new CheckGroup<AuditLoggerName>("failureGroup",
new AuditsByCategoryModel(category, Result.failure));
failureGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
private static final long serialVersionUID = -151291731388673682L;
@Override
protected void onUpdate(final AjaxRequestTarget target) {
// Empty method: here only to let Model.setObject() be invoked.
}
});
add(failureGroup);
MetaDataRoleAuthorizationStrategy.authorize(failureGroup, RENDER,
xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
MetaDataRoleAuthorizationStrategy.authorize(failureGroup, RENDER,
xmlRolesReader.getAllAllowedRoles("Audit", "disable"));
final CheckGroupSelector failureSelector = new CheckGroupSelector("failureSelector", failureGroup);
add(failureSelector);
MetaDataRoleAuthorizationStrategy.authorize(failureSelector, RENDER,
xmlRolesReader.getAllAllowedRoles("Audit", "enable"));
MetaDataRoleAuthorizationStrategy.authorize(failureSelector, RENDER,
xmlRolesReader.getAllAllowedRoles("Audit", "disable"));