|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.picture.ejb.ImagingServiceBean
public class ImagingServiceBean
Session bean wrapper for the local ImagingService
Enable EJB remoting for the local nuxeo-runtime service
Constructor Summary | |
---|---|
ImagingServiceBean()
|
Method Summary | |
---|---|
Blob |
crop(Blob blob,
int x,
int y,
int width,
int height)
Crops an image. |
java.io.InputStream |
crop(java.io.InputStream in,
int x,
int y,
int width,
int height)
Crop image. |
java.lang.String |
getConfigurationValue(java.lang.String configurationName)
Returns the value a configuration which name is received as parameter. |
java.lang.String |
getConfigurationValue(java.lang.String configurationName,
java.lang.String defaultValue)
Returns the value a configuration which name is received as parameter. |
ImageInfo |
getImageInfo(Blob blob)
Retrieves the ImageInfo of the Blob that is received as parameter. |
java.util.Map<java.lang.String,java.lang.Object> |
getImageMetadata(Blob blob)
Retrieves metadata from an image contained in a Blob . |
java.util.Map<java.lang.String,java.lang.Object> |
getImageMetadata(java.io.File file)
Deprecated. |
java.util.Map<java.lang.String,java.lang.Object> |
getImageMetadata(java.io.InputStream in)
Deprecated. |
java.lang.String |
getImageMimeType(java.io.File file)
Returns the mime-type for the given file. |
java.lang.String |
getImageMimeType(java.io.InputStream in)
Returns the mime-type for the given input stream. |
Blob |
resize(Blob blob,
java.lang.String finalFormat,
int width,
int height,
int depth)
Resizes image. |
java.io.InputStream |
resize(java.io.InputStream in,
int width,
int height)
Resize image. |
Blob |
rotate(Blob blob,
int angle)
Rotates an image. |
java.io.InputStream |
rotate(java.io.InputStream in,
int angle)
Rotate image. |
void |
setConfigurationValue(java.lang.String configurationName,
java.lang.String configurationValue)
Sets the value of a configuration which could be used by the ImagingService. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImagingServiceBean()
Method Detail |
---|
@Deprecated public java.util.Map<java.lang.String,java.lang.Object> getImageMetadata(java.io.InputStream in)
ImagingService
getImageMetadata
in interface ImagingService
@Deprecated public java.util.Map<java.lang.String,java.lang.Object> getImageMetadata(java.io.File file)
ImagingService
getImageMetadata
in interface ImagingService
public java.util.Map<java.lang.String,java.lang.Object> getImageMetadata(Blob blob)
ImagingService
Blob
.
getImageMetadata
in interface ImagingService
public java.io.InputStream resize(java.io.InputStream in, int width, int height)
ImagingService
resize
in interface ImagingService
public java.io.InputStream rotate(java.io.InputStream in, int angle)
ImagingService
rotate
in interface ImagingService
public java.io.InputStream crop(java.io.InputStream in, int x, int y, int width, int height)
ImagingService
crop
in interface ImagingService
public Blob crop(Blob blob, int x, int y, int width, int height)
ImagingService
crop
in interface ImagingService
public Blob resize(Blob blob, java.lang.String finalFormat, int width, int height, int depth)
ImagingService
resize
in interface ImagingService
public Blob rotate(Blob blob, int angle)
ImagingService
rotate
in interface ImagingService
blob
- a Blob containing the imageangle
- the angle of the rotation
public java.lang.String getImageMimeType(java.io.File file)
ImagingService
getImageMimeType
in interface ImagingService
public java.lang.String getImageMimeType(java.io.InputStream in)
ImagingService
getImageMimeType
in interface ImagingService
public ImageInfo getImageInfo(Blob blob)
ImagingService
ImageInfo
of the Blob
that is received as parameter.
The information provided by the ImageInfo, like width, height or format, is obtained using ImageMagick (see http://www.imagemagick.org/script/index.php for more details on ImageMagick).
getImageInfo
in interface ImagingService
blob
- the blob of a picture
ImageInfo
of a blobpublic java.lang.String getConfigurationValue(java.lang.String configurationName)
ImagingService
getConfigurationValue
in interface ImagingService
configurationName
- the name of the configuration
public java.lang.String getConfigurationValue(java.lang.String configurationName, java.lang.String defaultValue)
ImagingService
getConfigurationValue
in interface ImagingService
configurationName
- the name of the configurationdefaultValue
- the value of the configurationpublic void setConfigurationValue(java.lang.String configurationName, java.lang.String configurationValue)
ImagingService
setConfigurationValue
in interface ImagingService
configurationName
- the name of the configurationconfigurationValue
- the value of the configuration
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |