public class BlogService extends Object
| Constructor and Description |
|---|
BlogService() |
| Modifier and Type | Method and Description |
|---|---|
void |
createDocument(Blog blog,
DocContent docContent)
Create an blog
|
void |
createDocument(Blog blog,
List<DocContent> docContent)
Create an blog
|
void |
deleteDocument(int nId)
Remvove an blog
|
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> |
getListDocWhithContent()
Load the data of all the blog objects and returns them as a list
|
List<Blog> |
getListDocWithoutBinaries()
Returns a list of a blog without binairie file whose identifier is specified in parameter
|
Blog |
loadDocument(int nIdDocument)
Returns an instance of a blog whose identifier is specified in parameter
|
List<Blog> |
searchListDocByTag(Tag tag)
Load the data of all the blog objects whose tag is specified in parameter
|
void |
updateBlogWithoutVersion(Blog blog,
List<DocContent> docContent)
Update an Blog
|
void |
updateDocument(Blog blog,
DocContent docContent)
Update an Blog
|
void |
updateDocument(Blog blog,
List<DocContent> docContent)
Update an Blog
|
public static BlogService getInstance()
public void createDocument(Blog blog, DocContent docContent)
blog - The BlogdocContent - The Doc contentpublic void deleteDocument(int nId)
nId - The blog idpublic void createDocument(Blog blog, List<DocContent> docContent)
blog - The BlogdocContent - The Doc contentpublic void updateDocument(Blog blog, DocContent docContent)
blog - The Ht-mlDocdocContent - The Doc Contentpublic void updateDocument(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 loadDocument(int nIdDocument)
nIdDocument - The blog primary keypublic Blog findByPrimaryKeyWithoutBinaries(int nIdDocument)
nIdDocument - The blog primary keypublic List<Blog> getListDocWhithContent()
public List<Blog> getListDocWithoutBinaries()
public List<Blog> searchListDocByTag(Tag tag)
tag - Tag paramCopyright © 2018 City of Paris. All rights reserved.