Class DocContentHome
- java.lang.Object
-
- fr.paris.lutece.plugins.blog.business.DocContentHome
-
public final class DocContentHome extends Object
This class provides instances management methods (create, find, ...) for Blog objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreate(DocContent docContent)Create an instance of the DocContent classstatic DocContentgetDocsContent(int nIdDocument)Returns an instance of a DocContent whose identifier is specified in parameterstatic List<DocContent>getDocsContentByHtmlDoc(int nIdHtmlDoc)Returns an list of a DocContent whose htmldoc identifier is specified in parameterstatic List<ContentType>getListContentType()Returns a list of a ContentTypestatic voidinsertInBlog(int nIdBlog, int nIdDocument, int nPriority)static voidremove(int nBlogId)Remove the DocContent whose identifier Blog is specified in parameterstatic voidremoveById(int nKey)Remove the DocContent whose identifier is specified in parameterstatic voidremoveInBlogById(int nDocumentId)Remove the correspondance beetween the document and the blogstatic DocContentupdate(DocContent docContent)Update of the DocContent which is specified in parameter
-
-
-
Method Detail
-
create
public static void create(DocContent docContent)
Create an instance of the DocContent class- Parameters:
docContent- The Document Content
-
insertInBlog
public static void insertInBlog(int nIdBlog, int nIdDocument, int nPriority)- Parameters:
nIdBlog- the blog idnIdDocument- the document idnPriority- the priority
-
update
public static DocContent update(DocContent docContent)
Update of the DocContent which is specified in parameter- Parameters:
docContent- the Document Content- Returns:
- the instance of DocContent updated
-
remove
public static void remove(int nBlogId)
Remove the DocContent whose identifier Blog is specified in parameter- Parameters:
nBlogId- the Id DocContent
-
removeInBlogById
public static void removeInBlogById(int nDocumentId)
Remove the correspondance beetween the document and the blog- Parameters:
nDocumentId- the document id
-
removeById
public static void removeById(int nKey)
Remove the DocContent whose identifier is specified in parameter- Parameters:
nKey- the Id DocContent
-
getDocsContent
public static DocContent getDocsContent(int nIdDocument)
Returns an instance of a DocContent whose identifier is specified in parameter- Parameters:
nIdDocument-- Returns:
- an instance of DocContent
-
getDocsContentByHtmlDoc
public static List<DocContent> getDocsContentByHtmlDoc(int nIdHtmlDoc)
Returns an list of a DocContent whose htmldoc identifier is specified in parameter- Parameters:
nIdHtmlDoc-- Returns:
- an instance of DocContent
-
getListContentType
public static List<ContentType> getListContentType()
Returns a list of a ContentType- Returns:
- a list of a ContentType
-
-