com.fatwire.gst.foundation.wra
Class WraCoreFieldApiBypassDao

java.lang.Object
  extended by com.fatwire.gst.foundation.wra.AssetApiWraCoreFieldDao
      extended by com.fatwire.gst.foundation.wra.WraCoreFieldApiBypassDao
All Implemented Interfaces:
WraCoreFieldDao

public class WraCoreFieldApiBypassDao
extends AssetApiWraCoreFieldDao

Backdoor implementation of WraCoreFieldDao 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

Author:
Dolf Dijkstra

Field Summary
 
Fields inherited from interface com.fatwire.gst.foundation.wra.WraCoreFieldDao
VANITY_ATTRIBUTE_NAMES, WRA_ATTRIBUTE_NAMES
 
Method Summary
static WraCoreFieldApiBypassDao getBackdoorInstance(COM.FutureTense.Interfaces.ICS ics)
           
 WebReferenceableAsset getWra(com.fatwire.assetapi.data.AssetId id)
          Return a web referenceable asset bean given an input id.
 boolean isVanityAsset(com.fatwire.assetapi.data.AssetId id)
          Method to test if an asset has a vanity url, that is has a path field.
 boolean isWebReferenceable(com.fatwire.assetapi.data.AssetId id)
          Method to test whether or not an asset is web-referenceable.
 
Methods inherited from class com.fatwire.gst.foundation.wra.AssetApiWraCoreFieldDao
findP, getInstance, getVanityWra, isWebReferenceable, isWebReferenceable, resolveSite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBackdoorInstance

public static WraCoreFieldApiBypassDao getBackdoorInstance(COM.FutureTense.Interfaces.ICS ics)

isWebReferenceable

public boolean isWebReferenceable(com.fatwire.assetapi.data.AssetId id)
Method to test whether or not an asset is web-referenceable. todo: low priority: optimize as this will be called at runtime (assest api incache will mitigate the performance issue)

Specified by:
isWebReferenceable in interface WraCoreFieldDao
Overrides:
isWebReferenceable in class AssetApiWraCoreFieldDao
Parameters:
id - asset ID to check
Returns:
true if the asset is a valid web-referenceable asset, false if it is not

getWra

public WebReferenceableAsset getWra(com.fatwire.assetapi.data.AssetId id)
Return a web referenceable asset bean given an input id. Required fields must be set or an exception is thrown.

Specified by:
getWra in interface WraCoreFieldDao
Overrides:
getWra in class AssetApiWraCoreFieldDao
Parameters:
id - asset id
Returns:
WebReferenceableAsset, never null
See Also:
isWebReferenceable(AssetId)

isVanityAsset

public boolean isVanityAsset(com.fatwire.assetapi.data.AssetId id)
Description copied from interface: WraCoreFieldDao
Method to test if an asset has a vanity url, that is has a path field.

Specified by:
isVanityAsset in interface WraCoreFieldDao
Overrides:
isVanityAsset in class AssetApiWraCoreFieldDao
Parameters:
id - asset ID to check
Returns:
true if the asset has a vanity url, false if it is not


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