com.fatwire.gst.foundation.vwebroot
Class AssetApiVirtualWebrootDao

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

public final class AssetApiVirtualWebrootDao
extends Object
implements VirtualWebrootDao

DAO for working with Virtual Webroots

Since:
Jul 22, 2010
Author:
Tony Field

Nested Class Summary
static class AssetApiVirtualWebrootDao.UrlInfoComparator
          Comparator that compares virtual webroots by webroot.
 
Constructor Summary
AssetApiVirtualWebrootDao(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 WebReferenceableAsset, 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

AssetApiVirtualWebrootDao

public AssetApiVirtualWebrootDao(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 WebReferenceableAsset, 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.