Subversion Repositories SmartDukaan

Rev

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

Rev 3206 Rev 3339
Line 11... Line 11...
11
import in.shop2020.crm.handler.AgentHandler;
11
import in.shop2020.crm.handler.AgentHandler;
12
import in.shop2020.crm.handler.TicketHandler;
12
import in.shop2020.crm.handler.TicketHandler;
13
 
13
 
14
import java.text.ParseException;
14
import java.text.ParseException;
15
import java.util.ArrayList;
15
import java.util.ArrayList;
-
 
16
import java.util.Date;
16
import java.util.List;
17
import java.util.List;
17
 
18
 
18
import org.apache.thrift.TException;
19
import org.apache.thrift.TException;
19
import org.springframework.context.ApplicationContext;
20
import org.springframework.context.ApplicationContext;
20
import org.springframework.context.support.ClassPathXmlApplicationContext;
21
import org.springframework.context.support.ClassPathXmlApplicationContext;
Line 124... Line 125...
124
        }
125
        }
125
 
126
 
126
        return lastThriftActivity;
127
        return lastThriftActivity;
127
    }
128
    }
128
 
129
 
-
 
130
    public List<Activity> getActivitiesByCreator(long creatorId)
-
 
131
            throws TException {
-
 
132
        List<Activity> tactivities = new ArrayList<Activity>();
-
 
133
 
-
 
134
        for (in.shop2020.crm.domain.Activity ticket : activityHandler
-
 
135
                .getActivitiesByCreator(creatorId)) {
-
 
136
            tactivities.add(ticket.getThriftActivity());
-
 
137
        }
-
 
138
 
-
 
139
        return tactivities;
-
 
140
    }
-
 
141
 
129
    public List<Activity> getActivitiesForTicket(long ticketId)
142
    public List<Activity> getActivitiesForTicket(long ticketId)
130
            throws TException {
143
            throws TException {
131
        List<Activity> tactivities = new ArrayList<Activity>();
144
        List<Activity> tactivities = new ArrayList<Activity>();
132
 
145
 
133
        for (in.shop2020.crm.domain.Activity ticket : activityHandler
146
        for (in.shop2020.crm.domain.Activity ticket : activityHandler
Line 222... Line 235...
222
            ttickets.add(ticket.getThriftTicket());
235
            ttickets.add(ticket.getThriftTicket());
223
        }
236
        }
224
 
237
 
225
        return ttickets;
238
        return ttickets;
226
    }
239
    }
-
 
240
 
-
 
241
    public long getLastEmailProcessedTimestamp() throws TException {
-
 
242
        return agentHandler.getLastEmailProcessedTimestamp().getTime();
-
 
243
    }
-
 
244
 
-
 
245
    public void updateLastEmailProcessedTimestamp(long timestamp)
-
 
246
            throws TException {
-
 
247
        agentHandler.updateLastEmailProcessedTimestamp(new Date(timestamp));
-
 
248
    }
227
}
249
}