Package org.jresearch.flexess.core.model.uam

Examples of org.jresearch.flexess.core.model.uam.SecurityModel


  private IModelService modelService;

  @Override
  public void executeRule(IRuleDefinition r) throws RuleExecutionException {
    // Check name duplicate
    SecurityModel model = (SecurityModel) r.getSource();
    Collection<SecurityModel> models = modelService.getEmfModels();
    for (SecurityModel securityModel : models) {
      if ((model.getName().equals(securityModel.getName())) && (!securityModel.getId().equals(model.getId()))) {
        throw new RuleExecutionException(MessageFormat.format("Another model with the {0} name exists. Duplicate model names are not allowed.", model.getName())); //$NON-NLS-1$
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.jresearch.flexess.core.model.uam.SecurityModel

Copyright © 2018 www.massapicom. 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.