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.opportunity;
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.UIUserDropDown;
29: import com.sourcetap.sfa.ui.UIWebScreenSection;
30: import com.sourcetap.sfa.util.UserInfo;
31:
32: /**
33: * DOCUMENT ME!
34: *
35: */
36: public class OpportunityTeamSelectWSS extends UIWebScreenSection {
37: public static final String module = OpportunityTeamSelectWSS.class
38: .getName();
39:
40: public OpportunityTeamSelectWSS(UserInfo userInfo,
41: String screenName, String sectionName,
42: GenericDelegator delegator, UICache uiCache)
43: throws GenericEntityException {
44: super (userInfo, screenName, sectionName, delegator, uiCache);
45: }
46:
47: /**
48: * DOCUMENT ME!
49: *
50: * @param useQueryParameterValueMap
51: * @param listedEntityName
52: * @param userInfo
53: * @param delegator
54: *
55: * @return
56: */
57: public List getEligibleEntityList(
58: HashMap useQueryParameterValueMap, String listedEntityName,
59: UserInfo userInfo, GenericDelegator delegator) {
60:
61: UIUserDropDown uiUserDropDown = new UIUserDropDown();
62:
63: try {
64: return uiUserDropDown.getDropDownValuesDynamic(delegator,
65: useQueryParameterValueMap, userInfo);
66: } catch (Exception e) {
67: Debug
68: .logError(
69: "[OpportunityTeamSelectWSS.getEligibleEntityList] An error occurred while getting opportunity team select values:",
70: module);
71: Debug.logError(e.getLocalizedMessage(), module);
72:
73: return new ArrayList();
74: }
75: }
76: }
|