Subversion Repositories SmartDukaan

Rev

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

Rev 3711 Rev 4142
Line 5... Line 5...
5
 
5
 
6
import in.shop2020.crm.Activity;
6
import in.shop2020.crm.Activity;
7
import in.shop2020.crm.ActivityType;
7
import in.shop2020.crm.ActivityType;
8
import in.shop2020.crm.Agent;
8
import in.shop2020.crm.Agent;
9
import in.shop2020.crm.SearchFilter;
9
import in.shop2020.crm.SearchFilter;
-
 
10
import in.shop2020.crm.TicketCategory;
10
import in.shop2020.model.v1.user.User;
11
import in.shop2020.model.v1.user.User;
11
import in.shop2020.model.v1.user.UserContextException;
12
import in.shop2020.model.v1.user.UserContextException;
12
import in.shop2020.serving.auth.CRMAuthorizingRealm;
13
import in.shop2020.serving.auth.CRMAuthorizingRealm;
13
import in.shop2020.thrift.clients.CRMClient;
14
import in.shop2020.thrift.clients.CRMClient;
14
import in.shop2020.thrift.clients.HelperClient;
15
import in.shop2020.thrift.clients.HelperClient;
Line 34... Line 35...
34
    private static final long serialVersionUID = 1L;
35
    private static final long serialVersionUID = 1L;
35
    private List<Activity>    activities;
36
    private List<Activity>    activities;
36
    private String            activityId;
37
    private String            activityId;
37
    private String            description;
38
    private String            description;
38
    private String            type;
39
    private String            type;
-
 
40
    private String            category;
39
    private String            subject;
41
    private String            subject;
40
    private String            body;
42
    private String            body;
41
    private String            customerMobileNumber;
43
    private String            customerMobileNumber;
42
    private String            creatorId;
44
    private String            creatorId;
43
    private String[]          agentIds;
45
    private String[]          agentIds;
Line 64... Line 66...
64
                for (String agentId : agentIds) {
66
                for (String agentId : agentIds) {
65
                    searchFilter.getActivityCreatorIds().add(
67
                    searchFilter.getActivityCreatorIds().add(
66
                            CRMAuthorizingRealm.getAgent(agentId).getId());
68
                            CRMAuthorizingRealm.getAgent(agentId).getId());
67
                }
69
                }
68
 
70
 
-
 
71
                if (type != null && !type.isEmpty()) {
-
 
72
                    searchFilter.setActivityType(ActivityType.valueOf(type));
-
 
73
                }
-
 
74
 
-
 
75
                if (category != null && !category.isEmpty()) {
-
 
76
                    searchFilter.setTicketCategory(TicketCategory.valueOf(category));
-
 
77
                }
-
 
78
 
69
                try {
79
                try {
70
                    if (startTimestamp != null && !startTimestamp.isEmpty()) {
80
                    if (startTimestamp != null && !startTimestamp.isEmpty()) {
71
                        searchFilter.setStartTimestamp(SDF
81
                        searchFilter.setStartTimestamp(SDF
72
                                .parse(startTimestamp).getTime());
82
                                .parse(startTimestamp).getTime());
73
                    }
83
                    }
Line 330... Line 340...
330
    }
340
    }
331
 
341
 
332
    public void setCustomerName(String customerName) {
342
    public void setCustomerName(String customerName) {
333
        this.customerName = customerName;
343
        this.customerName = customerName;
334
    }
344
    }
-
 
345
 
-
 
346
    public String getCategory() {
-
 
347
        return category;
-
 
348
    }
-
 
349
 
-
 
350
    public void setCategory(String category) {
-
 
351
        this.category = category;
-
 
352
    }
335
}
353
}