Examples of SecurityModel


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

  private ISecurityContainerFactory securityContainerFactory;

  private void loadRegistry() {
    List<ModelMetaInfo> models = getAll();
    for (IModelMetaInfo modelMetaInfo : models) {
      SecurityModel smodel = securityContainerFactory.getSecurityContainer(modelMetaInfo.getModel()).getModel();
      modelRegistry.addModel(smodel, modelMetaInfo.getModel());
    }

    //    List<IModelMetaInfo> models = getHibernateTemplate().find(MessageFormat.format("from {0}", ModelMetaInfo.class.getName())); //$NON-NLS-1$
    // for (IModelMetaInfo modelMetaInfo : models) {
View Full Code Here

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

  private IModelMetaInfo makeModel(String id) {
    String secModel = modelRegistry.getOriginalModel(id);
    if (secModel == null) {
      return null;
    }
    SecurityModel model = modelRegistry.getModel(id);
    ModelMetaInfo mm = new ModelMetaInfo();
    mm.setId(id);
    mm.setModel(secModel);
    mm.setDescription(EcoreUtil.getAnnotation(model, UamPackage.eNS_URI, IPObjectConstant.DESCRIPTION_ATTR));
    return mm;
View Full Code Here

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

  @Override
  public void saveModel(ModelMetaInfo model) {
    save(model);
    // getHibernateTemplate().saveOrUpdate(model);
    String modelStr = model.getModel();
    SecurityModel smodel = securityContainerFactory.getSecurityContainer(modelStr).getModel();
    modelRegistry.addModel(smodel, model.getModel());
  }
View Full Code Here

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

  public void addModel(ModelMetaInfo model) {
    if (modelRegistry.isEmpty()) {
      loadRegistry();
    }
    String modelStr = model.getModel();
    SecurityModel smodel = securityContainerFactory.getSecurityContainer(modelStr).getModel();
    modelRegistry.addModel(smodel, modelStr);
  }
View Full Code Here

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

Examples of org.switchyard.config.model.domain.SecurityModel

        Assert.assertEquals("OrderService", artifact.getName());
        Assert.assertEquals("http://localhost:8080/guvnorsoa/rest/packages/OrderService", artifact.getURL());
        // Verify security configuration
        SecuritiesModel securities = domain.getSecurities();
        Assert.assertEquals(domain, securities.getDomain());
        SecurityModel security = securities.getSecurities().iterator().next();
        Assert.assertEquals(securities, security.getSecurities());
        Assert.assertEquals(Object.class, security.getCallbackHandler(getClass().getClassLoader()));
        Assert.assertEquals("theSecurityName", security.getName());
        Set<String> rolesAllowed = new LinkedHashSet<String>();
        rolesAllowed.add("administrator");
        rolesAllowed.add("user");
        Assert.assertEquals(rolesAllowed, security.getRolesAllowed());
        Assert.assertEquals("leader", security.getRunAs());
        Assert.assertEquals("theSecurityDomain", security.getSecurityDomain());
        Assert.assertEquals("iam", security.getProperties().toProperties().getProperty("will"));
        Assert.assertEquals("iam", security.getProperties().toMap().get("will"));
    }
View Full Code Here

Examples of org.switchyard.config.model.domain.SecurityModel

     * @param desc the Descriptor
     */
    public V1SecuritiesModel(Configuration config, Descriptor desc) {
        super(config, desc);
        for (Configuration security_config : config.getChildrenStartsWith(SECURITY)) {
            SecurityModel security = (SecurityModel)readModel(security_config);
            if (security != null) {
                _securities.add(security);
            }
        }
        setModelChildrenOrder(SECURITY);
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.