Groovy Documentation

grails-app.services.pl.burningice.plugins.image
Class BurningImageService

java.lang.Object
  grails-app.services.pl.burningice.plugins.image.BurningImageService

class BurningImageService

Main entry for the plugin

author:
pawel.gdula@burningice.pl


Property Summary
boolean transactional

This gets rid of exception for not using native acceleration

 
Constructor Summary
BurningImageService()

 
Method Summary
def doWith(java.lang.String filePath, java.lang.String resultDir)

Executes work for file determined by string path

def doWith(MultipartFile file, java.lang.String resultDir)

Executes work for file determined by MultipartFile interface

def doWith(MultipartFile file)

Executes work for file determined by MultipartFile interface

private def getWorker(def file, def resultDir)

Create and configure object that execute specified manipulations on image

 
Methods inherited from class java.lang.Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

transactional

boolean transactional
This gets rid of exception for not using native acceleration


 
Constructor Detail

BurningImageService

BurningImageService()


 
Method Detail

doWith

public def doWith(java.lang.String filePath, java.lang.String resultDir)
Executes work for file determined by string path
param:
filePath Path where file is stored
param:
resultDir Path to directory where output file should be save
return:
Object that execute specified manipulations on image
throws:
IllegalArgumentException If any input is null
throws:
FileNotFoundException If there is no file in specified location or there is no output directory


doWith

public def doWith(MultipartFile file, java.lang.String resultDir)
Executes work for file determined by MultipartFile interface
param:
file File uploaded by the user (or in other case when file is represented by MultipartFile interface)
param:
resultDir Path to directory where output file should be save
return:
Object that execute specified manipulations on image
throws:
IllegalArgumentException If any input is null
throws:
FileNotFoundException If there is no file in specified location or there is no output directory


doWith

public def doWith(MultipartFile file)
Executes work for file determined by MultipartFile interface
param:
file File uploaded by the user (or in other case when file is represented by MultipartFile interface)
param:
resultDir Path to directory where output file should be save
return:
Object that execute specified manipulations on image
throws:
IllegalArgumentException If any input is null
throws:
FileNotFoundException If there is no file in specified location or there is no output directory


getWorker

private def getWorker(def file, def resultDir)
Create and configure object that execute specified manipulations on image
param:
file Image represented by different type of objects (File/MultipartFile)
param:
resultDir Path to directory where output file should be save
return:
Object that execute specified manipulations on image
throws:
FileNotFoundException If there is no output directory


 

Groovy Documentation