예제 #1
0
  public void setDisabledIds(List<String> ids) {
    if (dao == null) {
      dao = new UserDao(context);
    }

    dao.setDisabledIds(ids);
    valueCache.put(Key.DisabledIds, ids);
  }
예제 #2
0
  public void setDisabledGroups(List<String> groups) {
    if (dao == null) {
      dao = new UserDao(context);
    }

    dao.setDisabledGroups(groups);
    valueCache.put(Key.DisabledGroups, groups);
  }
예제 #3
0
  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;
  }
예제 #4
0
 public boolean saveRobotList(List<RobotUser> robotList) {
   UserDao dao = new UserDao(context);
   dao.saveRobotUser(robotList);
   return true;
 }
예제 #5
0
 public Map<String, RobotUser> getRobotList() {
   UserDao dao = new UserDao(context);
   return dao.getRobotUser();
 }
예제 #6
0
 public void saveContact(EaseUser user) {
   UserDao dao = new UserDao(context);
   dao.saveContact(user);
 }
예제 #7
0
 public Map<String, EaseUser> getContactList() {
   UserDao dao = new UserDao(context);
   return dao.getContactList();
 }
예제 #8
0
 public boolean saveContactList(List<EaseUser> contactList) {
   UserDao dao = new UserDao(context);
   dao.saveContactList(contactList);
   return true;
 }