| 1 |
|
package org.trails.component.blob; |
| 2 |
|
|
| 3 |
|
import org.apache.tapestry.IAsset; |
| 4 |
|
import org.apache.tapestry.request.IUploadFile; |
| 5 |
|
import org.trails.descriptor.IClassDescriptor; |
| 6 |
|
import org.trails.descriptor.IPropertyDescriptor; |
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
public interface IFilePersister |
| 12 |
|
{ |
| 13 |
|
IAsset getAsset(IPropertyDescriptor propertyDescriptor, Object model); |
| 14 |
|
|
| 15 |
|
void store(IPropertyDescriptor propertyDescriptor, Object model, IUploadFile file); |
| 16 |
|
|
| 17 |
|
public byte[] getData(IPropertyDescriptor propertyDescriptor, Object model); |
| 18 |
|
|
| 19 |
|
String getContentType(IPropertyDescriptor propertyDescriptor, Object model); |
| 20 |
|
|
| 21 |
|
String getFileName(IPropertyDescriptor propertyDescriptor, Object model); |
| 22 |
|
|
| 23 |
|
void delete(IPropertyDescriptor propertyDescriptor, Object model); |
| 24 |
|
} |