Groovy Documentation

grails-app.taglib.pl.burningice.plugins.image
Class BurningImageTagLib

java.lang.Object
  grails-app.taglib.pl.burningice.plugins.image.BurningImageTagLib

class BurningImageTagLib

Taglib for usage with annotated image container

author:
pawel.gdula@burningice.pl


Property Summary
ContainerWorkerFactory containerWorkerFactory

def hasImage

Allows to check if specified image container has saved image

def img

Display html img tag with path to stored image

static def namespace

def resource

Create link to image stored on the server

 
Constructor Summary
BurningImageTagLib()

 
Method Summary
private def getOutputDir(java.lang.String outputDir)

Returns directory where image is stored.

private def getOutputDir(java.util.Map outputDir)

Returns directory where image is stored.

private def getResourceData(def size, FileImageContainer imageContainer)

Retrieve information about file name and storage directory on base of image size name and image container object

private def getResourceData(def size, DBImageContainer imageContainer)

Retrieve information about file name and storage directory on base of image size name and image container object

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

Property Detail

containerWorkerFactory

ContainerWorkerFactory containerWorkerFactory


hasImage

def hasImage
Allows to check if specified image container has saved image
param:
bean Image container that hold information about image


img

def img
Display html img tag with path to stored image
param:
size Size of the image that should be displayed
param:
bean Image container that hold information about image


namespace

static def namespace


resource

def resource
Create link to image stored on the server
param:
size Size of the image that should be displayed
param:
bean Image container that hold information about image


 
Constructor Detail

BurningImageTagLib

BurningImageTagLib()


 
Method Detail

getOutputDir

private def getOutputDir(java.lang.String outputDir)
Returns directory where image is stored. Overloaded to provide dispatching between String and Map outputDir
param:
uploadDir Path to upload dir
return:
Absolute path to resources


getOutputDir

private def getOutputDir(java.util.Map outputDir)
Returns directory where image is stored. Overloaded to provide dispatching between String and Map outputDir Parameter uploadDir should contain two keys: path - absolute path to directory where image should saved alias - alias for the absolute path
param:
uploadDir Map with upload dir configuration.
return:
Absolute path to resources


getResourceData

private def getResourceData(def size, FileImageContainer imageContainer)
Retrieve information about file name and storage directory on base of image size name and image container object
param:
size Size of the image that should be displayed
param:
bean Image container that hold information about image


getResourceData

private def getResourceData(def size, DBImageContainer imageContainer)
Retrieve information about file name and storage directory on base of image size name and image container object
param:
size Size of the image that should be displayed
param:
bean Image container that hold information about image


 

Groovy Documentation