01: /*
02: *
03: * Copyright (c) 2004 SourceTap - www.sourcetap.com
04: *
05: * The contents of this file are subject to the SourceTap Public License
06: * ("License"); You may not use this file except in compliance with the
07: * License. You may obtain a copy of the License at http://www.sourcetap.com/license.htm
08: * Software distributed under the License is distributed on an "AS IS" basis,
09: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
10: * the specific language governing rights and limitations under the License.
11: *
12: * The above copyright notice and this permission notice shall be included
13: * in all copies or substantial portions of the Software.
14: *
15: */
16:
17: package com.sourcetap.sfa.lead;
18:
19: import java.util.ArrayList;
20: import java.util.HashMap;
21: import java.util.List;
22:
23: import org.ofbiz.base.util.Debug;
24: import org.ofbiz.entity.GenericDelegator;
25: import org.ofbiz.entity.GenericEntityException;
26:
27: import com.sourcetap.sfa.ui.UICache;
28: import com.sourcetap.sfa.ui.UIWebScreenSection;
29: import com.sourcetap.sfa.util.UserInfo;
30:
31: /**
32: * DOCUMENT ME!
33: *
34: */
35: public class LeadQueueUserSelectWSS extends UIWebScreenSection {
36: public static final String module = LeadQueueUserSelectWSS.class
37: .getName();
38:
39: public LeadQueueUserSelectWSS(UserInfo userInfo, String screenName,
40: String sectionName, GenericDelegator delegator,
41: UICache uiCache) throws GenericEntityException {
42: super (userInfo, screenName, sectionName, delegator, uiCache);
43: }
44:
45: /**
46: * DOCUMENT ME!
47: *
48: * @param useQueryParameterValueMap
49: * @param listedEntityName
50: * @param userInfo
51: * @param delegator
52: *
53: * @return
54: */
55: public List getEligibleEntityList(
56: HashMap useQueryParameterValueMap, String listedEntityName,
57: UserInfo userInfo, GenericDelegator delegator) {
58:
59: LeadQueueUserAvailableSelect leadQueueUserAvailableSelect = new LeadQueueUserAvailableSelect();
60:
61: try {
62: return leadQueueUserAvailableSelect.getDropDownValues(
63: delegator, useQueryParameterValueMap, userInfo);
64: } catch (Exception e) {
65: Debug
66: .logError(
67: "[LeadQueueUserSelectWSS.getEligibleEntityList] An error occurred while getting leadQueue user select values:",
68: module);
69: Debug.logError(e.getLocalizedMessage(), module);
70:
71: return new ArrayList();
72: }
73: }
74: }
|