Subversion Repositories SmartDukaan

Rev

Rev 21887 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21887 Rev 21888
Line 153... Line 153...
153
		} catch (ParseException e) {
153
		} catch (ParseException e) {
154
			throw new TException("Could not insert " + ticket, e);
154
			throw new TException("Could not insert " + ticket, e);
155
		}
155
		}
156
	}
156
	}
157
 
157
 
158
	public List<Activity> getActivities(SearchFilter searchFilter)
158
	public List<Activity> getActivities(SearchFilter searchFilter) throws TException {
159
	throws TException {
-
 
160
		List<Activity> tactivities = new ArrayList<Activity>();
159
		List<Activity> tactivities = new ArrayList<Activity>();
161
		log.info("Search Filter..."+searchFilter.isNotShowPmTickets());
160
		log.info("Search Filter..."+searchFilter.isNotShowPmTickets());
162
		in.shop2020.crm.domain.SearchFilter filter_to_check  =in.shop2020.crm.domain.SearchFilter.create(searchFilter);
161
		in.shop2020.crm.domain.SearchFilter filter_to_check  =in.shop2020.crm.domain.SearchFilter.create(searchFilter);
163
		log.info("Search Filter after conversion..."+filter_to_check.getNotShowPmTickets());
162
		log.info("Search Filter after conversion..."+filter_to_check.getNotShowPmTickets());
164
		List<in.shop2020.crm.domain.Activity> activities = activityHandler
163
		List<in.shop2020.crm.domain.Activity> activities = activityHandler
Line 176... Line 175...
176
					}
175
					}
177
				}
176
				}
178
				tactivities.add(activity);
177
				tactivities.add(activity);
179
			}
178
			}
180
		}
179
		}
181
 
-
 
-
 
180
		log.info("Returning tactivities."+tactivities.toString());
182
		return tactivities;
181
		return tactivities;
183
	}
182
	}
184
 
183
 
185
	public long insertActivity(Activity activity) throws TException {
184
	public long insertActivity(Activity activity) throws TException {
186
		try {
185
		try {
Line 218... Line 217...
218
	}
217
	}
219
 
218
 
220
	public List<Agent> getAgents(SearchFilter searchFilter) throws TException {
219
	public List<Agent> getAgents(SearchFilter searchFilter) throws TException {
221
		List<Agent> agents = new ArrayList<Agent>();
220
		List<Agent> agents = new ArrayList<Agent>();
222
 
221
 
223
		for (in.shop2020.crm.domain.Agent agent : agentHandler
222
		for (in.shop2020.crm.domain.Agent agent : agentHandler.getAgents(in.shop2020.crm.domain.SearchFilter.create(searchFilter))) {
224
				.getAgents(in.shop2020.crm.domain.SearchFilter
-
 
225
						.create(searchFilter))) {
-
 
226
			agents.add(agent.getThriftAgent());
223
			agents.add(agent.getThriftAgent());
227
		}
224
		}
228
 
225
 
229
		return agents;
226
		return agents;
230
	}
227
	}