|
RichFaces Photoalbum 4.3.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.richfaces.photoalbum.model.actions.ImageAction
public class ImageAction
Class for manipulating with image entity. Analogous to DAO pattern. EJB3 Bean
| Constructor Summary | |
|---|---|
ImageAction()
|
|
| Method Summary | |
|---|---|
void |
addComment(Comment comment)
Add comment from image |
void |
addImage(Image image)
Persist image entity to database |
void |
addMetaTag(Image image,
MetaTag metaTag)
Add MetaTag to image |
void |
deleteComment(Comment comment)
Remove comment from image |
void |
deleteImage(Image image)
Remove image entity from database |
void |
editImage(Image image,
boolean metatagsChanged)
Synchronize state of image entity with database |
List<Comment> |
findAllUserComments(User user)
Retrieve all cooments posted by given user. |
Long |
getCountIdenticalImages(Album album,
String path)
Return count of images with path, that started from specified path already exist in specified album |
List<MetaTag> |
getPopularTags()
Find most-popular metatags |
MetaTag |
getTagByName(String tag)
Find metatag object by its string representation |
List<MetaTag> |
getTagsLikeString(String suggest)
Find List of metatags, similar to specified string. |
boolean |
isImageWithThisPathExist(Album album,
String path)
Check if image with specified path already exist in specified album |
void |
removeMetaTag(Image image,
MetaTag metaTag)
Remove MetaTag to image |
void |
resetImage(Image image)
Refresh state of given image |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageAction()
| Method Detail |
|---|
public void deleteImage(Image image)
throws PhotoAlbumException
deleteImage in interface IImageActionimage - - image to delete
PhotoAlbumException
public void editImage(Image image,
boolean metatagsChanged)
throws PhotoAlbumException
editImage in interface IImageActionimage - - image to SynchronizemetatagsChanged - - boolean value, that indicates is metatags of this image were changed(add new or delete older)
PhotoAlbumException
public void addImage(Image image)
throws PhotoAlbumException
addImage in interface IImageActionimage - - image to add
PhotoAlbumException
public void deleteComment(Comment comment)
throws PhotoAlbumException
deleteComment in interface IImageActioncomment - - comment to remove
PhotoAlbumException
public void addComment(Comment comment)
throws PhotoAlbumException
addComment in interface IImageActioncomment - - comment to add
PhotoAlbumException
public void addMetaTag(Image image,
MetaTag metaTag)
throws PhotoAlbumException
image - - image to which the tag is addedmetaTage - - metaTag to be added
PhotoAlbumException
public void removeMetaTag(Image image,
MetaTag metaTag)
throws PhotoAlbumException
image - - image to which the tag is addedmetaTage - - metaTag to be added
PhotoAlbumExceptionpublic MetaTag getTagByName(String tag)
getTagByName in interface IImageActiontag - - string representation of metatag
public List<MetaTag> getPopularTags()
getPopularTags in interface IImageActionpublic List<MetaTag> getTagsLikeString(String suggest)
getTagsLikeString in interface IImageActionsuggest - - string to search; has to be set to lowerCase since this cannot be done inside a query
public boolean isImageWithThisPathExist(Album album,
String path)
isImageWithThisPathExist in interface IImageActionalbum - - album to checkpath - - path to check
public Long getCountIdenticalImages(Album album,
String path)
getCountIdenticalImages in interface IImageActionalbum - - album to checkpath - - path to check
public List<Comment> findAllUserComments(User user)
findAllUserComments in interface IImageActionpublic void resetImage(Image image)
resetImage in interface IImageActionimage - - image to Synchronize
|
RichFaces Photoalbum 4.3.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||