Examples of SecurityLinkInfo


Examples of com.sourcetap.sfa.security.SecurityLinkInfo

            EntityCondition condition = new EntityExpr("accountTypeId", EntityOperator.NOT_EQUAL, "base");

            try {
                accountGVL.addAll(SecurityWrapper.findByCondition("Account",
                        condition, null, getUserInfo(),
                        new SecurityLinkInfo("Account", "accountId", true),
                        delegator));

                Debug.logVerbose("[findAccounts] Account List: " +
                        accountGVL.toString(), module);
View Full Code Here

Examples of com.sourcetap.sfa.security.SecurityLinkInfo

     *
     * @return
     */
    public SecurityLinkInfo getSecurityLinkInfo(UserInfo userInfo,
        GenericDelegator delegator) {
        return new SecurityLinkInfo("Deal", "dealId", true);
    }
View Full Code Here

Examples of com.sourcetap.sfa.security.SecurityLinkInfo

        }

        try {
            return SecurityWrapper.findByCondition("Contact", condition,
                orderBy, userInfo,
                new SecurityLinkInfo("Account", "accountId", true), delegator);
        } catch (GenericEntityException e) {
            Debug.logError(
                "[OpportunityContactAvailableSelect.getDropDownValues] Error retrieving the contacts: ", module);
            Debug.logError(e.getLocalizedMessage(), module);
View Full Code Here

Examples of com.sourcetap.sfa.security.SecurityLinkInfo

     *
     * @return
     */
    public SecurityLinkInfo getSecurityLinkInfo(UserInfo userInfo,
        GenericDelegator delegator) {
        return new SecurityLinkInfo("Account", "accountId", true);
    }
View Full Code Here

Examples of com.sourcetap.sfa.security.SecurityLinkInfo

     *
     * @return
     */
    public SecurityLinkInfo getSecurityLinkInfo(UserInfo userInfo,
        GenericDelegator delegator) {
        return new SecurityLinkInfo("Account", "accountId", true);
    }
View Full Code Here

Examples of com.sourcetap.sfa.security.SecurityLinkInfo

        }

        try {
            return SecurityWrapper.findByCondition("Contact", condition,
                orderBy, userInfo,
                new SecurityLinkInfo("Account", "accountId", true), delegator);
        } catch (GenericEntityException e) {
            Debug.logError(
                "[UIContactDropDown.getDropDownValues] Error retrieving the dropdown values: ", module);
            Debug.logError(e.getLocalizedMessage(), module);
View Full Code Here

Examples of com.sourcetap.sfa.security.SecurityLinkInfo

     *
     * @return
     */
    public SecurityLinkInfo getSecurityLinkInfo(UserInfo userInfo,
        GenericDelegator delegator) {
        return new SecurityLinkInfo("Account", "accountId", false);
    }
View Full Code Here

Examples of com.sourcetap.sfa.security.SecurityLinkInfo

     *
     * @return
     */
    public SecurityLinkInfo getSecurityLinkInfo(UserInfo userInfo,
        GenericDelegator delegator) {
        return new SecurityLinkInfo("Lead", "leadId", false);
    }
View Full Code Here

Examples of com.sourcetap.sfa.security.SecurityLinkInfo

        }

        try {
            return SecurityWrapper.findByCondition("Contact", condition,
                orderBy, userInfo,
                new SecurityLinkInfo("Account", "accountId", true), delegator);
        } catch (GenericEntityException e) {
            Debug.logError(
                "[ActivityContactAvailableSelect.getDropDownValues] Error retrieving the contacts: ", module);
            Debug.logError(e.getLocalizedMessage(), module);
View Full Code Here

Examples of com.sourcetap.sfa.security.SecurityLinkInfo

  public List findMatchingAccounts(String leadCompany, UserInfo userInfo)
  {

    try {
      List accountList = SecurityWrapper.findByAnd("Account", UtilMisc.toList(new EntityExpr("accountName", EntityComparisonOperator.LIKE, leadCompany)),
          UtilMisc.toList("companyName"), userInfo, new SecurityLinkInfo("Account", "accountId", true), delegator);
         
      if ( accountList.size() < 1)
      {
          String companyNameCanon = StringHelper.replaceAll(leadCompany, ",", "");
          companyNameCanon = StringHelper.replaceAll(companyNameCanon, ".", "");
          companyNameCanon = companyNameCanon.toUpperCase();
         
          String removeStrings[] = { " CORP", " INC" };
          for ( int i=0; i < removeStrings.length; i++ )
          {
              int pos = companyNameCanon.lastIndexOf(removeStrings[i]);
              if ( pos > 0 )
                  companyNameCanon = companyNameCanon.substring(0, pos);
          }
          companyNameCanon += "%";
         
          accountList = SecurityWrapper.findByAnd("Account", UtilMisc.toList(new EntityExpr("accountName", EntityComparisonOperator.LIKE, companyNameCanon)),
            UtilMisc.toList("companyName"), userInfo, new SecurityLinkInfo("Account", "accountId", true), delegator);
      }
         
      return accountList;
    }
    catch ( Exception e)
View Full Code Here
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.