|
||||||||||
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 IDocumentListPortletDAO
insert
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
portlet
- the instance of the Portlet object to insertpublic void delete(int nPortletId)
delete
in interface IDocumentListPortletDAO
delete
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
nPortletId
- the portlet identifierpublic fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
load
in interface IDocumentListPortletDAO
load
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
nPortletId
- The Portlet identifier
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
store
in interface IDocumentListPortletDAO
store
in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
portlet
- A portletpublic java.util.Collection selectDocumentTypeListByCode(int nDocumentId, java.lang.String strCodeDocumentType)
selectDocumentTypeListByCode
in interface IDocumentListPortletDAO
strCodeDocumentType
- The code
public java.util.Collection selectPortletsListByDocumentId(java.lang.String strDocumentId)
selectPortletsListByDocumentId
in interface IDocumentListPortletDAO
strDocumentId
- the document identifier
public java.util.Collection selectPublishedDocumentsList(int nPortletId)
selectPublishedDocumentsList
in interface IDocumentListPortletDAO
nPortletId
- the portlet identifier
public java.util.Collection selectAssignedDocumentsList(int nPortletId)
selectAssignedDocumentsList
in interface IDocumentListPortletDAO
nPortletId
- The portlet identifier
public boolean checkPublishingIntoPortlet(int nDocumentId, int nPortletId)
checkPublishingIntoPortlet
in interface IDocumentListPortletDAO
nDocumentId
- The identifier of the documentnPortletId
- The identifier of the portlet
public boolean checkAssignIntoPortlet(int nDocumentId, int nPortletId)
checkAssignIntoPortlet
in interface IDocumentListPortletDAO
nDocumentId
- The identifier of the documentnPortletId
- The identifier of the portlet
public void insertIntoPortlet(int nDocumentId, int nPortletId, int nStatus)
insertIntoPortlet
in interface IDocumentListPortletDAO
nDocumentId
- the identifier of the documentnPortletId
- the identifier of the portletpublic void deleteFromPortlet(int nDocumentId, int nPortletId)
deleteFromPortlet
in interface IDocumentListPortletDAO
nDocumentId
- the identifier of the document to deletenPortletId
- the identifier of the portletpublic void publishedIntoPortlet(int nDocumentId, int nPortletId, int nStatus)
publishedIntoPortlet
in interface IDocumentListPortletDAO
document
- the DocumentListPortlet objectnPortletId
- the identifier of the portletnStatus
- the publishing status : 1 for unpublished - 0 for publishedpublic void unPublishedIntoPortlet(int nDocumentId, int nPortletId, int nStatus)
unPublishedIntoPortlet
in interface IDocumentListPortletDAO
document
- the DocumentListPortlet objectnPortletId
- the identifier of the portletnStatus
- the publishing status : 1 for unpublished - 0 for publishedpublic int maxOrderDocumentList(int nPortletId)
maxOrderDocumentList
in interface IDocumentListPortletDAO
nPortletId
- the portlet identifer
public java.util.Collection<Document> selectByPortlet(int nPortletId)
selectByPortlet
in interface IDocumentListPortletDAO
nPortletId
- the identifier of the portlet
public java.util.Collection<Document> selectDocumentsByPortlet(int nPortletId)
selectDocumentsByPortlet
in interface IDocumentListPortletDAO
nPortletId
- the identifier of the portlet
public DocumentListPortlet selectDocument(int nDocumentId, int nPortletId)
selectDocument
in interface IDocumentListPortletDAO
nDocumentId
- The identifier of DocumentListPortletnPortletId
- the identifier of portlet
public int selectIdByOrder(int nDocumentOrder, int nPortletId)
selectIdByOrder
in interface IDocumentListPortletDAO
nDocumentOrder
- The order numbernPortletId
- the portlet identifier
public void getModifyDocumentOrder(int nNewOrder, int nDocumentId, int nPortletId)
getModifyDocumentOrder
in interface IDocumentListPortletDAO
nNewOrder
- 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 |