Package org.ametys.plugins.blog
Class BlogCacheManager
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.blog.BlogCacheManager
-
- All Implemented Interfaces:
Initializable,Component,LogEnabled,Serviceable
public class BlogCacheManager extends AbstractLogEnabled implements Component, Serviceable, Initializable
Blog cache manager.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classBlogCacheManager.AllPostCacheCache of all the posts.protected classBlogCacheManager.FuturePostCacheCache of identifier of the future posts.classBlogCacheManager.PostClass representing a Post in the cache.protected classBlogCacheManager.PostDateCachePost cache by date.protected classBlogCacheManager.PostSiteLangA Post with site name and language.protected classBlogCacheManager.PostTagCachePost cache by tag.classBlogCacheManager.ReverseDatePostComparatorReverse date post comparator.
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Map<String,Map<String,BlogCacheManager.AllPostCache>>>_allPostsMap of PostDateCache by workspace, site and sitemap/language.protected AmetysObjectResolver_ametysResolverThe ametys object resolver.protected BlogPageHandler_blogRootHandlerThe blog root page handler.protected Map<String,Map<String,Map<String,BlogCacheManager.FuturePostCache>>>_futurePostsCacheMap of FuturePostCache by workspace, site and sitemap/language.protected Map<String,Map<String,Map<String,Boolean>>>_initializedCaches are initialized by workspace, site and sitemap/language.protected Map<String,Map<String,Map<String,Date>>>_lastUpdateFuturePostsFuture caches are updated by workspace, site and sitemap/language.protected ObservationManager_observationManagerThe observation managerprotected Map<String,Map<String,Map<String,BlogCacheManager.PostDateCache>>>_postsByDateMap of PostDateCache by workspace, site and sitemap/language.protected Map<String,Map<String,Map<String,BlogCacheManager.PostTagCache>>>_postsByTagMap of PostTagCache by workspace, site and sitemap/language.protected AmetysObjectResolver_resolverThe Ametys resolverprotected SiteConfigurationExtensionPoint_siteConfThe site configuration extension pointprotected SiteManager_siteManagerThe Site manager.protected TagProviderExtensionPoint_tagProviderEPTh tag providerprotected WorkspaceSelector_workspaceSelectorThe workspace selector.static StringPOST_DATE_ATTRIBUTEThe name of the date attribute of poststatic StringPOST_TAGS_ATTRIBUTEThe name of the tags attribute of poststatic StringROLEThe avalon role.
-
Constructor Summary
Constructors Constructor Description BlogCacheManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean_getDisplayFuturePost(String siteName)private Date_getOrCreateLastUpdateFuturePosts(String workspaceName, String siteName, String language)private boolean_isFuturePost(Content post)private boolean_needUpdateFuturePosts(String workspaceName, String siteName, String language, Date roundedNow)private void_updateFuturePosts(String workspaceName, String siteName, String language)voidaddPost(String siteName, String language, Content postContent)Add a post content to the cache.voidclearCaches()Clear the caches.voidclearCaches(String siteName, String language)Clear the caches for a given siteName and language.protected voiddispatchPost(BlogCacheManager.AllPostCache cache, Content content)Dispatch a post content in the post cache.protected voiddispatchPost(BlogCacheManager.AllPostCache cache, BlogCacheManager.Post post)Dispatch a post in the post cache.protected voiddispatchPost(BlogCacheManager.FuturePostCache cache, Content content)Dispatch a post content in the future post cache.protected voiddispatchPost(BlogCacheManager.PostDateCache dateCache, Content content)Dispatch a post content in the post date cache.protected voiddispatchPost(BlogCacheManager.PostDateCache dateCache, BlogCacheManager.Post post)Add a post in the post date cache.protected voiddispatchPost(BlogCacheManager.PostTagCache tagCache, Content content)Dispatch a post content in the post tag cache.protected voiddispatchPost(BlogCacheManager.PostTagCache tagCache, BlogCacheManager.Post post)Dispatch a post in the post tag cache.protected BlogCacheManager.AllPostCachegetAllPostCache(String siteName, String language)Get the exhaustive post cache.protected BlogCacheManager.PostSiteLanggetFuturePost(String siteName, String postId)Get a future post by its site name and id.protected BlogCacheManager.FuturePostCachegetFuturePostCache(String siteName, String language)Get the future post cache.Set<Integer>getMonths(String siteName, String language, int year)Get the months with posts for a specified year.protected BlogCacheManager.AllPostCachegetOrCreateAllPostCache(String workspaceName, String siteName, String language)Get the exhaustive post cache.protected BlogCacheManager.FuturePostCachegetOrCreateFuturePostCache(String workspaceName, String siteName, String language)Get the future post cache.protected BlogCacheManager.PostDateCachegetOrCreatePostDateCache(String workspaceName, String siteName, String language)Get the post date cache.protected BlogCacheManager.PostTagCachegetOrCreatePostTagCache(String workspaceName, String siteName, String language)Get the post tag cache.protected BlogCacheManager.PostSiteLanggetPost(String siteName, String postId)Get a post by its site name and id.BlogCacheManager.PostgetPost(String siteName, String language, String id)Test if a post exists, provided its ID.BlogCacheManager.PostgetPost(String siteName, String language, String tagName, String id)Get the posts for a year-month couple.BlogCacheManager.PostgetPostByName(String siteName, String language, int year, int month, String name)Get the posts for a year-month couple.BlogCacheManager.PostgetPostByName(String siteName, String language, String name)Test if a post exists, provided its content name.BlogCacheManager.PostgetPostByName(String siteName, String language, String tagName, String name)Get the posts for a year-month couple.protected BlogCacheManager.PostDateCachegetPostDateCache(String siteName, String language)Get the post date cache.Set<String>getPostIds(String siteName, String language)Get a list of all the posts' IDs.Map<String,BlogCacheManager.Post>getPosts(String siteName, String language)Get the exhaustive list of Posts.Map<String,BlogCacheManager.Post>getPostsByMonth(String siteName, String language, int year, int month)Get the posts for a year-month couple.Map<String,BlogCacheManager.Post>getPostsByTag(String siteName, String language, String tagName)Get the posts for a given tag.Map<String,BlogCacheManager.Post>getPostsByYear(String siteName, String language, int year)Get the posts for a year.protected BlogCacheManager.PostTagCachegetPostTagCache(String siteName, String language)Get the post tag cache.Collection<BlogCacheManager.Post>getSortedPosts(String siteName, String language)Get the exhaustive list of Posts.Collection<BlogCacheManager.Post>getSortedPostsByMonth(String siteName, String language, int year, int month)Get the posts for a year-month couple.Collection<BlogCacheManager.Post>getSortedPostsByTag(String siteName, String language, String tagName)Get the posts for a given tag.Collection<BlogCacheManager.Post>getSortedPostsByTag(String siteName, String language, String tagName, boolean deepSearch)Get the posts for a given tag.Collection<BlogCacheManager.Post>getSortedPostsByYear(String siteName, String language, int year)Get the posts for a year.Set<String>getTags(String siteName, String language)Get the tags for a site and language.Set<Integer>getYears(String siteName, String language)Get the years with posts.booleanhasMonth(String siteName, String language, int year, int month)Get the years with posts.booleanhasPost(String siteName, String language, int year, int month, String id)Get the posts for a year-month couple.booleanhasPost(String siteName, String language, String id)Test if a post exists, provided its ID.booleanhasPost(String siteName, String language, String tagName, String id)Get the posts for a year-month couple.booleanhasPostByName(String siteName, String language, int year, int month, String name)Get the posts for a year-month couple.booleanhasPostByName(String siteName, String language, String name)Test if a post exists, provided its content name.booleanhasPostByName(String siteName, String language, String tagName, String name)Get the posts for a year-month couple.booleanhasPostByTag(String siteName, String language, String tagName, String postId)Test if a given post has a tag, by its ID.booleanhasTag(String siteName, String language, String tagName)Test if a tag exists in the given site and language.booleanhasYear(String siteName, String language, int year)Get the years with posts.voidinitialize()protected voidinitializeCaches(String workspaceName, String siteName, String language)Initialize all the caches.protected booleanisInitialized(String workspaceName, String siteName, String language)Get the exhaustive post cache.voidmodifyPost(String siteName, String language, Content postContent)Modify a post content in the cache.protected voidmodifyPost(BlogCacheManager.AllPostCache cache, BlogCacheManager.Post post, Content postContent)Modify a post content.protected voidmodifyPost(BlogCacheManager.FuturePostCache cache, BlogCacheManager.Post post, Content postContent)Modify a future post content.protected voidmodifyPost(BlogCacheManager.PostDateCache dateCache, BlogCacheManager.Post post, Content postContent)Remove a post content.protected voidmodifyPost(BlogCacheManager.PostTagCache cache, BlogCacheManager.Post post, Content postContent)Remove a post content.voidremovePost(String siteName, String language, Content postContent)Remove a post content from the cache.protected voidremovePost(BlogCacheManager.AllPostCache cache, Content content)Remove a post content.protected voidremovePost(BlogCacheManager.AllPostCache cache, BlogCacheManager.Post post)Remove a post content.protected voidremovePost(BlogCacheManager.FuturePostCache cache, Content content)Remove a future post content.protected voidremovePost(BlogCacheManager.FuturePostCache cache, BlogCacheManager.Post post)Remove a future post content.protected voidremovePost(BlogCacheManager.PostDateCache dateCache, Content content)Remove a post content.protected voidremovePost(BlogCacheManager.PostDateCache dateCache, BlogCacheManager.Post post)Remove a post content.protected voidremovePost(BlogCacheManager.PostTagCache cache, Content content)Remove a post content.protected voidremovePost(BlogCacheManager.PostTagCache cache, BlogCacheManager.Post post)Remove a post content.voidremovePostById(String siteName, String postId)Remove a post content from the cache.voidservice(ServiceManager serviceManager)protected voidsetInitialized(String siteName, String language)Set the initialized mapprotected voidsetInitialized(String siteName, String language, Boolean initialized)Set the initialized mapprotected voidsetInitialized(String workspaceName, String siteName, String language, Boolean initialized)Set the initialized mapvoidvalidatePost(String siteName, String language, Content postContent)Validate a post content.-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
POST_DATE_ATTRIBUTE
public static final String POST_DATE_ATTRIBUTE
The name of the date attribute of post- See Also:
- Constant Field Values
-
POST_TAGS_ATTRIBUTE
public static final String POST_TAGS_ATTRIBUTE
The name of the tags attribute of post- See Also:
- Constant Field Values
-
_ametysResolver
protected AmetysObjectResolver _ametysResolver
The ametys object resolver.
-
_tagProviderEP
protected TagProviderExtensionPoint _tagProviderEP
Th tag provider
-
_siteManager
protected SiteManager _siteManager
The Site manager.
-
_siteConf
protected SiteConfigurationExtensionPoint _siteConf
The site configuration extension point
-
_blogRootHandler
protected BlogPageHandler _blogRootHandler
The blog root page handler.
-
_workspaceSelector
protected WorkspaceSelector _workspaceSelector
The workspace selector.
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys resolver
-
_observationManager
protected ObservationManager _observationManager
The observation manager
-
_postsByDate
protected Map<String,Map<String,Map<String,BlogCacheManager.PostDateCache>>> _postsByDate
Map of PostDateCache by workspace, site and sitemap/language.
-
_postsByTag
protected Map<String,Map<String,Map<String,BlogCacheManager.PostTagCache>>> _postsByTag
Map of PostTagCache by workspace, site and sitemap/language.
-
_allPosts
protected Map<String,Map<String,Map<String,BlogCacheManager.AllPostCache>>> _allPosts
Map of PostDateCache by workspace, site and sitemap/language.
-
_futurePostsCache
protected Map<String,Map<String,Map<String,BlogCacheManager.FuturePostCache>>> _futurePostsCache
Map of FuturePostCache by workspace, site and sitemap/language.
-
_initialized
protected Map<String,Map<String,Map<String,Boolean>>> _initialized
Caches are initialized by workspace, site and sitemap/language.
-
-
Constructor Detail
-
BlogCacheManager
public BlogCacheManager()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
initialize
public void initialize() throws Exception
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
hasYear
public boolean hasYear(String siteName, String language, int year)
Get the years with posts.- Parameters:
siteName- the site name.language- the language.year- the year- Returns:
- the years with posts as a Set of Integer.
-
getYears
public Set<Integer> getYears(String siteName, String language)
Get the years with posts.- Parameters:
siteName- the site name.language- the language.- Returns:
- the years with posts as a Set of Integer.
-
hasMonth
public boolean hasMonth(String siteName, String language, int year, int month)
Get the years with posts.- Parameters:
siteName- the site name.language- the language.year- the yearmonth- the month- Returns:
- the years with posts as a Set of Integer.
-
getMonths
public Set<Integer> getMonths(String siteName, String language, int year)
Get the months with posts for a specified year.- Parameters:
siteName- the site name.language- the language.year- the year.- Returns:
- the months with posts in the specified year as a Set of Integer.
-
getPostsByMonth
public Map<String,BlogCacheManager.Post> getPostsByMonth(String siteName, String language, int year, int month)
Get the posts for a year-month couple.- Parameters:
siteName- the site name.language- the language.year- the year.month- the month.- Returns:
- the posts in the specified year and month.
-
getSortedPostsByMonth
public Collection<BlogCacheManager.Post> getSortedPostsByMonth(String siteName, String language, int year, int month)
Get the posts for a year-month couple.- Parameters:
siteName- the site name.language- the language.year- the year.month- the month.- Returns:
- the posts in the specified year and month.
-
getPostsByYear
public Map<String,BlogCacheManager.Post> getPostsByYear(String siteName, String language, int year)
Get the posts for a year.- Parameters:
siteName- the site name.language- the language.year- the year.- Returns:
- the posts in the specified year.
-
getSortedPostsByYear
public Collection<BlogCacheManager.Post> getSortedPostsByYear(String siteName, String language, int year)
Get the posts for a year.- Parameters:
siteName- the site name.language- the language.year- the year.- Returns:
- the posts in the specified year.
-
getPostByName
public BlogCacheManager.Post getPostByName(String siteName, String language, int year, int month, String name)
Get the posts for a year-month couple.- Parameters:
siteName- the site name.language- the language.year- the year.month- the month.name- the name- Returns:
- the posts in the specified year and month.
-
hasPost
public boolean hasPost(String siteName, String language, int year, int month, String id)
Get the posts for a year-month couple.- Parameters:
siteName- the site name.language- the language.year- the year.month- the month.id- the id of post- Returns:
- the posts in the specified year and month.
-
hasPostByName
public boolean hasPostByName(String siteName, String language, int year, int month, String name)
Get the posts for a year-month couple.- Parameters:
siteName- the site name.language- the language.year- the year.month- the month.name- the name of post- Returns:
- the posts in the specified year and month.
-
getTags
public Set<String> getTags(String siteName, String language)
Get the tags for a site and language.- Parameters:
siteName- The site namelanguage- The language- Returns:
- the tag list.
-
hasTag
public boolean hasTag(String siteName, String language, String tagName)
Test if a tag exists in the given site and language.- Parameters:
siteName- The site namelanguage- The languagetagName- The tag name- Returns:
- true if the tag exists, false otherwise.
-
getPostsByTag
public Map<String,BlogCacheManager.Post> getPostsByTag(String siteName, String language, String tagName)
Get the posts for a given tag.- Parameters:
siteName- The site namelanguage- The languagetagName- The tag name- Returns:
- the tag posts, indexed by ID.
-
getSortedPostsByTag
public Collection<BlogCacheManager.Post> getSortedPostsByTag(String siteName, String language, String tagName)
Get the posts for a given tag.- Parameters:
siteName- The site namelanguage- The languagetagName- The tag name- Returns:
- the tag posts, indexed by ID.
-
getSortedPostsByTag
public Collection<BlogCacheManager.Post> getSortedPostsByTag(String siteName, String language, String tagName, boolean deepSearch)
Get the posts for a given tag.- Parameters:
siteName- The site namelanguage- the languagetagName- the tag namedeepSearch- true to perform deep search- Returns:
- the tag posts, indexed by ID.
-
hasPostByTag
public boolean hasPostByTag(String siteName, String language, String tagName, String postId)
Test if a given post has a tag, by its ID.- Parameters:
siteName- The site namelanguage- The languagetagName- The tag namepostId- The id of post- Returns:
- true if the given post has the given tag.
-
getPost
public BlogCacheManager.Post getPost(String siteName, String language, String tagName, String id)
Get the posts for a year-month couple.- Parameters:
siteName- The site namelanguage- The languagetagName- The tag nameid- The id of post- Returns:
- the posts in the specified year and month.
-
getPostByName
public BlogCacheManager.Post getPostByName(String siteName, String language, String tagName, String name)
Get the posts for a year-month couple.- Parameters:
siteName- The site namelanguage- The languagetagName- The tag namename- the name of post- Returns:
- the posts in the specified year and month.
-
hasPost
public boolean hasPost(String siteName, String language, String tagName, String id)
Get the posts for a year-month couple.- Parameters:
siteName- The site namelanguage- The languagetagName- The tag nameid- The id of post- Returns:
- the posts in the specified year and month.
-
hasPostByName
public boolean hasPostByName(String siteName, String language, String tagName, String name)
Get the posts for a year-month couple.- Parameters:
siteName- The site namelanguage- The languagetagName- The tag namename- the name of post- Returns:
- the posts in the specified year and month.
-
getPostIds
public Set<String> getPostIds(String siteName, String language)
Get a list of all the posts' IDs.- Parameters:
siteName- the site name.language- the language.- Returns:
- all the posts' IDs as a Set.
-
getPosts
public Map<String,BlogCacheManager.Post> getPosts(String siteName, String language)
Get the exhaustive list of Posts.- Parameters:
siteName- the site name.language- the language.- Returns:
- the exhaustive list of Posts, indexed by their ID.
-
getSortedPosts
public Collection<BlogCacheManager.Post> getSortedPosts(String siteName, String language)
Get the exhaustive list of Posts.- Parameters:
siteName- the site name.language- the language.- Returns:
- the exhaustive list of Posts, indexed by their ID.
-
getPost
public BlogCacheManager.Post getPost(String siteName, String language, String id)
Test if a post exists, provided its ID.- Parameters:
id- the post content ID.siteName- the site name.language- the language.- Returns:
- the Post.
-
getPostByName
public BlogCacheManager.Post getPostByName(String siteName, String language, String name)
Test if a post exists, provided its content name.- Parameters:
name- the post content name.siteName- the site name.language- the language.- Returns:
- true if the post exists.
-
hasPost
public boolean hasPost(String siteName, String language, String id)
Test if a post exists, provided its ID.- Parameters:
id- the post content ID.siteName- the site name.language- the language.- Returns:
- true if the post exists.
-
hasPostByName
public boolean hasPostByName(String siteName, String language, String name)
Test if a post exists, provided its content name.- Parameters:
name- the post content name.siteName- the site name.language- the language.- Returns:
- true if the post exists.
-
addPost
public void addPost(String siteName, String language, Content postContent)
Add a post content to the cache.- Parameters:
siteName- The site namelanguage- The languagepostContent- The content
-
modifyPost
public void modifyPost(String siteName, String language, Content postContent)
Modify a post content in the cache.- Parameters:
siteName- The site namelanguage- The languagepostContent- The content
-
validatePost
public void validatePost(String siteName, String language, Content postContent)
Validate a post content.- Parameters:
siteName- The site namelanguage- The languagepostContent- The content
-
removePost
public void removePost(String siteName, String language, Content postContent)
Remove a post content from the cache.- Parameters:
siteName- The site namelanguage- The languagepostContent- The content
-
removePostById
public void removePostById(String siteName, String postId)
Remove a post content from the cache.- Parameters:
siteName- the site name.postId- the post ID.
-
clearCaches
public void clearCaches()
Clear the caches.
-
clearCaches
public void clearCaches(String siteName, String language)
Clear the caches for a given siteName and language.- Parameters:
siteName- The site namelanguage- The language
-
getPostDateCache
protected BlogCacheManager.PostDateCache getPostDateCache(String siteName, String language)
Get the post date cache.- Parameters:
siteName- The site namelanguage- The language- Returns:
- the post date cache for the given site and language.
-
getOrCreatePostDateCache
protected BlogCacheManager.PostDateCache getOrCreatePostDateCache(String workspaceName, String siteName, String language)
Get the post date cache.- Parameters:
workspaceName- The workspacesiteName- The site namelanguage- The language- Returns:
- the post date cache for the given site and language.
-
getPostTagCache
protected BlogCacheManager.PostTagCache getPostTagCache(String siteName, String language)
Get the post tag cache.- Parameters:
siteName- The site namelanguage- The language- Returns:
- the post tag cache for the given site and language.
-
getOrCreatePostTagCache
protected BlogCacheManager.PostTagCache getOrCreatePostTagCache(String workspaceName, String siteName, String language)
Get the post tag cache.- Parameters:
workspaceName- The workspacesiteName- The site namelanguage- The language- Returns:
- the post tag cache for the given site and language.
-
getAllPostCache
protected BlogCacheManager.AllPostCache getAllPostCache(String siteName, String language)
Get the exhaustive post cache.- Parameters:
siteName- The site namelanguage- The language- Returns:
- the post date cache for the given site and language.
-
getOrCreateAllPostCache
protected BlogCacheManager.AllPostCache getOrCreateAllPostCache(String workspaceName, String siteName, String language)
Get the exhaustive post cache.- Parameters:
workspaceName- The workspace namesiteName- The site namelanguage- The language- Returns:
- the post date cache for the given site and language.
-
getFuturePostCache
protected BlogCacheManager.FuturePostCache getFuturePostCache(String siteName, String language)
Get the future post cache.- Parameters:
siteName- the name of the sitelanguage- the language- Returns:
- the post date cache for the given site and language.
-
getOrCreateFuturePostCache
protected BlogCacheManager.FuturePostCache getOrCreateFuturePostCache(String workspaceName, String siteName, String language)
Get the future post cache.- Parameters:
workspaceName- the name of the workspacesiteName- the name of the sitelanguage- the language- Returns:
- the future post cache for the given site and language.
-
isInitialized
protected boolean isInitialized(String workspaceName, String siteName, String language)
Get the exhaustive post cache.- Parameters:
workspaceName- The workspace namesiteName- The site namelanguage- The language- Returns:
- the post date cache for the given site and language.
-
setInitialized
protected void setInitialized(String siteName, String language)
Set the initialized map- Parameters:
siteName- The site namelanguage- The language
-
setInitialized
protected void setInitialized(String siteName, String language, Boolean initialized)
Set the initialized map- Parameters:
siteName- The site namelanguage- The languageinitialized- true to set initialized
-
setInitialized
protected void setInitialized(String workspaceName, String siteName, String language, Boolean initialized)
Set the initialized map- Parameters:
workspaceName- The workspace namesiteName- The site namelanguage- The languageinitialized- true if to set initialized
-
initializeCaches
protected void initializeCaches(String workspaceName, String siteName, String language)
Initialize all the caches.- Parameters:
workspaceName- The workspace namesiteName- The site namelanguage- The language
-
_getDisplayFuturePost
private boolean _getDisplayFuturePost(String siteName)
-
_updateFuturePosts
private void _updateFuturePosts(String workspaceName, String siteName, String language)
-
_needUpdateFuturePosts
private boolean _needUpdateFuturePosts(String workspaceName, String siteName, String language, Date roundedNow)
-
_getOrCreateLastUpdateFuturePosts
private Date _getOrCreateLastUpdateFuturePosts(String workspaceName, String siteName, String language)
-
_isFuturePost
private boolean _isFuturePost(Content post)
-
getPost
protected BlogCacheManager.PostSiteLang getPost(String siteName, String postId)
Get a post by its site name and id.- Parameters:
siteName- the site name.postId- the post ID.- Returns:
- the Post if it exists in the cache, or null if it doesn't.
-
getFuturePost
protected BlogCacheManager.PostSiteLang getFuturePost(String siteName, String postId)
Get a future post by its site name and id.- Parameters:
siteName- the site name.postId- the post ID.- Returns:
- the Post if it exists in the cache, or null if it doesn't.
-
dispatchPost
protected void dispatchPost(BlogCacheManager.PostDateCache dateCache, Content content)
Dispatch a post content in the post date cache.- Parameters:
dateCache- the post date cache.content- the Post content.
-
dispatchPost
protected void dispatchPost(BlogCacheManager.PostDateCache dateCache, BlogCacheManager.Post post)
Add a post in the post date cache.- Parameters:
dateCache- the post date cache.post- the Post to add.
-
dispatchPost
protected void dispatchPost(BlogCacheManager.PostTagCache tagCache, Content content)
Dispatch a post content in the post tag cache.- Parameters:
tagCache- the post tag cache.content- the Post content.
-
dispatchPost
protected void dispatchPost(BlogCacheManager.PostTagCache tagCache, BlogCacheManager.Post post)
Dispatch a post in the post tag cache.- Parameters:
tagCache- the post tag cache.post- the Post to add.
-
dispatchPost
protected void dispatchPost(BlogCacheManager.AllPostCache cache, Content content)
Dispatch a post content in the post cache.- Parameters:
cache- the post cache.content- the Post content.
-
dispatchPost
protected void dispatchPost(BlogCacheManager.AllPostCache cache, BlogCacheManager.Post post)
Dispatch a post in the post cache.- Parameters:
cache- the post cache.post- the Post content.
-
dispatchPost
protected void dispatchPost(BlogCacheManager.FuturePostCache cache, Content content)
Dispatch a post content in the future post cache.- Parameters:
cache- the future post cache.content- the Post content.
-
removePost
protected void removePost(BlogCacheManager.PostDateCache dateCache, Content content)
Remove a post content.- Parameters:
dateCache- the post date cache.content- the Post content.
-
removePost
protected void removePost(BlogCacheManager.PostDateCache dateCache, BlogCacheManager.Post post)
Remove a post content.- Parameters:
dateCache- the post date cache.post- the Post object to remove.
-
removePost
protected void removePost(BlogCacheManager.PostTagCache cache, Content content)
Remove a post content.- Parameters:
cache- the post tag cache.content- the Post content.
-
removePost
protected void removePost(BlogCacheManager.PostTagCache cache, BlogCacheManager.Post post)
Remove a post content.- Parameters:
cache- the post tag cache.post- the Post to remove.
-
removePost
protected void removePost(BlogCacheManager.AllPostCache cache, Content content)
Remove a post content.- Parameters:
cache- the post cache.content- the Post content.
-
removePost
protected void removePost(BlogCacheManager.AllPostCache cache, BlogCacheManager.Post post)
Remove a post content.- Parameters:
cache- the post cache.post- the Post to remove.
-
removePost
protected void removePost(BlogCacheManager.FuturePostCache cache, Content content)
Remove a future post content.- Parameters:
cache- the future post cache.content- the Post content to remove.
-
removePost
protected void removePost(BlogCacheManager.FuturePostCache cache, BlogCacheManager.Post post)
Remove a future post content.- Parameters:
cache- the future post cache.post- the Post to remove.
-
modifyPost
protected void modifyPost(BlogCacheManager.PostDateCache dateCache, BlogCacheManager.Post post, Content postContent)
Remove a post content.- Parameters:
dateCache- the post date cache.post- the post contentpostContent- the post Content.
-
modifyPost
protected void modifyPost(BlogCacheManager.PostTagCache cache, BlogCacheManager.Post post, Content postContent)
Remove a post content.- Parameters:
cache- the post tag cache.post- the post contentpostContent- the post Content.
-
modifyPost
protected void modifyPost(BlogCacheManager.AllPostCache cache, BlogCacheManager.Post post, Content postContent)
Modify a post content.- Parameters:
cache- the post cache.post- the post contentpostContent- the post Content.
-
modifyPost
protected void modifyPost(BlogCacheManager.FuturePostCache cache, BlogCacheManager.Post post, Content postContent)
Modify a future post content.- Parameters:
cache- the post cache.post- the postpostContent- the post Content.
-
-