Package com.sourcetap.sfa.activity

Source Code of com.sourcetap.sfa.activity.ActivityContactSelectWEP

/*
*
* Copyright (c) 2004 SourceTap - www.sourcetap.com
*
*  The contents of this file are subject to the SourceTap Public License
* ("License"); You may not use this file except in compliance with the
* License. You may obtain a copy of the License at http://www.sourcetap.com/license.htm
* Software distributed under the License is distributed on an  "AS IS"  basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
*/

package com.sourcetap.sfa.activity;

import org.ofbiz.base.util.Debug;
import org.ofbiz.entity.GenericDelegator;
import org.ofbiz.entity.GenericEntityException;

import com.sourcetap.sfa.event.GenericWebEventProcessor;
import com.sourcetap.sfa.ui.UICache;
import com.sourcetap.sfa.ui.UIScreenSection;
import com.sourcetap.sfa.ui.UIWebScreenSection;
import com.sourcetap.sfa.util.UserInfo;


/**
* DOCUMENT ME!
*
*/
public class ActivityContactSelectWEP extends GenericWebEventProcessor {
  public static final String module = ActivityContactSelectWEP.class.getName();

    /**
     * DOCUMENT ME!
     *
     * @param userInfo
     * @param screenName
     * @param sectionName
     * @param delegator
     * @param uiCache
     *
     * @return
     *
     * @throws GenericEntityException
     */
    protected UIWebScreenSection getUiWebScreenSection(UserInfo userInfo,
        String screenName, String sectionName, GenericDelegator delegator,
        UICache uiCache) throws GenericEntityException {
        // This method is here so a child class can specify a different screen section class.
        Debug.logVerbose(
                "-->[ActivityContactSelectWEP.getUiWebScreenSection()] Looking in " +
                "cache for UIScreenSection", module);

        UIScreenSection uiScreenSection = uiCache.getUiScreenSection(screenName,
                sectionName, userInfo.getPartyId());
        ActivityContactSelectWSS activityContactSelectWSS = null;

        if (uiScreenSection == null) {
            Debug.logVerbose(
                    "-->[ActivityContactSelectWEP.getUiWebScreenSection()] Screen section " +
                    "not found in cache. Creating", module);

            activityContactSelectWSS = new ActivityContactSelectWSS(userInfo,
                    screenName, sectionName, delegator, uiCache);
            uiCache.putUiScreenSection(screenName, sectionName,
                userInfo.getPartyId(),
                (UIScreenSection) activityContactSelectWSS);
        } else {
            Debug.logVerbose(
                    "-->[ActivityContactSelectWEP.getUiWebScreenSection()] Screen section found in cache", module);
           
            activityContactSelectWSS = (ActivityContactSelectWSS) uiScreenSection;
        }

        return (UIWebScreenSection) activityContactSelectWSS;
    }
}
TOP

Related Classes of com.sourcetap.sfa.activity.ActivityContactSelectWEP

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.