com.fatwire.gst.foundation.vwebroot
Class VirtualWebrootApiBypassDao

java.lang.Object
  extended by com.fatwire.gst.foundation.vwebroot.VirtualWebrootApiBypassDao
All Implemented Interfaces:
VirtualWebrootDao

public class VirtualWebrootApiBypassDao
extends Object
implements VirtualWebrootDao

Backdoor implementation of VirtualWebrootDao that does not utilize any Asset APIs. This class should be used sparingly and may result in some dependencies, that would ordinarily be recorded, being skipped.

User: Tony Field Date: 2011-05-06


Nested Class Summary
static class VirtualWebrootApiBypassDao.UrlInfoComparator
          Comparator that compares virtual webroots by webroot.
 
Constructor Summary
VirtualWebrootApiBypassDao(COM.FutureTense.Interfaces.ICS ics)
           
 
Method Summary
 SortedSet<VirtualWebroot> getAllVirtualWebroots()
          Get all of the virtual webroots, sorted by URL length.
 VirtualWebroot getVirtualWebroot(long cid)
           
 String getVirtualWebrootEnvironment()
          Get the current virtual webroot environment as defined by the configuration properties.
 VirtualWebroot lookupVirtualWebrootForAsset(VanityAsset wra)
          Look up and return the VirtualWebroot corresponding to the specified VanityAsset, for the current environment.
 VirtualWebroot lookupVirtualWebrootForUri(String wraPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualWebrootApiBypassDao

public VirtualWebrootApiBypassDao(COM.FutureTense.Interfaces.ICS ics)
Method Detail

getVirtualWebroot

public VirtualWebroot getVirtualWebroot(long cid)

getAllVirtualWebroots

public SortedSet<VirtualWebroot> getAllVirtualWebroots()
Get all of the virtual webroots, sorted by URL length.

Specified by:
getAllVirtualWebroots in interface VirtualWebrootDao
Returns:
list of virtual webroots

getVirtualWebrootEnvironment

public String getVirtualWebrootEnvironment()
Get the current virtual webroot environment as defined by the configuration properties. Null indicates that none is configured.

Returns:
virtual webroot environment or null if not set.

lookupVirtualWebrootForAsset

public VirtualWebroot lookupVirtualWebrootForAsset(VanityAsset wra)
Look up and return the VirtualWebroot corresponding to the specified VanityAsset, for the current environment. If the current environment is not configured, no match can be found.

Specified by:
lookupVirtualWebrootForAsset in interface VirtualWebrootDao
Parameters:
wra - web-referenceable asset
Returns:
matching VirtualWebroot or null if no match is found.

lookupVirtualWebrootForUri

public VirtualWebroot lookupVirtualWebrootForUri(String wraPath)
Specified by:
lookupVirtualWebrootForUri in interface VirtualWebrootDao


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