Class NoPictureAdapter
java.lang.Object
org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter
org.nuxeo.ecm.platform.picture.api.adapters.NoPictureAdapter
- All Implemented Interfaces:
PictureResourceAdapter
Picture adapter that creates no picture views at all.
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter
CONTENT_XPATH, depth, description, doc, FIELD_BYLINE, FIELD_CAPTION, FIELD_CREDIT, FIELD_DATELINE, FIELD_GENRE, FIELD_HEADLINE, FIELD_LANGUAGE, FIELD_ORIGIN, FIELD_SLUGLINE, FIELD_SOURCE, FIELD_SUBHEADLINE, FIELD_TYPAGE, fileContent, height, imageInfo, MEDIUM_SIZE, SCHEMA_NAME, SMALL_SIZE, THUMB_SIZE, type, VIEWS_PROPERTY, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddoRotate(int angle) booleanfillPictureViews(Blob blob, String filename, String title, List<Map<String, Object>> pictureConversions) Fill this Picture views using the givenpictureConversionsandblobto compute the picture views.Convenience method to get the XPath of the first view of the Picture.getPictureFromTitle(String title) getViewXPath(String viewName) Returns the XPath of the given view name, ornullif the view is not found on the Picture.voidPre-fill this Picture views using the givenpictureConversionsandblob.Methods inherited from class org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter
addPictureView, addPictureViews, addViews, clearInfo, clearViews, createPictureimpl, crop, fillPictureViews, getContentFromViews, getConversionService, getImageInfo, getImagingService, getPictureViews, getSession, setDocumentModelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.platform.picture.api.adapters.PictureResourceAdapter
fillPictureViews
-
Field Details
-
ORIGINAL_VIEW_NAME
- See Also:
-
-
Constructor Details
-
NoPictureAdapter
public NoPictureAdapter()
-
-
Method Details
-
doRotate
public void doRotate(int angle) -
doCrop
-
getPictureFromTitle
- Throws:
PropertyException
-
getFirstViewXPath
Description copied from interface:PictureResourceAdapterConvenience method to get the XPath of the first view of the Picture.- Returns:
- the XPath of the first view
-
getViewXPath
Description copied from interface:PictureResourceAdapterReturns the XPath of the given view name, ornullif the view is not found on the Picture.- Parameters:
viewName- the view name
-
fillPictureViews
public boolean fillPictureViews(Blob blob, String filename, String title, List<Map<String, Object>> pictureConversions) Description copied from interface:PictureResourceAdapterFill this Picture views using the givenpictureConversionsandblobto compute the picture views.The
blobis converted to fit the definedpictureConversions. -
preFillPictureViews
public void preFillPictureViews(Blob blob, List<Map<String, Object>> pictureConversions, ImageInfo imageInfo) Description copied from interface:PictureResourceAdapterPre-fill this Picture views using the givenpictureConversionsandblob.The
blobis not converted and just stored as the Blob of the picture views.
-