fieldTypeMap.put("due_date", Constant.DATA_TYPE_DATETIME);
fieldTypeMap.put("created_on", Constant.DATA_TYPE_DATETIME);
fieldTypeMap.put("updated_on", Constant.DATA_TYPE_DATETIME);
User loginUser = UserUtil.getLoginUser();
SearchCondition searchCondition = getSearchCondition(fieldTypeMap,
loginUser.getScope_task(), loginUser);
if (!CommonUtil.isNullOrEmpty(moreFilterKey)) {
String condition = searchCondition.getCondition();
condition += " and " + moreFilterKey + "=" + moreFilterValue;
searchCondition.setCondition(condition);
}
SearchResult<Task> result = baseService.getPaginationObjects(CLAZZ,
searchCondition);
Iterator<Task> tasks = result.getResult().iterator();