com.arsdigita.cms.contenttypes
Class ContentItemTraversalAdapter

java.lang.Object
  extended bycom.arsdigita.domain.SimpleDomainObjectTraversalAdapter
      extended bycom.arsdigita.cms.contenttypes.ContentItemTraversalAdapter
All Implemented Interfaces:
com.arsdigita.domain.DomainObjectTraversalAdapter

public class ContentItemTraversalAdapter
extends com.arsdigita.domain.SimpleDomainObjectTraversalAdapter

An adapter for content items allowing pluggable assets to extend the traversal.


Field Summary
 
Fields inherited from class com.arsdigita.domain.SimpleDomainObjectTraversalAdapter
RULE_EXCLUDE, RULE_INCLUDE
 
Constructor Summary
ContentItemTraversalAdapter()
           
ContentItemTraversalAdapter(com.arsdigita.domain.SimpleDomainObjectTraversalAdapter adapter)
           
 
Method Summary
 boolean processProperty(com.arsdigita.domain.DomainObject obj, String path, com.arsdigita.persistence.metadata.Property prop, String context)
          If the path references an asset, then delegates to the asset's adapter, otherwise delegates to the content item's primary adapter
static void registerAssetAdapter(String path, com.arsdigita.domain.DomainObjectTraversalAdapter adapter, String context)
           
 
Methods inherited from class com.arsdigita.domain.SimpleDomainObjectTraversalAdapter
addAssociationProperty, addAttributeProperty, setAssociationRule, setAttributeRule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentItemTraversalAdapter

public ContentItemTraversalAdapter()

ContentItemTraversalAdapter

public ContentItemTraversalAdapter(com.arsdigita.domain.SimpleDomainObjectTraversalAdapter adapter)
Method Detail

registerAssetAdapter

public static void registerAssetAdapter(String path,
                                        com.arsdigita.domain.DomainObjectTraversalAdapter adapter,
                                        String context)

processProperty

public boolean processProperty(com.arsdigita.domain.DomainObject obj,
                               String path,
                               com.arsdigita.persistence.metadata.Property prop,
                               String context)
If the path references an asset, then delegates to the asset's adapter, otherwise delegates to the content item's primary adapter



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC