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 com.sourcetap.sfa.event.GenericWebEventProcessor;
20: import com.sourcetap.sfa.ui.UICache;
21: import com.sourcetap.sfa.ui.UIScreenSection;
22: import com.sourcetap.sfa.ui.UIWebScreenSection;
23: import com.sourcetap.sfa.util.UserInfo;
24:
25: import org.ofbiz.entity.GenericDelegator;
26: import org.ofbiz.entity.GenericEntityException;
27:
28: /**
29: * DOCUMENT ME!
30: *
31: */
32: public class LeadQueueUserSelectWEP extends GenericWebEventProcessor {
33: public static final String module = LeadQueueUserSelectWEP.class
34: .getName();
35:
36: /**
37: * DOCUMENT ME!
38: *
39: * @param userInfo
40: * @param screenName
41: * @param sectionName
42: * @param delegator
43: * @param uiCache
44: *
45: * @return
46: *
47: * @throws GenericEntityException
48: */
49: protected UIWebScreenSection getUiWebScreenSection(
50: UserInfo userInfo, String screenName, String sectionName,
51: GenericDelegator delegator, UICache uiCache)
52: throws GenericEntityException {
53: // This method is here so a child class can specify a different screen section class.
54: UIScreenSection uiScreenSection = uiCache.getUiScreenSection(
55: screenName, sectionName, userInfo.getPartyId());
56: LeadQueueUserSelectWSS leadQueueUserSelectWSS = null;
57:
58: if (uiScreenSection == null) {
59:
60: leadQueueUserSelectWSS = new LeadQueueUserSelectWSS(
61: userInfo, screenName, sectionName, delegator,
62: uiCache);
63: uiCache.putUiScreenSection(screenName, sectionName,
64: userInfo.getPartyId(),
65: (UIScreenSection) leadQueueUserSelectWSS);
66: } else {
67:
68: leadQueueUserSelectWSS = (LeadQueueUserSelectWSS) uiScreenSection;
69: }
70:
71: return (UIWebScreenSection) leadQueueUserSelectWSS;
72: }
73: }
|