public class BlogService extends Object
Constructor and Description |
---|
BlogService() |
Modifier and Type | Method and Description |
---|---|
void |
createBlog(Blog blog)
Create an blog
|
void |
createBlog(Blog blog,
List<DocContent> docContent)
Create an blog
|
void |
deleteBlog(int nId)
Remove an blog
|
List<Blog> |
findByFilter(BlogFilter filter)
Returns a collection of blog objects
|
Blog |
findByPrimaryKeyWithoutBinaries(int nIdDocument)
Returns an instance of a blog without binairie file whose identifier is specified in parameter
|
static BlogService |
getInstance()
Get the unique instance of the service
|
List<Blog> |
getLastModifiedBlogsList(int nLimit)
Load the data of nLimit last modified Blog objects and returns them as a list
|
List<Blog> |
getListBlogWhithBinaries()
Load the data of all the blog objects and returns them as a list
|
List<Blog> |
getListBlogWithoutBinaries()
Returns a list of a blog without binairie file whose identifier is specified in parameter
|
Blog |
loadBlog(int nIdDocument)
Returns an instance of a blog whose identifier is specified in parameter
|
List<Blog> |
searchListBlogByTag(int nIdTag)
Load the data of all the blog objects whose tag is specified in parameter
|
void |
updateBlog(Blog blog)
Update an Blog
|
void |
updateBlog(Blog blog,
List<DocContent> docContent)
Update an Blog
|
void |
updateBlogWithoutVersion(Blog blog,
List<DocContent> docContent)
Update an Blog
|
public static BlogService getInstance()
public void createBlog(Blog blog)
blog
- The Blogpublic void updateBlog(Blog blog)
blog
- The Blogpublic void deleteBlog(int nId)
nId
- The blog idpublic void createBlog(Blog blog, List<DocContent> docContent)
blog
- The BlogdocContent
- The Doc contentpublic void updateBlog(Blog blog, List<DocContent> docContent)
blog
- The BlogdocContent
- The Doc Contentpublic void updateBlogWithoutVersion(Blog blog, List<DocContent> docContent)
blog
- The blogdocContent
- The Doc Contentpublic Blog loadBlog(int nIdDocument)
nIdDocument
- The blog primary keypublic Blog findByPrimaryKeyWithoutBinaries(int nIdDocument)
nIdDocument
- The blog primary keypublic List<Blog> getListBlogWhithBinaries()
public List<Blog> getListBlogWithoutBinaries()
public List<Blog> searchListBlogByTag(int nIdTag)
nIdtag
- idTag parampublic List<Blog> findByFilter(BlogFilter filter)
filter
- The filterCopyright © 2020 City of Paris. All rights reserved.