Developer Area

Changeset 570 for apps

Show
Ignore:
Timestamp:
11/09/09 11:07:51 (5 years ago)
Author:
jonmaycock
Message:

Changes to publisher list lookup

Location:
apps/blackberry/branches/1.5/blackberry/src/org/telnic/blackberry/util/xml
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • apps/blackberry/branches/1.5/blackberry/src/org/telnic/blackberry/util/xml/PublishersList.java

    r339 r570  
    3333 * 
    3434 * @author Jonathan Maycock 
    35  * @version $Id: PublishersList.java,v 1.17 2009/03/05 11:41:28 jm2 Exp $ 
     35 * @version $Id: PublishersList.java,v 1.18 2009/11/06 11:53:20 jm2 Exp $ 
    3636 */ 
    3737public final class PublishersList 
     
    114114            Logger.logMessage( "Publishers list not in store", Options.KEY_LOG_APPLICATION ); 
    115115            final TelnicWebServices x = new TelnicWebServices(); 
    116             x.listPublishers( ui, telname ); 
     116            x.listPublishers( ui, telname, false ); 
    117117            // Publishers list is set from a callback waiting for the https call to return. 
    118118        } 
     
    183183    } 
    184184 
    185  
    186185    /** 
    187186     * Sets the publishers list to the given value. 
     
    200199    } 
    201200 
    202  
    203201    /** 
    204202     * Remove the publishers list. 
  • apps/blackberry/branches/1.5/blackberry/src/org/telnic/blackberry/util/xml/SOMemberWebServices.java

    r339 r570  
    720720     */ 
    721721 
    722     protected static Hashtable listPublishers (final BlackberryUICallback ui, final String telnameToLookup, final SoapWorker tw) 
     722    protected static Hashtable listPublishers (final BlackberryUICallback ui, final String telnameToLookup, final SoapWorker tw, final boolean loginLookup) 
    723723    { 
    724724            try 
     
    726726                tw.setSoapType(TelnicWebServicesReference.SOAP_CALL_LIST_PUBLISHERS); 
    727727 
    728                 if (!Options.getInstance().getOption( Options.REGISTERED_USER ).equals( "true" )) 
    729                 { 
    730                     //Not a registered user, so return an empty list. 
    731                     if (!tw.isCancelled()) 
    732                     { 
    733                         return new Hashtable(); 
     728                if (!loginLookup) 
     729                { 
     730                    if (!Options.getInstance().getOption( Options.REGISTERED_USER ).equals( "true" )) 
     731                    { 
     732                        //Not a registered user, so return an empty list. 
     733                        if (!tw.isCancelled()) 
     734                        { 
     735                            return new Hashtable(); 
     736                        } 
    734737                    } 
    735738                } 
  • apps/blackberry/branches/1.5/blackberry/src/org/telnic/blackberry/util/xml/TelnicWebServices.java

    r339 r570  
    5555 * 
    5656 * @author Jonathan Maycock, Ben Dowling 
    57  * @version $Id: TelnicWebServices.java,v 1.35 2009/01/16 14:34:21 jm2 Exp $ 
     57 * @version $Id: TelnicWebServices.java,v 1.36 2009/11/06 11:53:36 jm2 Exp $ 
    5858 */ 
    5959 
     
    745745     * @param telname 
    746746     */ 
    747     public void listPublishers (final BlackberryUICallback ui, final String telnameToLookup) 
    748     { 
    749         Runnable r = new Runnable() 
    750         { 
    751             public void run () 
    752             { 
    753                 Hashtable pl = SOMemberWebServices.listPublishers( ui, telnameToLookup, sw ); 
     747    public void listPublishers (final BlackberryUICallback ui, final String telnameToLookup, final boolean loginLookup) 
     748    { 
     749        Runnable r = new Runnable() 
     750        { 
     751            public void run () 
     752            { 
     753                Hashtable pl = SOMemberWebServices.listPublishers( ui, telnameToLookup, sw, loginLookup ); 
    754754 
    755755                if (!sw.isCancelled() && pl != null) 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us