Examples of saveRoleInstance()


Examples of org.jresearch.flexess.core.services.IRoleInstanceService.saveRoleInstance()

    IRoleInstanceMetaInfo rm = roleInstService.getRoleInstanceImpl("com.jresearchsoft.flexess.examples.orders"); //$NON-NLS-1$
    rm.setName("european manager"); //$NON-NLS-1$
    rm.setRoleId("manager_role"); //$NON-NLS-1$

    rm.addPermissionInstance(rpm);
    rm = roleInstService.saveRoleInstance(rm);
    id2 = rm.getId();
  }

  private void getRoleInstance() throws Exception {
    IRoleInstanceService roleInstService = getRoleInstService();
View Full Code Here

Examples of org.jresearch.flexess.core.services.IRoleInstanceService.saveRoleInstance()

  private void updateRoleInstance() throws Exception {
    IRoleInstanceService roleInstService = getRoleInstService();
    IRoleInstanceMetaInfo rm = roleInstService.getRoleInstance(id2);
    rm.setName("european manager2"); //$NON-NLS-1$
    roleInstService.saveRoleInstance(rm);
  }

  private void getRoleInstance2() throws Exception {
    IRoleInstanceService roleInstService = getRoleInstService();
    IRoleInstanceMetaInfo rm = roleInstService.getRoleInstance(id2);
View Full Code Here

Examples of org.jresearch.flexess.core.services.IRoleInstanceService.saveRoleInstance()

      IRoleInstanceMetaInfo rm = roleInstService.getRoleInstanceImpl("com.jresearchsoft.flexess.examples.orders"); //$NON-NLS-1$
      rm.setName("european manager2"); //$NON-NLS-1$
      rm.setRoleId("manager_role"); //$NON-NLS-1$

      rm = roleInstService.saveRoleInstance(rm);
      getUserRoleService().addUserRole("cathy", "appId", rm); //$NON-NLS-1$ //$NON-NLS-2$
      SecurityModel sm = OrdersModelGenerator.generateModel();
      sm.setId("kuku"); //$NON-NLS-1$
      getDeployService().putModel(sm, null);
    } catch (ModelLoadInProgressException e) {
View Full Code Here

Examples of org.jresearch.flexess.core.services.IRoleInstanceService.saveRoleInstance()

    List<IPermissionInstanceMetaInfo> permInstances = permissionService.getPermissionInstances();
    for (IPermissionInstanceMetaInfo info : permInstances) {
      rm.addPermissionInstance(info);
    }
    rm = roleInstService.saveRoleInstance(rm);

    // getUserRoleService().addUserRole("cathy", rm);

    roleService.deleteRole("com.jresearchsoft.flexess.examples.orders", dynaMeta.getId()); //$NON-NLS-1$
View Full Code Here

Examples of org.jresearch.flexess.core.services.IRoleInstanceService.saveRoleInstance()

    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
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.