com.vinculumtech.carrierwave
Class ImageableFactory

java.lang.Object
  extended bycom.vinculumtech.carrierwave.ImageableFactory

public final class ImageableFactory
extends java.lang.Object

The ImageableFactory class provides an interface to PersistenceRoot for use by internal CarrierWave functions.

Version:
$Id: //depot/carrierwave/src/server/com/vinculumtech/carrierwave/ImageableFactory.java#42 $

Field Summary
static java.lang.String DEPENDENT_VIA_PERSISTENCE
           
 
Method Summary
static Imageable constructObject(Image image)
          Construct an Imageable system object for the given image.
static java.util.List findAllIdentifiableObjects(java.lang.String imageType)
          Find all Imageable instances of the given imageType.
static java.util.List findAllInstancesOf(ImageableCollectionFinder collectionFinder)
          Returns all applicable instances for the given finder.
static ImageableIdentifiable findIdentifiableObject(Icon icon)
          Find the Imageable system object with the specified icon.
static ImageableIdentifiable findIdentifiableObject(java.lang.String imageType, java.lang.String referenceableName)
          Find the Imageable system object with the specified icon.
static java.lang.Object findInstanceOf(ImageableObjectFinder objectFinder)
          Returns all applicable instances for the given finder.
static Imageable findObject(Icon icon)
          Finds the Imageable object for the given Icon, if the icon represents a dependent, it is found by first finding the parent.
static java.lang.Class getCommonClass()
          Get the common identifiable object type.
static boolean isAlwaysDelegateDependentToPersistence()
           
static boolean isCommonClass(java.lang.Class type)
          Determine if the specified type has the commont type as a superclass
static java.util.List resolveToObjects(java.util.List values)
          Takes a List of values, literal or Icons, and returns a collection with the the same literals, but with the Icons resolved to Imageable types.
static java.util.Map resolveToObjects(java.util.Map values)
          Takes a Map of values, literal or Icons, and returns a collection with the the same literals, but with the Icons resolved to Imageable types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPENDENT_VIA_PERSISTENCE

public static final java.lang.String DEPENDENT_VIA_PERSISTENCE
See Also:
Constant Field Values
Method Detail

isAlwaysDelegateDependentToPersistence

public static boolean isAlwaysDelegateDependentToPersistence()

isCommonClass

public static final boolean isCommonClass(java.lang.Class type)
Determine if the specified type has the commont type as a superclass

Parameters:
type -
Returns:

getCommonClass

public static final java.lang.Class getCommonClass()
Get the common identifiable object type.

Returns:

resolveToObjects

public static final java.util.List resolveToObjects(java.util.List values)
                                             throws ImageableNotFoundException,
                                                    GraphException
Takes a List of values, literal or Icons, and returns a collection with the the same literals, but with the Icons resolved to Imageable types.

Parameters:
values -
Returns:
Throws:
ImageableNotFoundException
GraphException

resolveToObjects

public static final java.util.Map resolveToObjects(java.util.Map values)
                                            throws ImageableNotFoundException,
                                                   GraphException
Takes a Map of values, literal or Icons, and returns a collection with the the same literals, but with the Icons resolved to Imageable types.

Parameters:
values -
Returns:
Throws:
ImageableNotFoundException
GraphException

findObject

public static final Imageable findObject(Icon icon)
                                  throws ImageableNotFoundException,
                                         GraphException
Finds the Imageable object for the given Icon, if the icon represents a dependent, it is found by first finding the parent.

Parameters:
icon - a reference to the object to retun
Returns:
Throws:
ImageableNotFoundException
GraphException

findIdentifiableObject

public static final ImageableIdentifiable findIdentifiableObject(Icon icon)
                                                          throws ImageableNotFoundException,
                                                                 GraphException
Find the Imageable system object with the specified icon.

Parameters:
icon -
Returns:
Throws:
ImageableNotFoundException
GraphException

findIdentifiableObject

public static final ImageableIdentifiable findIdentifiableObject(java.lang.String imageType,
                                                                 java.lang.String referenceableName)
                                                          throws ImageableNotFoundException,
                                                                 GraphException
Find the Imageable system object with the specified icon.

Parameters:
imageType -
referenceableName -
Returns:
Throws:
ImageableNotFoundException
GraphException

findAllIdentifiableObjects

public static final java.util.List findAllIdentifiableObjects(java.lang.String imageType)
Find all Imageable instances of the given imageType.

Parameters:
imageType -
Returns:

constructObject

public static final Imageable constructObject(Image image)
                                       throws ProjectionException,
                                              GraphException
Construct an Imageable system object for the given image.

Parameters:
image -
Returns:
Throws:
ProjectionException
GraphException

findAllInstancesOf

public static final java.util.List findAllInstancesOf(ImageableCollectionFinder collectionFinder)
Returns all applicable instances for the given finder.

Parameters:
collectionFinder -
Returns:

findInstanceOf

public static final java.lang.Object findInstanceOf(ImageableObjectFinder objectFinder)
Returns all applicable instances for the given finder.

Parameters:
objectFinder -
Returns:


Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.