Examples of ModelChangeException


Examples of org.jresearch.flexess.core.checker.ModelChangeException

    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;
    }
  }
View Full Code Here

Examples of org.jresearch.flexess.core.checker.ModelChangeException

        }
      }
      try {
        application = applicationService.saveApplication(application);
      } catch (DataModelException e) {
        throw new ModelChangeException(application, "Application with such name already exists."); //$NON-NLS-1$
      }
    } else {
      modelMetaInfo.setModel(modelString);
      modelService.addTransientModel(modelMetaInfo);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.