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