public void setDisabledIds(List<String> ids) { if (dao == null) { dao = new UserDao(context); } dao.setDisabledIds(ids); valueCache.put(Key.DisabledIds, ids); }
public void setDisabledGroups(List<String> groups) { if (dao == null) { dao = new UserDao(context); } dao.setDisabledGroups(groups); valueCache.put(Key.DisabledGroups, groups); }
public List<String> getDisabledIds() { Object val = valueCache.get(Key.DisabledIds); if (dao == null) { dao = new UserDao(context); } if (val == null) { val = dao.getDisabledIds(); valueCache.put(Key.DisabledIds, val); } return (List<String>) val; }
public boolean saveRobotList(List<RobotUser> robotList) { UserDao dao = new UserDao(context); dao.saveRobotUser(robotList); return true; }
public Map<String, RobotUser> getRobotList() { UserDao dao = new UserDao(context); return dao.getRobotUser(); }
public void saveContact(EaseUser user) { UserDao dao = new UserDao(context); dao.saveContact(user); }
public Map<String, EaseUser> getContactList() { UserDao dao = new UserDao(context); return dao.getContactList(); }
public boolean saveContactList(List<EaseUser> contactList) { UserDao dao = new UserDao(context); dao.saveContactList(contactList); return true; }