RichFaces Photoalbum 4.3.0.CR2

org.richfaces.photoalbum.manager
Class ImageManager

java.lang.Object
  extended by org.richfaces.photoalbum.manager.ImageManager

@Named
@RequestScoped
public class ImageManager
extends Object


Constructor Summary
ImageManager()
           
 
Method Summary
 void addComment(Image image)
          Method, that invoked when user add comment to image.
 List<MetaTag> autoComplete(Object suggest)
          Method, that used to autocomplete 'metatags' field while typing.
 void deleteComment(Comment comment)
          Method, that invoked when user delete comment.
 void deleteImage(Image image)
          Method, that invoked when user click 'Delete image' button.
 void editImage(Image image, boolean editFromInplace)
          Method, that invoked when user click 'Edit image' button.
 String getImageDirectLink(Image image)
          Method, that invoked to retrieve direct link to image, to represent in UI.
 String getMessage()
           
 List<MetaTag> popularTags()
          Method, that invoked to retrieve most popular metatags.
 void setMessage(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageManager

public ImageManager()
Method Detail

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

deleteImage

public void deleteImage(Image image)
Method, that invoked when user click 'Delete image' button. Only registered users can delete images.

Parameters:
image - - image to delete

editImage

public void editImage(Image image,
                      boolean editFromInplace)
Method, that invoked when user click 'Edit image' button. Only registered users can edit images.

Parameters:
image - - image to edit
editFromInplace - - indicate whether edit process was initiated by inplaceInput component

addComment

public void addComment(Image image)
Method, that invoked when user add comment to image. Only registered users can add comments to image.

Parameters:
image - - image
message - - comment text

deleteComment

public void deleteComment(Comment comment)
Method, that invoked when user delete comment. Only registered users can delete comments.

Parameters:
comment - - comment to delete

popularTags

public List<MetaTag> popularTags()
Method, that invoked to retrieve most popular metatags.

Returns:
List of most popular metatags

autoComplete

public List<MetaTag> autoComplete(Object suggest)
Method, that used to autocomplete 'metatags' field while typing.

Parameters:
suggest - - text to autocomplete
Returns:
List of similar metatags

getImageDirectLink

public String getImageDirectLink(Image image)
Method, that invoked to retrieve direct link to image, to represent in UI.

Parameters:
image - - image to get direct link
Returns:
List of similar metatags

RichFaces Photoalbum 4.3.0.CR2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.