|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.business.portlet.PortletHome
fr.paris.lutece.plugins.document.business.portlet.DocumentListPortletHome
public class DocumentListPortletHome
This class provides instances management methods for ArticlesListPortlet objects
Constructor Summary | |
---|---|
DocumentListPortletHome()
|
Method Summary | |
---|---|
static boolean |
checkAssignIntoPortlet(int nDocumentId,
int nPortletId)
Checks if the document is not yet assigned into the portlet |
static boolean |
checkPublishingIntoPortlet(int nDocumentId,
int nPortletId)
Checks if the document is not yet published into the portlet |
static void |
deleteFromPortlet(int nDocumentId,
int nPortletId)
Delete the relationship between an document and a portlet |
static java.util.Collection |
findByCodeDocumentType(int nDocumentId,
java.lang.String strCodeDocumentType)
Returns a collection of documentTypes objects |
static java.util.Collection<Document> |
findByPortlet(int nPortletId)
Returns a Collection of Documents objects from a portlet identifier |
static java.util.Collection<Document> |
findDocumentsByPortlet(int nPortletId)
Returns a Collection of Documents objects from a portlet identifier |
static java.util.Collection |
getAssignedDocumentsList(int nPortletId)
Loads the list of the docuemnts whose type is the same as the one specified in parameter |
fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO |
getDAO()
Returns the instance of the portlet DAO singleton |
static DocumentListPortlet |
getDocument(int nDocumentId,
int nPortletId)
Returns an instance of a documentListPortlet whose identifier is specified in parameter |
static int |
getIdByOrder(int nDocumentOrder,
int nPortletId)
Search the order number of documents |
static fr.paris.lutece.portal.business.portlet.PortletHome |
getInstance()
Returns the instance of DocumentPortletHome |
static int |
getMaxOrderDocument(int nPortletId)
Search the max order number of documents |
static void |
getModifyDocumentOrder(int nNewOrder,
int nDocumentId,
int nPortletId)
Update the number order of documents |
static java.util.Collection |
getPortletsListbyDocumentId(java.lang.String strDocumentId)
Loads the list of the portlets whose type is the same as the one specified in parameter |
java.lang.String |
getPortletTypeId()
Returns the identifier of the portlet type |
static java.util.Collection |
getPublishedDocumentsList(int nPortletId)
Loads the list of the docuemnts whose type is the same as the one specified in parameter |
static void |
insertIntoPortlet(int nDocumentId,
int nPortletId,
int nStatus)
Insert the relationship between an document and a portlet for publishing |
static void |
publishingDocument(int nDocumentId,
int nPortletId,
int nStatus)
Publishing documents assigned to a portlet |
static void |
unPublishingDocument(int nDocumentId,
int nPortletId,
int nStatus)
UnPublishing documents assigned to a portlet |
Methods inherited from class fr.paris.lutece.portal.business.portlet.PortletHome |
---|
create, findByPrimaryKey, findByType, getPortletListByStyle, getPortletsListbyName, getPortletType, getStylesList, hasAlias, invalidate, invalidate, remove, update, updateStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentListPortletHome()
Method Detail |
---|
public static fr.paris.lutece.portal.business.portlet.PortletHome getInstance()
public java.lang.String getPortletTypeId()
public fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()
public static DocumentListPortlet getDocument(int nDocumentId, int nPortletId)
nDocumentId
- The documenr identifiernPortletId
- the portlet identifier
public static java.util.Collection findByCodeDocumentType(int nDocumentId, java.lang.String strCodeDocumentType)
strCodeDocumentType
- the code
public static java.util.Collection getPortletsListbyDocumentId(java.lang.String strDocumentId)
strDocumentId
- the document identifier
public static boolean checkPublishingIntoPortlet(int nDocumentId, int nPortletId)
nDocumentId
- the article identifiernPortletId
- the portlet identifier
public static boolean checkAssignIntoPortlet(int nDocumentId, int nPortletId)
nDocumentId
- the article identifiernPortletId
- the portlet identifier
public static void insertIntoPortlet(int nDocumentId, int nPortletId, int nStatus)
nDocumentId
- the document identifiernPortletId
- the portlet identifierpublic static void publishingDocument(int nDocumentId, int nPortletId, int nStatus)
document
- the DocumentListPortlet objectnPortletId
- the portlet identifiernStatus
- the publishong status : 1 for unpublished - 0 for publishedpublic static void unPublishingDocument(int nDocumentId, int nPortletId, int nStatus)
nDocumentId
- the DocumentListPortlet identifiernPortletId
- the portlet identifiernStatus
- the publishong status : 0 for unpublished - 1 for publishedpublic static void deleteFromPortlet(int nDocumentId, int nPortletId)
nDocumentId
- the document identifiernPortletId
- the portlet identifierpublic static java.util.Collection<Document> findByPortlet(int nPortletId)
nPortletId
- the Portlet identifier
public static java.util.Collection<Document> findDocumentsByPortlet(int nPortletId)
nPortletId
- the Portlet identifier
public static java.util.Collection getPublishedDocumentsList(int nPortletId)
nPortletId
- the portlet identifier
public static java.util.Collection getAssignedDocumentsList(int nPortletId)
nPortletId
- the portlet identifier
public static int getMaxOrderDocument(int nPortletId)
public static int getIdByOrder(int nDocumentOrder, int nPortletId)
nDocumentOrder
- the number of order of the documentnPortletId
- the portlet identifier
public static void getModifyDocumentOrder(int nNewOrder, int nDocumentId, int nPortletId)
nNewOrder
- the new number of ordernDocumentId
- the Identifier of documentsnPortletId
- the Identifier of portlet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |