fr.paris.lutece.plugins.document.business.portlet
Class DocumentPortletDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.document.business.portlet.DocumentPortletDAO
All Implemented Interfaces:
IDocumentPortletDAO, fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

public class DocumentPortletDAO
extends java.lang.Object
implements IDocumentPortletDAO


Constructor Summary
DocumentPortletDAO()
           
 
Method Summary
 boolean checkIsAliasPortlet(int nPortletId)
          Tests if is a portlet is portlet type alias
 void delete(int nPortletId)
          Deletes records for a portlet identifier in the tables document_portlet, document_published, document_category_portlet
 void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          Insert a new record in the table document_portlet
 fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
          Loads the data of Document Portlet whose identifier is specified in parameter
 java.util.Collection<fr.paris.lutece.util.ReferenceItem> selectDocumentTypeListByCodeAndCategory(int nDocumentId, java.lang.String strCodeDocumentType)
          Load the list of documentTypes
 void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentPortletDAO

public DocumentPortletDAO()
Method Detail

insert

public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Insert a new record in the table document_portlet

Specified by:
insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - the instance of the Portlet object to insert

delete

public void delete(int nPortletId)
Deletes records for a portlet identifier in the tables document_portlet, document_published, document_category_portlet

Specified by:
delete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
nPortletId - the portlet identifier

load

public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
Loads the data of Document Portlet whose identifier is specified in parameter

Specified by:
load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
nPortletId - The Portlet identifier
Returns:
the DocumentPortlet object

store

public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Update the record in the table

Specified by:
store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - A portlet

selectDocumentTypeListByCodeAndCategory

public java.util.Collection<fr.paris.lutece.util.ReferenceItem> selectDocumentTypeListByCodeAndCategory(int nDocumentId,
                                                                                                        java.lang.String strCodeDocumentType)
Load the list of documentTypes

Specified by:
selectDocumentTypeListByCodeAndCategory in interface IDocumentPortletDAO
Parameters:
strCodeDocumentType - The code
Returns:
The Collection of the DocumentTypes

checkIsAliasPortlet

public boolean checkIsAliasPortlet(int nPortletId)
Tests if is a portlet is portlet type alias

Specified by:
checkIsAliasPortlet in interface IDocumentPortletDAO
Parameters:
nPortletId - The identifier of the document
Returns:
true if the portlet is alias, false otherwise


Copyright © 2009 Mairie de Paris. All Rights Reserved.