public class BlogDaoImpl extends BlogDaoBase
BlogTRANSFORM_NONE| Constructor and Description |
|---|
BlogDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
Blog |
blogListItemToEntity(BlogData blogListItem) |
Object |
create(int transform,
Blog blog)
Does the same thing as
BlogDao.create(com.communote.server.model.blog.Blog) with an
additional flag called transform. |
Blog |
findByNameIdentifier(String nameIdentifier)
Find the blog with the given name identifier.
|
long |
getBlogCount()
Gets the current count of blogs.
|
protected List<Blog> |
handleFindBlogs(Long[] ids)
Performs the core logic for
BlogDaoBase.findBlogs(Long[]) |
protected Blog |
handleFindByExternalObject(Long internalExternalObjectId)
Performs the core logic for
BlogDaoBase.findByExternalObject(Long) |
protected Blog |
handleFindByExternalObject(String externalSystemId,
String externalId)
Performs the core logic for
BlogDaoBase.findByExternalObject(String, String) |
protected List<Blog> |
handleFindByExternalSystemId(String systemId)
Performs the core logic for
BlogDaoBase.findByExternalSystemId(String) |
protected List<Blog> |
handleFindDirectlyManagedBlogsOfUser(Long userId)
Performs the core logic for
BlogDaoBase.findDirectlyManagedBlogsOfUser(Long) |
protected Blog |
handleFindLatestBlog()
Performs the core logic for
BlogDaoBase.findLatestBlog() |
protected List<BlogData> |
handleGetLastUsedBlogs(Long userId,
int maxResults)
Performs the core logic for
BlogDaoBase.getLastUsedBlogs(Long, int) |
protected List<BlogData> |
handleGetMostUsedBlogs(Long userId,
int maxResults,
int maxDays)
Performs the core logic for
BlogDaoBase.getMostUsedBlogs(Long, int, int) |
void |
resetGlobalPermissions()
Removes "all read" and "all write" from all topics.
|
create, create, create, evict, findBlogs, findByExternalObject, findByExternalObject, findByExternalSystemId, findByNameIdentifier, findByNameIdentifier, findByNameIdentifier, findDirectlyManagedBlogsOfUser, findLatestBlog, getGlobalIdDao, getLastUsedBlogs, getMostUsedBlogs, load, load, loadAll, loadAll, remove, remove, remove, setGlobalIdDao, transformEntities, transformEntity, update, updatepublic Blog blogListItemToEntity(BlogData blogListItem)
BlogDao#blogListItemToEntity(com.communote.server.api.core.blog.BlogData.BlogListItem)public Object create(int transform, Blog blog)
Does the same thing as BlogDao.create(com.communote.server.model.blog.Blog) with an
additional flag called transform. If this flag is set to
TRANSFORM_NONE then the returned entity will NOT be
transformed. If this flag is any of the other constants defined here then the result
WILL BE passed through an operation which can optionally transform the
entity (into a value object for example). By default, transformation does not occur.
create in interface BlogDaocreate in class BlogDaoBasecom.communote.server.persistence.blog.BlogDao#create(int transform,
com.communote.server.persistence.blog.Blog)public Blog findByNameIdentifier(String nameIdentifier)
Find the blog with the given name identifier.
findByNameIdentifier in interface BlogDaofindByNameIdentifier in class BlogDaoBaseBlogDao.findByNameIdentifier(String)public long getBlogCount()
Gets the current count of blogs.
protected List<Blog> handleFindBlogs(Long[] ids)
BlogDaoBase.findBlogs(Long[])handleFindBlogs in class BlogDaoBaseBlogDao.findBlogs(Long[])protected Blog handleFindByExternalObject(Long internalExternalObjectId)
BlogDaoBase.findByExternalObject(Long)handleFindByExternalObject in class BlogDaoBaseprotected Blog handleFindByExternalObject(String externalSystemId, String externalId)
BlogDaoBaseBlogDaoBase.findByExternalObject(String, String)handleFindByExternalObject in class BlogDaoBaseprotected List<Blog> handleFindByExternalSystemId(String systemId)
BlogDaoBase.findByExternalSystemId(String)handleFindByExternalSystemId in class BlogDaoBaseprotected List<Blog> handleFindDirectlyManagedBlogsOfUser(Long userId)
BlogDaoBase.findDirectlyManagedBlogsOfUser(Long)handleFindDirectlyManagedBlogsOfUser in class BlogDaoBaseprotected Blog handleFindLatestBlog()
BlogDaoBase.findLatestBlog()handleFindLatestBlog in class BlogDaoBaseprotected List<BlogData> handleGetLastUsedBlogs(Long userId, int maxResults)
BlogDaoBase.getLastUsedBlogs(Long, int)handleGetLastUsedBlogs in class BlogDaoBaseprotected List<BlogData> handleGetMostUsedBlogs(Long userId, int maxResults, int maxDays)
BlogDaoBase.getMostUsedBlogs(Long, int, int)handleGetMostUsedBlogs in class BlogDaoBasepublic void resetGlobalPermissions()
Removes "all read" and "all write" from all topics.
Copyright © 2019 Communote team. All rights reserved.