public abstract class AbstractPictureAdapter extends Object implements PictureResourceAdapter
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_XPATH |
static String |
FIELD_BYLINE |
static String |
FIELD_CAPTION |
static String |
FIELD_CREDIT |
static String |
FIELD_DATELINE |
static String |
FIELD_GENRE |
static String |
FIELD_HEADLINE |
static String |
FIELD_LANGUAGE |
static String |
FIELD_ORIGIN |
static String |
FIELD_SLUGLINE |
static String |
FIELD_SOURCE |
static String |
FIELD_SUBHEADLINE |
static String |
FIELD_TYPAGE |
static int |
MEDIUM_SIZE |
static String |
SCHEMA_NAME |
static int |
SMALL_SIZE |
static int |
THUMB_SIZE |
static String |
VIEWS_PROPERTY |
Constructor and Description |
---|
AbstractPictureAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
createPictureimpl(String description,
String tag,
String title,
Integer maxsize,
String filename,
Integer width,
Integer height,
Integer depth,
Blob fileContent) |
boolean |
fillPictureViews(Blob blob,
String filename,
String title)
This method just delegate the job to
PictureResourceAdapter.fillPictureViews(Blob, String, String, ArrayList) by passing null instead of
statics picture templates. |
void |
setDocumentModel(DocumentModel doc) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createPicture, doCrop, doRotate, fillPictureViews, getFirstViewXPath, getPictureFromTitle, getViewXPath, preFillPictureViews
public static final String VIEWS_PROPERTY
public static final String CONTENT_XPATH
public static final String FIELD_HEADLINE
public static final String FIELD_SUBHEADLINE
public static final String FIELD_BYLINE
public static final String FIELD_DATELINE
public static final String FIELD_SLUGLINE
public static final String FIELD_CREDIT
public static final String FIELD_LANGUAGE
public static final String FIELD_SOURCE
public static final String FIELD_ORIGIN
public static final String FIELD_GENRE
public static final String FIELD_CAPTION
public static final String FIELD_TYPAGE
public static final String SCHEMA_NAME
public static final int MEDIUM_SIZE
public static final int SMALL_SIZE
public static final int THUMB_SIZE
public void setDocumentModel(DocumentModel doc)
setDocumentModel
in interface PictureResourceAdapter
public void createPictureimpl(String description, String tag, String title, Integer maxsize, String filename, Integer width, Integer height, Integer depth, Blob fileContent) throws IOException, ClientException
IOException
ClientException
public boolean fillPictureViews(Blob blob, String filename, String title) throws IOException, ClientException
PictureResourceAdapter
PictureResourceAdapter.fillPictureViews(Blob, String, String, ArrayList)
by passing null instead of
statics picture templates. fillPictureViews
in interface PictureResourceAdapter
IOException
ClientException
PictureResourceAdapter#fillPictureViews(Blob, String, String, ArrayList)}
Copyright © 2015 Nuxeo SA. All rights reserved.