Examples of IUserRolesService


Examples of org.jresearch.flexess.core.services.IUserRolesService

  public void testUserRoles() throws Exception {
    userRoles();
  }

  private void userRoles() throws Exception {
    IUserRolesService userRoleService = getUserRoleService();
    List<IRoleInstanceMetaInfo> roles = userRoleService.getUserRoles("cathy"); //$NON-NLS-1$
    assertEquals(roles.size(), 0);

    // userRoleService.removeUserRole("cathy", roles.get(0));
    roles = userRoleService.getUserRoles("cathy"); //$NON-NLS-1$
    assertEquals(roles.size(), 0);

    roles = userRoleService.getUserRoles("bel"); //$NON-NLS-1$
    assertEquals(roles.size(), 0);
    // userRoleService.removeUserRole("bel", roles.get(0).getId());

    roles = userRoleService.getUserRoles("bel"); //$NON-NLS-1$
    assertEquals(roles.size(), 0);
  }
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.