Examples of RoleDAO


Examples of org.opencustomer.db.dao.system.RoleDAO

        {
            UsergroupVO usergroup = new UsergroupDAO().getById(form.getId());

            attributes.put("usergroup", usergroup);
            attributes.put("users", new UserDAO().getForUsergroup(usergroup));
            attributes.put("roles", new RoleDAO().getForDefaultUsergroup(usergroup));
        }
        catch (HibernateException e)
        {
            errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("default.error.invalidEntity", new Integer(form.getId())));
View Full Code Here

Examples of org.opencustomer.db.dao.system.RoleDAO

                profile.setAccessGlobal(Access.READ);
                profile.setAccessGroup(Access.READ);
                profile.setAccessUser(Access.WRITE_SYSTEM);
                profile.setIpPattern("*");
                profile.setTimeLock(30);
                profile.setRole(new RoleDAO().getByName("User"));
                profile.setDefaultUsergroup(profile.getRole().getDefaultUsergroup());
                profile.setOwnerUser(adminUser.getId());
                profile.setOwnerGroup(adminUser.getProfile().getDefaultUsergroup().getId());
                ldapGroup.setProfile(profile);
                new LdapGroupDAO().insert(ldapGroup,adminUser);
View Full Code Here

Examples of org.sonar.core.user.RoleDao

  @Before
  public void initResourcePermissions() {
    session = getMyBatis().openSession(false);
    project = new Project("project").setId(PROJECT_ID.intValue());
    settings = new Settings();
    permissionFacade = new PermissionFacade(new RoleDao(), new UserDao(getMyBatis()), new ResourceDao(getMyBatis(), System2.INSTANCE),
      new PermissionTemplateDao(getMyBatis(), System2.INSTANCE), settings);
    permissions = new DefaultResourcePermissions(getMyBatis(), permissionFacade);
  }
View Full Code Here

Examples of org.sonar.core.user.RoleDao

  public void setUp() {
    system2 = mock(System2.class);
    when(system2.now()).thenReturn(DateUtils.parseDate("2014-09-03").getTime());

    session = getMyBatis().openSession(false);
    RoleDao roleDao = new RoleDao();
    UserDao userDao = new UserDao(getMyBatis());
    permissionTemplateDao = new PermissionTemplateDao(getMyBatis(), System2.INSTANCE);
    Settings settings = new Settings();
    resourceDao = new ResourceDao(getMyBatis(), system2);
    permissionFacade = new PermissionFacade(roleDao, userDao, resourceDao, permissionTemplateDao, settings);
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.