com.arsdigita.cms
Class ArticleImageAssnCollection

java.lang.Object
  extended bycom.arsdigita.domain.DomainQuery
      extended bycom.arsdigita.domain.DomainCollection
          extended bycom.arsdigita.cms.ImageAssetCollection
              extended bycom.arsdigita.cms.ArticleImageAssnCollection
All Implemented Interfaces:
com.arsdigita.persistence.DataQuery

public class ArticleImageAssnCollection
extends ImageAssetCollection

This class contains contains a collection of ArticleImageAssociations, each of which points to an image, and each of which has a caption. Ideally it should be constructed with a DataCollection of ArticleImageAssociations which has been filtered on isDeleted=0, or there will be deleted associations in the collection. It extends ImageAssetCollection because we need to pass it off as an ImageAssetCollection at various places in the UI code.

Author:
Hugh Brock .
See Also:
DomainCollection, DataCollection

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.domain.DomainCollection
m_dataCollection
 
Fields inherited from class com.arsdigita.domain.DomainQuery
m_dataQuery
 
Constructor Summary
protected ArticleImageAssnCollection(com.arsdigita.persistence.DataCollection dataCollection)
          Constructor.
 
Method Summary
 com.arsdigita.persistence.Filter addEqualsFilter(String attribute, Object value)
           
 String getCaption()
           
 com.arsdigita.domain.DomainObject getDomainObject()
          Returns a DomainObject (the ArticleImageAssociation for the current position in the collection.
 ImageAsset getImage()
          Returns a Image for the current position in the collection.
 
Methods inherited from class com.arsdigita.cms.ImageAssetCollection
addFilter, addOrder, clearFilter, clearOrder
 
Methods inherited from class com.arsdigita.domain.DomainQuery
addFilter, addInSubqueryFilter, addInSubqueryFilter, addNotEqualsFilter, addNotInSubqueryFilter, addOrderWithNull, addPath, alias, close, first, get, getFilterFactory, getParameter, getPosition, getPropertyValues, getType, hasProperty, isAfterLast, isBeforeFirst, isEmpty, isFirst, isLast, last, next, previous, removeFilter, reset, rewind, setFilter, setOrder, setParameter, setRange, setRange, setReturnsLowerBound, setReturnsUpperBound, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ArticleImageAssnCollection

protected ArticleImageAssnCollection(com.arsdigita.persistence.DataCollection dataCollection)
Constructor. Should only be called from Article.getImages()

Method Detail

getDomainObject

public com.arsdigita.domain.DomainObject getDomainObject()
Returns a DomainObject (the ArticleImageAssociation for the current position in the collection.

Overrides:
getDomainObject in class ImageAssetCollection

getImage

public ImageAsset getImage()
Returns a Image for the current position in the collection.

Overrides:
getImage in class ImageAssetCollection

getCaption

public String getCaption()

addEqualsFilter

public com.arsdigita.persistence.Filter addEqualsFilter(String attribute,
                                                        Object value)


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