|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.document.business.portlet.DocumentListPortletDAO
public final class DocumentListPortletDAO
This class provides Data Access methods for ArticlesListPortlet objects
| Constructor Summary | |
|---|---|
DocumentListPortletDAO()
|
|
| Method Summary | |
|---|---|
boolean |
checkAssignIntoPortlet(int nDocumentId,
int nPortletId)
Tests before insert it, if an article is already assigned in a portlet |
boolean |
checkPublishingIntoPortlet(int nDocumentId,
int nPortletId)
Tests before insert it, if an document is already published in a portlet |
void |
delete(int nPortletId)
Deletes records for a portlet identifier in the tables portlet_articles_list, published_article_portlet, auto_publishing |
void |
deleteFromPortlet(int nDocumentId,
int nPortletId)
Deletes an document assigned from a portlet |
void |
getModifyDocumentOrder(int nNewOrder,
int nDocumentId,
int nPortletId)
Modify the order of a document |
void |
insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Insert a new record in the table portlet_articles_list |
void |
insertIntoPortlet(int nDocumentId,
int nPortletId,
int nStatus)
Insert the documents whose identifier is specified in parameter in a portlet for assignes |
fr.paris.lutece.portal.business.portlet.Portlet |
load(int nPortletId)
Loads the data of Document List Portlet whose identifier is specified in parameter |
int |
maxOrderDocumentList(int nPortletId)
Calculate the new max order |
void |
publishedIntoPortlet(int nDocumentId,
int nPortletId,
int nStatus)
Published the documents whose identifier is specified in parameter in a portlet for publishing : set status to 0 |
java.util.Collection |
selectAssignedDocumentsList(int nPortletId)
Load the list of documentTypes |
java.util.Collection<Document> |
selectByPortlet(int nPortletId)
Returns all the documents of a portlet whose identifier is specified |
DocumentListPortlet |
selectDocument(int nDocumentId,
int nPortletId)
Load the data of DocumentListPortlet from the table |
java.util.Collection<Document> |
selectDocumentsByPortlet(int nPortletId)
Returns all the documents of a portlet whose identifier is specified |
java.util.Collection |
selectDocumentTypeListByCode(int nDocumentId,
java.lang.String strCodeDocumentType)
Load the list of documentTypes |
int |
selectIdByOrder(int nDocumentOrder,
int nPortletId)
Returns a document identifier in a distinct order |
java.util.Collection |
selectPortletsListByDocumentId(java.lang.String strDocumentId)
Loads the list of the portlets whose type is the same as the one specified in parameter |
java.util.Collection |
selectPublishedDocumentsList(int nPortletId)
Loads the list of the documents whose type is the same as the one specified in parameter |
void |
store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Update the record in the table |
void |
unPublishedIntoPortlet(int nDocumentId,
int nPortletId,
int nStatus)
UnPublished the documents whose identifier is specified in parameter in a portlet for publishing : set status to 1 and order to -1 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentListPortletDAO()
| Method Detail |
|---|
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
insert in interface IDocumentListPortletDAOinsert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOportlet - the instance of the Portlet object to insertpublic void delete(int nPortletId)
delete in interface IDocumentListPortletDAOdelete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOnPortletId - the portlet identifierpublic fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
load in interface IDocumentListPortletDAOload in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOnPortletId - The Portlet identifier
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
store in interface IDocumentListPortletDAOstore in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOportlet - A portlet
public java.util.Collection selectDocumentTypeListByCode(int nDocumentId,
java.lang.String strCodeDocumentType)
selectDocumentTypeListByCode in interface IDocumentListPortletDAOstrCodeDocumentType - The code
public java.util.Collection selectPortletsListByDocumentId(java.lang.String strDocumentId)
selectPortletsListByDocumentId in interface IDocumentListPortletDAOstrDocumentId - the document identifier
public java.util.Collection selectPublishedDocumentsList(int nPortletId)
selectPublishedDocumentsList in interface IDocumentListPortletDAOnPortletId - the portlet identifier
public java.util.Collection selectAssignedDocumentsList(int nPortletId)
selectAssignedDocumentsList in interface IDocumentListPortletDAOnPortletId - The portlet identifier
public boolean checkPublishingIntoPortlet(int nDocumentId,
int nPortletId)
checkPublishingIntoPortlet in interface IDocumentListPortletDAOnDocumentId - The identifier of the documentnPortletId - The identifier of the portlet
public boolean checkAssignIntoPortlet(int nDocumentId,
int nPortletId)
checkAssignIntoPortlet in interface IDocumentListPortletDAOnDocumentId - The identifier of the documentnPortletId - The identifier of the portlet
public void insertIntoPortlet(int nDocumentId,
int nPortletId,
int nStatus)
insertIntoPortlet in interface IDocumentListPortletDAOnDocumentId - the identifier of the documentnPortletId - the identifier of the portlet
public void deleteFromPortlet(int nDocumentId,
int nPortletId)
deleteFromPortlet in interface IDocumentListPortletDAOnDocumentId - the identifier of the document to deletenPortletId - the identifier of the portlet
public void publishedIntoPortlet(int nDocumentId,
int nPortletId,
int nStatus)
publishedIntoPortlet in interface IDocumentListPortletDAOdocument - the DocumentListPortlet objectnPortletId - the identifier of the portletnStatus - the publishing status : 1 for unpublished - 0 for published
public void unPublishedIntoPortlet(int nDocumentId,
int nPortletId,
int nStatus)
unPublishedIntoPortlet in interface IDocumentListPortletDAOdocument - the DocumentListPortlet objectnPortletId - the identifier of the portletnStatus - the publishing status : 1 for unpublished - 0 for publishedpublic int maxOrderDocumentList(int nPortletId)
maxOrderDocumentList in interface IDocumentListPortletDAOnPortletId - the portlet identifer
public java.util.Collection<Document> selectByPortlet(int nPortletId)
selectByPortlet in interface IDocumentListPortletDAOnPortletId - the identifier of the portlet
public java.util.Collection<Document> selectDocumentsByPortlet(int nPortletId)
selectDocumentsByPortlet in interface IDocumentListPortletDAOnPortletId - the identifier of the portlet
public DocumentListPortlet selectDocument(int nDocumentId,
int nPortletId)
selectDocument in interface IDocumentListPortletDAOnDocumentId - The identifier of DocumentListPortletnPortletId - the identifier of portlet
public int selectIdByOrder(int nDocumentOrder,
int nPortletId)
selectIdByOrder in interface IDocumentListPortletDAOnDocumentOrder - The order numbernPortletId - the portlet identifier
public void getModifyDocumentOrder(int nNewOrder,
int nDocumentId,
int nPortletId)
getModifyDocumentOrder in interface IDocumentListPortletDAOnNewOrder - The order numbernDocumentId - The document identifiernPortletId - the portlet identifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||