Class DocumentPortletHome

java.lang.Object
fr.paris.lutece.portal.business.portlet.PortletHome
fr.paris.lutece.plugins.document.business.portlet.DocumentPortletHome
All Implemented Interfaces:
fr.paris.lutece.portal.business.portlet.PortletHomeInterface

@ApplicationScoped @Named("document.DocumentPortletHome") public class DocumentPortletHome extends fr.paris.lutece.portal.business.portlet.PortletHome
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    checkIsAliasPortlet(int nPortletId)
    Check whether a portlet is an alias portlet
    static Collection<fr.paris.lutece.util.ReferenceItem>
    findByCodeDocumentTypeAndCategory(int nDocumentId, String strCodeDocumentType, PortletOrder pOrder, PortletFilter pFilter)
    Returns a list of couple id_portlet/name filtered by documentType and category
    static List<Integer>
    findPortletForDocument(int nDocumentId)
    Finds all portlets that contains the document
    fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
    Returns the instance of the portlet DAO singleton
    static fr.paris.lutece.portal.business.portlet.PortletHome
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the identifier of the portlet type

    Methods inherited from class fr.paris.lutece.portal.business.portlet.PortletHome

    create, findByPrimaryKey, findByType, getAliasList, getColumnPositions, getLastModifiedPortlet, getPagePositions, getPortletListByStyle, getPortletsByRoleKey, getPortletsListbyName, getPortletType, getStylesList, getUsedOrdersForColumns, getXslFile, getXslSource, hasAlias, invalidate, invalidate, notifyListeners, placeInColumn, remove, update, updatePosition, updateStatus

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DocumentPortletHome

      public DocumentPortletHome()
      Constructor
  • Method Details

    • getInstance

      @Deprecated(since="8.0", forRemoval=true) public static fr.paris.lutece.portal.business.portlet.PortletHome getInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the instance of DocumentPortletHome
      Returns:
      the DocumentPortletHome instance
    • getPortletTypeId

      public String getPortletTypeId()
      Returns the identifier of the portlet type
      Returns:
      the portlet type identifier
    • getDAO

      public fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()
      Returns the instance of the portlet DAO singleton
      Returns:
      the instance of the DAO singleton
    • findByCodeDocumentTypeAndCategory

      public static Collection<fr.paris.lutece.util.ReferenceItem> findByCodeDocumentTypeAndCategory(int nDocumentId, String strCodeDocumentType, PortletOrder pOrder, PortletFilter pFilter)
      Returns a list of couple id_portlet/name filtered by documentType and category
      Parameters:
      nDocumentId - the Document ID
      strCodeDocumentType - the code
      pOrder - the order of the portlets
      pFilter - The portlet filter
      Returns:
      A collection of referenceItem
    • checkIsAliasPortlet

      public static boolean checkIsAliasPortlet(int nPortletId)
      Check whether a portlet is an alias portlet
      Parameters:
      nPortletId - The id of the portlet
      Returns:
      True if the portlet is an alias portlet, false otherwise
    • findPortletForDocument

      public static List<Integer> findPortletForDocument(int nDocumentId)
      Finds all portlets that contains the document
      Parameters:
      nDocumentId - document id
      Returns:
      all portlets id.