@Named @ApplicationScoped public class FacebookAlbumCache extends Object
| Constructor and Description |
|---|
FacebookAlbumCache() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areAlbumsLoaded(List<String> albumIds) |
JSONObject |
getAlbum(String albumId) |
List<JSONObject> |
getAlbums(List<String> albumIds) |
JSONObject |
getCurrentAlbum() |
String |
getCurrentAlbumId() |
JSONObject |
getCurrentPhoto() |
String |
getCurrentPhotoId() |
List<JSONObject> |
getCurrentPhotos() |
Map<String,JSONObject> |
getImagesOfAlbum(String albumId) |
boolean |
isNeedsUpdate() |
void |
setAll(String json) |
void |
setCurrentAlbumId(String currentAlbumId) |
void |
setCurrentPhotoId(String currentPhotoId) |
void |
setNeedsUpdate(boolean needsUpdate) |
void |
storeAlbums(JSONArray ja) |
void |
storeAlbums(JSONArray ja,
boolean rewrite) |
void |
storeImagesToAlbum(JSONArray ja) |
public void setAll(String json)
public void storeAlbums(JSONArray ja)
public void storeAlbums(JSONArray ja, boolean rewrite)
public void storeImagesToAlbum(JSONArray ja)
public JSONObject getAlbum(String albumId)
public Map<String,JSONObject> getImagesOfAlbum(String albumId)
public List<JSONObject> getAlbums(List<String> albumIds)
public boolean isNeedsUpdate()
public void setNeedsUpdate(boolean needsUpdate)
public String getCurrentAlbumId()
public void setCurrentAlbumId(String currentAlbumId)
public String getCurrentPhotoId()
public void setCurrentPhotoId(String currentPhotoId)
public JSONObject getCurrentAlbum()
public List<JSONObject> getCurrentPhotos()
public JSONObject getCurrentPhoto()
Copyright © 2013. All Rights Reserved.