com.fatwire.gst.foundation.url.db
Class UrlRegistry2

java.lang.Object
  extended by com.fatwire.gst.foundation.url.db.UrlRegistry2
All Implemented Interfaces:
WraPathTranslationService

public class UrlRegistry2
extends Object
implements WraPathTranslationService

WraPathTranslationService that is backed by the GSTUrlRegistry table.

Since:
Jun 17, 2010
Author:
Dolf Dijkstra

Constructor Summary
UrlRegistry2(COM.FutureTense.Interfaces.ICS ics, SimpleWRADao wraDao, VirtualWebrootDao vwDao, UrlRegistryDao regDao)
           
 
Method Summary
 void addAsset(com.fatwire.assetapi.data.AssetId id)
           
 void deleteAsset(com.fatwire.assetapi.data.AssetId id)
           
static UrlRegistry2 lookup(COM.FutureTense.Interfaces.ICS ics)
          Deprecated. 
 void rebuild(boolean stream)
          Rebuild all entries in the GST URL Registry table.
 AssetIdWithSite resolveAsset(String virtual_webroot, String url_path)
          Look up the asset corresponding to the input virtual-webroot and url-path
 void updateAsset_(com.fatwire.assetapi.data.AssetId id)
           
 void updateAsset(com.fatwire.assetapi.data.AssetId id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlRegistry2

public UrlRegistry2(COM.FutureTense.Interfaces.ICS ics,
                    SimpleWRADao wraDao,
                    VirtualWebrootDao vwDao,
                    UrlRegistryDao regDao)
Method Detail

resolveAsset

public AssetIdWithSite resolveAsset(String virtual_webroot,
                                    String url_path)
Description copied from interface: WraPathTranslationService
Look up the asset corresponding to the input virtual-webroot and url-path

Specified by:
resolveAsset in interface WraPathTranslationService
Returns:
asset id and site

addAsset

public void addAsset(com.fatwire.assetapi.data.AssetId id)
Specified by:
addAsset in interface WraPathTranslationService

updateAsset

public void updateAsset(com.fatwire.assetapi.data.AssetId id)
Specified by:
updateAsset in interface WraPathTranslationService

deleteAsset

public void deleteAsset(com.fatwire.assetapi.data.AssetId id)
Specified by:
deleteAsset in interface WraPathTranslationService

updateAsset_

public void updateAsset_(com.fatwire.assetapi.data.AssetId id)

rebuild

public void rebuild(boolean stream)
Rebuild all entries in the GST URL Registry table. Uses brute force method and can take a very long time.

Parameters:
stream - stream a message back to the browser to prevent timeouts

lookup

@Deprecated
public static UrlRegistry2 lookup(COM.FutureTense.Interfaces.ICS ics)
Deprecated. 



Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.