@Named @SessionScoped public class Controller extends Object implements Serializable
Constructor and Description |
---|
Controller() |
Modifier and Type | Method and Description |
---|---|
Boolean |
adviseNodeSelected(UITree tree)
This utility method determine if the specified node should be marked as selected.
|
void |
cancelEditAlbum()
This method invoked after the user want to interrupt edit album process
|
void |
cancelEditImage()
This method invoked after the user want to interrupt edit image process
|
void |
cancelEditShelf()
This method invoked after the user want to interrupt edit shelf process
|
void |
cancelEditUser()
This method invoked after the user want to interrupt edit user process
|
void |
cancelRegistration()
This method invoked after the user want to interrupt registration process
|
void |
editUser()
This method invoked after the user want to save just edited user to database.
|
Integer |
getFPage() |
Integer |
getGplusPage() |
Integer |
getPage()
This utility method used by custom datascroller to determine images to show.
|
boolean |
isEventFacebookAlbum(String id) |
boolean |
isEventGoogleAlbum(String id) |
boolean |
isProfileEditable(User selectedUser)
This utility method used to determine if the specified user can be edited
|
boolean |
isUserAlbum(Album album)
This utility method used to determine if the specified album belongs to the logged user
|
boolean |
isUserHaveAlbums()
This utility method used to determine if the logged user have any albums.
|
boolean |
isUserHaveShelves()
This utility method used to determine if the logged user have any shelves.
|
boolean |
isUserImage(Image image)
This utility method used to determine if the specified image belongs to the logged user
|
boolean |
isUserShelf(Shelf shelf)
This utility method used to determine if the specified shelf belongs to the logged user
|
void |
onAlbumAdded(AlbumEvent ae)
This method observes
Constants.ALBUM_ADDED_EVENT and invoked after the user add new album |
void |
onAlbumDeleted(AlbumEvent ae)
This method observes
Constants.ALBUM_DELETED_EVENT and invoked after the user delete her album |
void |
onAlbumEdited(AlbumEvent ae)
This method observes
Constants.ALBUM_EDITED_EVENT and invoked after the user edit her album |
void |
onAuthenticate(SimpleEvent se)
This method observes
Constants.AUTHENTICATED_EVENT and invoked after the user successfully authenticate to
the system |
void |
onEventAdded(ShelfEvent se) |
void |
onEventDeleted(ShelfEvent se) |
void |
onEventEdited(ShelfEvent se) |
void |
onImageDeleted(ImageEvent ie)
This method observes
Constants.IMAGE_DELETED_EVENT and invoked after the user delete her image |
void |
onShelfAdded(ShelfEvent se)
This method observes
Constants.SHELF_ADDED_EVENT and invoked after the user add new shelf |
void |
onShelfDeleted(ShelfEvent se)
This method observes
Constants.SHELF_DELETED_EVENT and invoked after the user delete her shelf |
void |
onShelfEdited(ShelfEvent se)
This method observes
Constants.SHELF_EDITED_EVENT and invoked after the user edit her shelf |
void |
resetFileUpload()
This method invoked in cases, when it is need to clear fileUpload component
|
void |
selectAlbums()
This method invoked after the user want to see all her albums.
|
void |
selectImages()
This method invoked after the user want to see all her images.
|
void |
selectPublicShelves()
This method invoked after the user want to see all predefined shelves, existed in application
|
void |
selectShelves()
This method invoked after the user want to see all her shelves.
|
void |
setFPage(Integer page) |
void |
setGplusPage(Integer page) |
void |
setPage(Integer page) |
void |
showAlbum(Album album)
This method invoked after the user want to see specified album independently is it her album or not.
|
void |
showCurrentUser() |
void |
showError(String summary,
String errorMessage)
This utility method invoked in case if you want to show to the user specified error in popup
|
void |
showEvent(Event event) |
void |
showFBAlbum(String albumId) |
void |
showFbImage(String imageId) |
void |
showFbShelf() |
void |
showFileUpload()
This method invoked after the user want to go to the file-upload page
|
void |
showFileUpload(Album album)
This method invoked after the user want to go to the file-upload page and download images to the specified album
|
void |
showGPlusAlbum() |
void |
showGPlusImage(String imageId) |
void |
showGPlusShelf() |
void |
showImage(Image image)
This method invoked after the user want to see specified image independently is it her image or not.
|
void |
showNextFbImage() |
void |
showNextGPlusImage() |
void |
showNextImage() |
void |
showPrevFbImage() |
void |
showPrevGPlusImage() |
void |
showPrevImage() |
void |
showSharedAlbums(User user)
This method invoked after the user want to see all shared albums of the specified user
|
void |
showSharedImages(User user)
This method invoked after the user want to see all shared images of the specified user
|
void |
showShelf(Shelf shelf)
This method invoked after the user want to see specified shelf independently is it her shelf or not.
|
void |
showTag(MetaTag metatag)
This method invoked after the user want to see all images, related to the of specified album
|
void |
showUnvisitedImages(Album album)
This method invoked after the user want to see all unvisited images, belongs to the of specified album
|
void |
showUnvisitedImages(Shelf shelf)
This method invoked after the user want to see all unvisited images, belongs to the of specified shelf
|
void |
showUser(User user)
This method invoked after the user want to see profile of the specified user
|
void |
startEditAlbum(Album album)
This method invoked after the user want to edit specified album.
|
void |
startEditImage(Image image)
This method invoked after the user want to edit specified image.
|
void |
startEditShelf(Shelf shelf)
This method invoked after the user want to edit specified shelf.
|
void |
startRegistration(SimpleEvent se)
This method observes
Constants.START_REGISTER_EVENT and invoked after the user want to start registration
process. |
public void selectPublicShelves()
public void selectShelves()
public void selectAlbums()
public void selectImages()
public void startEditShelf(Shelf shelf)
shelf
- - shelf to editpublic void cancelEditShelf()
public void showAlbum(Album album)
album
- - album to showpublic void showFBAlbum(String albumId)
public void showFbImage(String imageId)
public void showFbShelf()
public void showGPlusShelf()
public void showGPlusAlbum()
public void showGPlusImage(String imageId)
public void resetFileUpload()
public void showImage(Image image)
album
- - album to showpublic void showNextImage()
public void showPrevImage()
public void showNextFbImage()
public void showPrevFbImage()
public void showNextGPlusImage()
public void showPrevGPlusImage()
public void startEditImage(Image image)
image
- - image to editpublic void editUser()
public void cancelEditUser()
public void cancelEditImage()
public void showShelf(Shelf shelf)
album
- - album to showpublic void showEvent(Event event)
public void startEditAlbum(Album album)
album
- - album to editpublic void cancelEditAlbum()
public void onAlbumAdded(@Observes AlbumEvent ae)
Constants.ALBUM_ADDED_EVENT
and invoked after the user add new albumalbum
- - added albumpublic void onAlbumEdited(@Observes AlbumEvent ae)
Constants.ALBUM_EDITED_EVENT
and invoked after the user edit her albumalbum
- - edited albumpublic void onAlbumDeleted(@Observes AlbumEvent ae)
Constants.ALBUM_DELETED_EVENT
and invoked after the user delete her albumalbum
- - deleted albumpath
- - relative path of the album directorypublic void onShelfDeleted(@Observes ShelfEvent se)
Constants.SHELF_DELETED_EVENT
and invoked after the user delete her shelfshelf
- - deleted shelfpath
- - relative path of the shelf directorypublic void onShelfAdded(@Observes ShelfEvent se)
Constants.SHELF_ADDED_EVENT
and invoked after the user add new shelfshelf
- - added shelfpublic void onShelfEdited(@Observes ShelfEvent se)
Constants.SHELF_EDITED_EVENT
and invoked after the user edit her shelfshelf
- - edited shelfpublic void onEventDeleted(@Observes ShelfEvent se)
public void onEventAdded(@Observes ShelfEvent se)
public void onEventEdited(@Observes ShelfEvent se)
public void onImageDeleted(@Observes ImageEvent ie)
Constants.IMAGE_DELETED_EVENT
and invoked after the user delete her imageimage
- - deleted imagepath
- - relative path of the image filepublic void onAuthenticate(@Observes SimpleEvent se)
Constants.AUTHENTICATED_EVENT
and invoked after the user successfully authenticate to
the systemu
- - authenticated userpublic void showFileUpload()
public void showFileUpload(Album album)
album
- - selected albumpublic void showSharedAlbums(User user)
user
- - user to seepublic void showSharedImages(User user)
user
- - user to seepublic void showUser(User user)
user
- - user to seepublic void showCurrentUser()
public void showUnvisitedImages(Shelf shelf)
shelf
- - shelf to seepublic void showUnvisitedImages(Album album)
album
- - album to seepublic void showTag(MetaTag metatag)
metatag
- - tag to seepublic void startRegistration(@Observes SimpleEvent se)
Constants.START_REGISTER_EVENT
and invoked after the user want to start registration
process.public void cancelRegistration()
public Boolean adviseNodeSelected(UITree tree)
public Integer getPage()
public void setPage(Integer page)
public Integer getFPage()
public void setFPage(Integer page)
public Integer getGplusPage()
public void setGplusPage(Integer page)
public boolean isUserImage(Image image)
image
- - image to checkpublic boolean isUserHaveShelves()
public boolean isUserHaveAlbums()
public boolean isUserShelf(Shelf shelf)
shelf
- - shelf to checkpublic boolean isUserAlbum(Album album)
album
- - album to checkpublic boolean isProfileEditable(User selectedUser)
user
- - user to checkpublic void showError(String summary, String errorMessage)
error
- - error to showpublic boolean isEventFacebookAlbum(String id)
public boolean isEventGoogleAlbum(String id)
Copyright © 2015. All rights reserved.