com.ibm.commerce.registry
Class UrlRegistry

java.lang.Object
  |
  +--com.ibm.commerce.registry.UrlRegistry
All Implemented Interfaces:
Registry

public class UrlRegistry
extends java.lang.Object
implements Registry

This is the UrlRegistry.


Field Summary
protected static UrlRegistry singleton
           
protected  java.util.Hashtable urlTable
           
 
Fields inherited from interface com.ibm.commerce.registry.Registry
COPYRIGHT
 
Constructor Summary
UrlRegistry()
          Url registry constructor.
 
Method Summary
 void addElement(UrlRegistryEntry regEntry)
          Adds a UrlRegistryEntry to the list.
 void addElement(UrlRegistryEntry regEntry, java.util.Hashtable aCache)
          Adds a UrlRegistryEntry to the list.
 UrlRegistryEntry find(java.lang.String name, java.lang.Integer storeId)
          This method will lookup a url registry entry by the name and store entity id.
 void initialize()
          Initializes the UrlRegistry.
 void refresh()
          This method refreshes a the url registry cache from the database.
 void removeAllElements()
          Removes all url registry entries from the cache.
 boolean removeElement(UrlRegistryEntry entry)
          Removes an UrlRegistryEntry from the list.
static UrlRegistry singleton()
          This method returns a singleton url registry object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

protected static UrlRegistry singleton

urlTable

protected java.util.Hashtable urlTable
Constructor Detail

UrlRegistry

public UrlRegistry()
Url registry constructor.
Method Detail

addElement

public void addElement(UrlRegistryEntry regEntry)
Adds a UrlRegistryEntry to the list. It does not add the UrlRegistryEntry to the database.
Parameters:
obj - the UrlRegistryEntry to be added to the list

addElement

public void addElement(UrlRegistryEntry regEntry,
                       java.util.Hashtable aCache)
Adds a UrlRegistryEntry to the list. It does not add the UrlRegistryEntry to the database.
Parameters:
obj - the UrlRegistryEntry to be added to the list

find

public UrlRegistryEntry find(java.lang.String name,
                             java.lang.Integer storeId)
This method will lookup a url registry entry by the name and store entity id. If an entry with the given storeId is not defined, It will used the ECConstants.EC_NO_STOREID to look for the
Parameters:
name - java.lang.String the name of the request
memberId - java.lang.Long reference number of the member or merchant.
Returns:
com.ibm.commerce.registry.UrlRegistryEntry

initialize

public void initialize()
                throws java.lang.Exception
Initializes the UrlRegistry. This will include the initialization of the WcsApp with this instance of the registry.

Specified by:
initialize in interface Registry
Throws:
java.lang.Exception -  

refresh

public void refresh()
             throws java.lang.Exception
This method refreshes a the url registry cache from the database.
Specified by:
refresh in interface Registry
Throws:
java.lang.Exception -  

removeAllElements

public void removeAllElements()
Removes all url registry entries from the cache.

removeElement

public boolean removeElement(UrlRegistryEntry entry)
Removes an UrlRegistryEntry from the list. It does not remove the UrlRegistryEntry from the database.
Parameters:
obj - the UrlRegistryEntry to be removed to the list
Returns:
true if the UrlRegistryEntry was removed or false if it was not

singleton

public static UrlRegistry singleton()
This method returns a singleton url registry object.
Returns:
UrlRegistry - a singleton Url Registry object