Subversion Repositories SmartDukaan

Rev

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

Rev 3405 Rev 3546
Line 43... Line 43...
43
    // fields for unregistered users
43
    // fields for unregistered users
44
    private String         customerEmailId;
44
    private String         customerEmailId;
45
    private String         customerName;
45
    private String         customerName;
46
    private String         customerMobileNumber;
46
    private String         customerMobileNumber;
47
 
47
 
48
    private Agent          ticketAssignee;
-
 
49
    private Agent          creator;
-
 
50
 
-
 
51
    /**
48
    /**
52
     * Converts a thrift activity object to our domain object for activity
49
     * Converts a thrift activity object to our domain object for activity
53
     * 
50
     * 
54
     * @param tactivity
51
     * @param tactivity
55
     * @return
52
     * @return
Line 95... Line 92...
95
 
92
 
96
        if (tactivity.isSetTicketId()) {
93
        if (tactivity.isSetTicketId()) {
97
            activity.ticketId = tactivity.getTicketId();
94
            activity.ticketId = tactivity.getTicketId();
98
        }
95
        }
99
 
96
 
100
        if (tactivity.isSetCreator()) {
-
 
101
            activity.creator = Agent.create(tactivity.getCreator());
-
 
102
        }
-
 
103
 
-
 
104
        if (tactivity.isSetTicketAssignee()) {
-
 
105
            activity.ticketAssignee = Agent.create(tactivity.getTicketAssignee());
-
 
106
        }
-
 
107
 
-
 
108
        if (tactivity.isSetTicketAssigneeId()) {
97
        if (tactivity.isSetTicketAssigneeId()) {
109
            activity.ticketAssigneeId = tactivity.getTicketAssigneeId();
98
            activity.ticketAssigneeId = tactivity.getTicketAssigneeId();
110
        }
99
        }
111
 
100
 
112
        return activity;
101
        return activity;
Line 156... Line 145...
156
 
145
 
157
        if (customerEmailId != null) {
146
        if (customerEmailId != null) {
158
            tactivity.setCustomerEmailId(customerEmailId);
147
            tactivity.setCustomerEmailId(customerEmailId);
159
        }
148
        }
160
 
149
 
161
        if (creator != null) {
-
 
162
            tactivity.setCreator(creator.getThriftAgent());
-
 
163
        }
-
 
164
 
-
 
165
        if (ticketAssignee != null) {
-
 
166
            tactivity.setTicketAssignee(ticketAssignee.getThriftAgent());
-
 
167
        }
-
 
168
 
-
 
169
        return tactivity;
150
        return tactivity;
170
    }
151
    }
171
 
152
 
172
    public long getId() {
153
    public long getId() {
173
        return id;
154
        return id;
Line 302... Line 283...
302
    }
283
    }
303
 
284
 
304
    public void setCustomerName(String customerName) {
285
    public void setCustomerName(String customerName) {
305
        this.customerName = customerName;
286
        this.customerName = customerName;
306
    }
287
    }
307
 
-
 
308
    public Agent getTicketAssignee() {
-
 
309
        return ticketAssignee;
-
 
310
    }
-
 
311
 
-
 
312
    public void setTicketAssignee(Agent ticketAssignee) {
-
 
313
        this.ticketAssignee = ticketAssignee;
-
 
314
    }
-
 
315
 
-
 
316
    public Agent getCreator() {
-
 
317
        return creator;
-
 
318
    }
-
 
319
 
-
 
320
    public void setCreator(Agent creator) {
-
 
321
        this.creator = creator;
-
 
322
    }
-
 
323
}
288
}