Package org.jayasoft.woj.server.data

Examples of org.jayasoft.woj.server.data.GroupDao.update()


    public void updateGroup(Group[] grps) {
        GroupDao dao= WOJServer.getInstance().getDataService().getGroupDao();
        for (int i = 0; i < grps.length; i++) {
            Group group = grps[i];
            dao.update(group);
        }
        LOGGER.info(grps.length + "groups successfully updates.");
    }

    public void addUser(User[] usrs) {
View Full Code Here


        if(list != null) {
            Object[] groups = (Object[]) ServiceProvider.getDefault().getEncodingService().decode(list);
            GroupDao dao = WOJServer.getInstance().getDataService().getGroupDao();
            for (int i = 0; i < groups.length; i++) {
                Object object = groups[i];
                dao.update(object);
            }
        }
        return null;
    }
}
View Full Code Here

//                    g.setDedicatedSpace(g.getDedicatedSpace()*1024);
                    if (gDao.getGroup(String.valueOf(g.getId())) == null) {
                        gDao.insert(g);
                        LOGGER.debug(g + " has been inserted.");
                    } else {
                        gDao.update(g);
                        LOGGER.debug(g + " has been updated.");
                    }
                }
                LOGGER.debug(groups.length + " groups synchronized.");
            }
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.