org.tynamo.blob
Class DefaultBlobManager

java.lang.Object
  extended by org.tynamo.blob.DefaultBlobManager
All Implemented Interfaces:
BlobManager

public class DefaultBlobManager
extends Object
implements BlobManager

The Tynamo BlobManager default implementation.


Constructor Summary
DefaultBlobManager(PersistenceService persistenceService, org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess, org.apache.tapestry5.services.PageRenderLinkSource pageRenderLinkSource)
           
 
Method Summary
 org.apache.tapestry5.Link createBlobLink(TynamoPropertyDescriptor propertyDescriptor, Object model)
           
 void delete(TynamoPropertyDescriptor propertyDescriptor, Object model)
           
 String getContentType(TynamoPropertyDescriptor propertyDescriptor, Object model)
           
 byte[] getData(TynamoPropertyDescriptor propertyDescriptor, Object model)
           
 String getFileName(TynamoPropertyDescriptor propertyDescriptor, Object model)
           
 boolean isNotNull(TynamoPropertyDescriptor propertyDescriptor, Object model)
           
 void store(TynamoPropertyDescriptor propertyDescriptor, Object model, org.apache.tapestry5.upload.services.UploadedFile file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBlobManager

public DefaultBlobManager(PersistenceService persistenceService,
                          org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess,
                          org.apache.tapestry5.services.PageRenderLinkSource pageRenderLinkSource)
Method Detail

store

public void store(TynamoPropertyDescriptor propertyDescriptor,
                  Object model,
                  org.apache.tapestry5.upload.services.UploadedFile file)
Specified by:
store in interface BlobManager

getData

public byte[] getData(TynamoPropertyDescriptor propertyDescriptor,
                      Object model)
Specified by:
getData in interface BlobManager

delete

public void delete(TynamoPropertyDescriptor propertyDescriptor,
                   Object model)
Specified by:
delete in interface BlobManager

createBlobLink

public org.apache.tapestry5.Link createBlobLink(TynamoPropertyDescriptor propertyDescriptor,
                                                Object model)
Specified by:
createBlobLink in interface BlobManager

getContentType

public String getContentType(TynamoPropertyDescriptor propertyDescriptor,
                             Object model)
Specified by:
getContentType in interface BlobManager

getFileName

public String getFileName(TynamoPropertyDescriptor propertyDescriptor,
                          Object model)
Specified by:
getFileName in interface BlobManager

isNotNull

public boolean isNotNull(TynamoPropertyDescriptor propertyDescriptor,
                         Object model)
Specified by:
isNotNull in interface BlobManager


Copyright © 2004-2009. All Rights Reserved.