| Package | Description |
|---|---|
| edu.cornell.mannlib.vitro.webapp.filestorage | |
| edu.cornell.mannlib.vitro.webapp.filestorage.model |
| Modifier and Type | Method and Description |
|---|---|
FileInfo |
UploadedFileHelper.createFile(String filename,
String mimeType,
InputStream inputStream)
We have a filename, a mimetype, and some content.
|
static FileInfo |
TempFileHolder.remove(javax.servlet.http.HttpSession session,
String attributeName)
Get the which is stored as an attribute on this
session, extract the
FileInfo from it, and remove it from the
session. |
| Modifier and Type | Method and Description |
|---|---|
static void |
TempFileHolder.attach(javax.servlet.http.HttpSession session,
String attributeName,
FileInfo fileInfo)
Create a holding the given
FileInfo, and
attach it to the session with the given attribute name. |
void |
UploadedFileHelper.setImagesOnEntity(String entityUri,
FileInfo mainInfo,
FileInfo thumbInfo)
Record this image file and thumbnail on this entity.
|
| Modifier and Type | Method and Description |
|---|---|
FileInfo |
FileInfo.Builder.build() |
FileInfo |
ImageInfo.getMainImage() |
FileInfo |
ImageInfo.getThumbnail() |
static FileInfo |
FileInfo.instanceFromAliasUrl(WebappDaoFactory webappDaoFactory,
String path,
javax.servlet.ServletContext ctx)
If this request URL represents a BytestreamAliasURL, find the bytestream
URI, find the surrogate, and get the info.
|
static FileInfo |
FileInfo.instanceFromBytestreamUri(WebappDaoFactory webappDaoFactory,
String bytestreamUri)
If this URI represents a file bytestream, find its surrogate and get its
info.
|
static FileInfo |
FileInfo.instanceFromSurrogateUri(WebappDaoFactory webappDaoFactory,
String uri)
If this URI represents a file surrogate, get its info.
|
| Constructor and Description |
|---|
ImageInfo(FileInfo mainImage,
FileInfo thumbnail) |
Copyright © 2016. All rights reserved.