Package com.sourcetap.sfa.util

Examples of com.sourcetap.sfa.util.Preference


            timer.timerString(1, "[UIScreenSection.UIScreenSection] Got section");
        }

        // if rowsPerPage = 0, then use the global prefernece ROWS_PER_PAGE.
        if (rowsPerPage <= 0) {
            Preference pref = Preference.getInstance(delegator);
            rowsPerPage = pref.getPreference(userInfo.getPartyId(),
                    userInfo.getAccountId(), PREFERENCE_ROWS_PER_PAGE, 20);
        }

        // Get the uiScreenSectionEntity entities.
View Full Code Here


      out.write("\r\n\r\n");

String action = request.getParameter("action");
if ( (action == null ) || ( action.length() < 1) )
{
   Preference pref = Preference.getInstance(delegator);
   UserInfo userInfo  = (UserInfo) session.getAttribute("userInfo");
   action = pref.getPreference( userInfo.getPartyId(), userInfo.getAccountId(), "SCREEN_ACTION", UIScreenSection.ACTION_SHOW_INSERT);
}


      out.write("\r\n\r\n");
View Full Code Here

        String linkEntity = null;
        String linkAttribute = null;
        String partyId = userInfo.getPartyId();
        String roleId = userInfo.getRoleId();

        Preference preference = new Preference(delegator);
        String securityMode = preference.getPreference(userInfo.getAccountId(),
                "SECURITY_MODE", "team");

        Debug.logVerbose("[buildSecurityInfo] securityMode: " + securityMode, module);

        if (securityInfo != null) {
View Full Code Here

        List entityNameList = uiWebScreenSection.getEntityNameList();

        String queryMode = UtilFormatOut.checkNull(request.getParameter("queryMode"));
        if ( queryMode.length() < 1)
        {
          Preference pref = Preference.getInstance(delegator);
         
          queryMode = pref.getPreference( userInfo.getPartyId(), userInfo.getAccountId(), "QUERY_MODE", "standard");
         
        }
        uiWebScreenSection.setQueryMode(queryMode);
       
        //    if (DEBUG) Debug.logVerbose("[processShowQuery] Entity name List: " + entityNameList.toString());
View Full Code Here

      out.write("\r\n\r\n");

String action = request.getParameter("action");
if ( (action == null ) || ( action.length() < 1) )
{
   Preference pref = Preference.getInstance(delegator);
   UserInfo userInfo  = (UserInfo) session.getAttribute("userInfo");
   action = pref.getPreference( userInfo.getPartyId(), userInfo.getAccountId(), "SCREEN_ACTION", UIScreenSection.ACTION_SHOW_INSERT);
}


      out.write("\r\n\r\n");
View Full Code Here

     * @return List of generic values to be displayed in the drop down.  This will be null if an error occurs.
     */
    public List getDropDownValuesDynamic(GenericDelegator delegator,
        Map filterValues, UserInfo userInfo) {
         
    Preference preference = new Preference(delegator);
    String salesProcess = preference.getPreference(userInfo.getAccountId(),
          "SALES_PROCESS", "standard");
    try {
 
      String dealStageTypeId = "1";
      List dealStageTypeList = delegator.findByAnd("DealStageType", UtilMisc.toMap("accountId", userInfo.getAccountId(), "dealStageTypeName", salesProcess), null);
View Full Code Here

        }
    }
   
    public static String getDefaultSaleProcessId(GenericDelegator delegator, UserInfo userInfo)
    {
    Preference preference = new Preference(delegator);
    String salesProcess = preference.getPreference(userInfo.getAccountId(),
          "SALES_PROCESS", "standard");
    String dealStageTypeId = "1";

    try {
 
View Full Code Here

      return dealStageTypeId;
    }
   
    public static List getDefaultSalesProcessStages(GenericDelegator delegator, UserInfo userInfo)
    {     
    Preference preference = new Preference(delegator);
    String salesProcess = preference.getPreference(userInfo.getAccountId(),
          "SALES_PROCESS", "standard");
    try {
 
      String dealStageTypeId = "1";
      List dealStageTypeList = delegator.findByAnd("DealStageType", UtilMisc.toMap("accountId", userInfo.getAccountId(), "dealStageTypeName", salesProcess), null);
View Full Code Here

        return returnInt;
    }
   
    public static int getFiscalYearStartMonth( GenericDelegator delegator, UserInfo userInfo )
    {
    Preference pref = Preference.getInstance(delegator);
  
    int FYStartMonth = pref.getPreference(userInfo.getPartyId(), userInfo.getAccountId(), "FISCAL_YEAR_START", 1);
   
    return FYStartMonth;
    }
View Full Code Here

TOP

Related Classes of com.sourcetap.sfa.util.Preference

Copyright © 2018 www.massapicom. 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.