Subversion Repositories SmartDukaan

Rev

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

Rev 5865 Rev 5909
Line 43... Line 43...
43
import java.util.Calendar;
43
import java.util.Calendar;
44
import java.util.Collections;
44
import java.util.Collections;
45
import java.util.Date;
45
import java.util.Date;
46
import java.util.HashMap;
46
import java.util.HashMap;
47
import java.util.List;
47
import java.util.List;
-
 
48
import java.util.Map;
48
import java.util.TimeZone;
49
import java.util.TimeZone;
49
 
50
 
50
import net.htmlparser.jericho.Source;
51
import net.htmlparser.jericho.Source;
51
 
52
 
52
import org.apache.shiro.SecurityUtils;
53
import org.apache.shiro.SecurityUtils;
Line 92... Line 93...
92
    private List<Payment>     payments;
93
    private List<Payment>     payments;
93
    private String            escalate;
94
    private String            escalate;
94
    private String            cancelReason;
95
    private String            cancelReason;
95
    private String            transactionId;
96
    private String            transactionId;
96
    private String            pickupExtension;
97
    private String            pickupExtension;
97
 
-
 
-
 
98
    private Map<String, Long> ticketCategorycountMap;
98
    private String paymentId;
99
    private String paymentId;
99
 
100
 
100
    private HashMap<String, String> allAttachmentsForTicket;
101
    private HashMap<String, String> allAttachmentsForTicket;
101
 
102
 
102
    public String index() {
103
    public String index() {
Line 1100... Line 1101...
1100
            return EXCEPTION;
1101
            return EXCEPTION;
1101
        }
1102
        }
1102
        return edit();
1103
        return edit();
1103
    }
1104
    }
1104
    
1105
    
-
 
1106
    public String getAllOpenTickets() {
-
 
1107
    	try {
-
 
1108
    		ticketCategorycountMap= new HashMap<String, Long>();
-
 
1109
            crmServiceClient = new CRMClient().getClient();
-
 
1110
            ticketCategorycountMap = crmServiceClient.getOpenTicketsMap();
-
 
1111
        } catch (TException e) {
-
 
1112
            String errorString = "Error getting tickets for "
-
 
1113
                    + currentAgentEmailId;
-
 
1114
            log.error(errorString, e);
-
 
1115
            addActionError(errorString);
-
 
1116
        }
-
 
1117
        return OPEN;
-
 
1118
    }
-
 
1119
    
1105
    public double getCustomerTrustLevel(long userId) {
1120
    public double getCustomerTrustLevel(long userId) {
1106
    	try {
1121
    	try {
1107
			userContextServiceClient = new UserClient().getClient();
1122
			userContextServiceClient = new UserClient().getClient();
1108
			return userContextServiceClient.getTrustLevel(userId);
1123
			return userContextServiceClient.getTrustLevel(userId);
1109
		} catch (TException e) {
1124
		} catch (TException e) {
Line 1394... Line 1409...
1394
    }
1409
    }
1395
 
1410
 
1396
    public void setPickupExtension(String pickupExtension) {
1411
    public void setPickupExtension(String pickupExtension) {
1397
        this.pickupExtension = pickupExtension;
1412
        this.pickupExtension = pickupExtension;
1398
    }
1413
    }
-
 
1414
 
-
 
1415
	public Map<String, Long> getTicketCategorycountMap() {
-
 
1416
		return ticketCategorycountMap;
-
 
1417
	}
-
 
1418
 
-
 
1419
	public void setTicketCategorycountMap(
-
 
1420
			Map<String, Long> ticketCategorycountMap) {
-
 
1421
		this.ticketCategorycountMap = ticketCategorycountMap;
-
 
1422
	}
1399
}
1423
}