Examples of IRoleInstanceMetaInfo


Examples of org.jresearch.flexess.core.model.IRoleInstanceMetaInfo

    IAttributeMetaInfo am = perm2.getAttribute("uid");

    param.setAttributeName(am.getId());
    pm.addPermissionParameter(param);

    IRoleInstanceMetaInfo rm = roleInstService.getRoleInstanceImpl("com.jresearchsoft.flexess.examples.orders");
    rm.setName("customer");
    rm.setRoleId("customer_role");

    rm = roleInstService.saveRoleInstance(rm);
    id2 = rm.getId();

    pm.setRoleInstance(rm);
    pm = permissionService.savePermissionInstance(pm);

  }
View Full Code Here

Examples of org.jresearch.flexess.core.model.IRoleInstanceMetaInfo

  }

  @Override
  public IRoleInstanceMetaInfo saveRoleInstance(IRoleInstanceMetaInfo rmeta) throws DataModelException {
    if (rmeta.getId() == null) {
      IRoleInstanceMetaInfo ri = findRoleInstance(rmeta.getModelId(), rmeta.getRoleId(), rmeta.getName());
      if (ri != null) {
        throw new DataModelException("Name of the role must be unique within the model"); //$NON-NLS-1$
      }
    }
    return roleInstDAO.saveRoleInstance(rmeta);
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.