Examples of Groups


Examples of com.narirelays.ems.persistence.orm.Groups

    if(id==null)
    {
      result.setFailed(GROUP_ID_IS_NULL);
      return result;
    }
    Groups group = groupsDAO.findById(id);
    if(group==null)
    {
      result.setFailed(GROUP_NOT_EXIST);
      return result;
    }
    String sql1 = "delete from group_members where group_id=?";
    String sql2 = "delete from group_authorities where group_id=?";
    try{
      jdbcTemplate.update(sql1, id);
      jdbcTemplate.update(sql2, id);
      groupsDAO.delete(group);
      result.setSucceed();
    }
    catch(Exception e)
    {
      e.printStackTrace();
      result.setFailed(e.getMessage());
    }
   
    /**
     * 日志记录删除操作,操作者;
     * */
    UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext()
                  .getAuthentication().getPrincipal();
    String currentUserName = userDetails.getUsername();
    String info = new StringBuffer().append("Group ").append(group.getName()).append(" is delete by")
              .append(currentUserName).toString();
    LOG.info(info);
   
    return result;
  }
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.Groups

    if(user==null)
    {
      result.setFailed(USER_NOT_EXIST);
      return result;
    }
    Groups group = groupsDAO.findById(groupID);
    if(group==null)
    {
      result.setFailed(GROUP_NOT_EXIST);
      return result;
    }
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.Groups

    if(user==null)
    {
      result.setFailed(USER_NOT_EXIST);
      return result;
    }
    Groups group = groupsDAO.findById(groupID);
    if(group==null)
    {
      result.setFailed(GROUP_NOT_EXIST);
      return result;
    }
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.Groups

    {
      //root角色不能被非root用户关联
      result.setFailed(CANNOT_ASSOCIATE_ROOT_AUTHORITY);
      return result;
    }
    Groups group = groupsDAO.findById(groupID);
    if(group==null)
    {
      result.setFailed(GROUP_NOT_EXIST);
      return result;
    }
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.Groups

    if(authority==null)
    {
      result.setFailed(AUTHORITY_IS_NULL);
      return result;
    }
    Groups group = groupsDAO.findById(groupID);
    if(group==null)
    {
      result.setFailed(GROUP_NOT_EXIST);
      return result;
    }
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.Groups

    if(groupID==null)
    {
      result.setFailed(GROUP_ID_IS_NULL);
      return result;
    }
    Groups group = groupsDAO.findById(groupID);
    if(group==null)
    {
      result.setFailed(GROUP_NOT_EXIST);
      return result;
    }
View Full Code Here

Examples of com.narirelays.ems.persistence.orm.Groups

    if(groupID==null)
    {
      result.setFailed(GROUP_ID_IS_NULL);
      return result;
    }
    Groups group = groupsDAO.findById(groupID);
    if(group==null)
    {
      result.setFailed(GROUP_NOT_EXIST);
      return result;
    }
View Full Code Here

Examples of com.redhat.gss.redhat_support_lib.infrastructure.Groups

    comments = new Comments(connectionManager);
    entitlements = new Entitlements(connectionManager);
    problems = new Problems(connectionManager);
    attachments = new Attachments(connectionManager);
    ping = new Ping(connectionManager);
    groups = new Groups(connectionManager);
    symptoms = new Symptoms(connectionManager);
  }
View Full Code Here

Examples of monashbook.models.Groups

        // Create dummy AdminUser
        Users adminUser = new Users();
        adminUser.setUsername("admin");
        adminUser.setPassword("8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918");
        // Create dummy group
        Groups adminGroup = new Groups();
        adminGroup.setGroupname("Admin Group");
        // Create dummy UserGroup
        UserGroup userGroup = new UserGroup();
        userGroup.setUsername(adminUser.getUsername());
        userGroup.setGroupname(adminGroup.getGroupname());
        userGroup.setGroups(adminGroup);
        userGroup.setUsers(adminUser);
        // Ensure entities are stored in each side of the relationship
        adminUser.getUserGroups().add(userGroup);
        adminGroup.getUserGroups().add(userGroup);
        // Add the user and the group to database
        bookService.addAdminUser(adminUser);
       
        // Create dummy books
        // First Book
View Full Code Here

Examples of org.apache.bval.jsr.groups.Groups

     * {@inheritDoc}
     */
    public ElementDescriptor.ConstraintFinder unorderedAndMatchingGroups(Class<?>... groups) {
        Set<ConstraintValidation<?>> matchingDescriptors =
            new HashSet<ConstraintValidation<?>>(constraintDescriptors.size());
        Groups groupChain = new GroupsComputer().computeGroups(groups);
        for (Group group : groupChain.getGroups()) {
            if (group.isDefault()) {
                // If group is default, check if it gets redefined
                List<Group> expandedDefaultGroup = metaBean.getFeature(JsrFeatures.Bean.GROUP_SEQUENCE);
                for (Group defaultGroupMember : expandedDefaultGroup) {
                    for (ConstraintValidation<?> descriptor : constraintDescriptors) {
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.