Package org.ametys.plugins.blog
Class BlogCacheManager.FuturePostCache
- java.lang.Object
- 
- org.ametys.plugins.blog.BlogCacheManager.FuturePostCache
 
- 
- Enclosing class:
- BlogCacheManager
 
 protected static class BlogCacheManager.FuturePostCache extends Object Cache of identifier of the future posts.
- 
- 
Constructor SummaryConstructors Constructor Description FuturePostCache()Construct a AllPostCache instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPost(Content content)Add a post to the cache.voidclear()Clear the cache.BlogCacheManager.PostgetPost(String id)Test if a post exists, provided its ID.booleanhasPost(String id)Test if a post exists, provided its ID.Collection<BlogCacheManager.Post>removePastPosts()Remove the post that are not future anymore (given the current date)voidremovePost(Content content)Remove a post from the cache.voidremovePost(BlogCacheManager.Post post)Remove a post from the cache.
 
- 
- 
- 
Constructor Detail- 
FuturePostCachepublic FuturePostCache() Construct a AllPostCache instance.
 
- 
 - 
Method Detail- 
removePastPostspublic Collection<BlogCacheManager.Post> removePastPosts() Remove the post that are not future anymore (given the current date)- Returns:
- The collection of past posts
 
 - 
getPostpublic BlogCacheManager.Post getPost(String id) Test if a post exists, provided its ID.- Parameters:
- id- the post content ID.
- Returns:
- true if the post exists.
 
 - 
hasPostpublic boolean hasPost(String id) Test if a post exists, provided its ID.- Parameters:
- id- the post content ID.
- Returns:
- true if the post exists.
 
 - 
addPostpublic void addPost(Content content) Add a post to the cache.- Parameters:
- content- the post content.
 
 - 
removePostpublic void removePost(Content content) Remove a post from the cache.- Parameters:
- content- the post content to remove from the cache.
 
 - 
removePostpublic void removePost(BlogCacheManager.Post post) Remove a post from the cache.- Parameters:
- post- the post content to remove from the cache.
 
 - 
clearpublic void clear() Clear the cache.
 
- 
 
-