this.ruleManager = ruleManager;
}
@Override
public void checkModel(SecurityModel securityModel) throws ModelChangeException {
ModelChangeException modelException = new ModelChangeException();
List<RuleExecutionException> rulEx = modelException.getRuleExceptions();
rulEx.addAll(checkModelData(securityModel));
SecurityModel oldModel = modelDao.getSecurityModel(securityModel.getId());
if (oldModel != null) {
rulEx.addAll(processRoles(securityModel, oldModel));
}
if (modelException.getRuleExceptions().size() != 0) {
throw modelException;
}
}