Class DocumentAutoPublicationHome

java.lang.Object
fr.paris.lutece.plugins.document.business.autopublication.DocumentAutoPublicationHome

public class DocumentAutoPublicationHome extends Object
This class provides instances management methods for DocumentAutoPublication objects
  • Method Details

    • add

      public static void add(DocumentAutoPublication documentAutoPublication)
      Insert a new document auto publication
      Parameters:
      documentAutoPublication - the instance of the DocumentAutoPublication object to insert
    • findAll

      public static Collection<DocumentAutoPublication> findAll()
      Loads all data Document Auto Publication
      Returns:
      The Collection of DocumentAutoPublication object
    • findByPrimaryKey

      public static DocumentAutoPublication findByPrimaryKey(int nPortletId, int nSpaceId)
      Loads the data of Document Auto Publication whose identifier is specified in parameter
      Parameters:
      nPortletId - The Portlet identifier
      nSpaceId - The DocumentSpace identifier
      Returns:
      The DocumentAutoPublication object
    • findByPortletId

      public static Collection<DocumentAutoPublication> findByPortletId(int nPortletId)
      Load the list of Document Auto Publication whose portlet identifier is specified in parameter
      Parameters:
      nPortletId - The Portlet identifier
      Returns:
      The Collection of DocumentAutoPublication object
    • findBySpaceId

      public static Collection<DocumentAutoPublication> findBySpaceId(int nSpaceId)
      Load the list of Document Auto Publication whose DocumentSpace identifier is specified in parameter
      Parameters:
      nSpaceId - The DocumentSpace identifier
      Returns:
      The Collection of DocumentAutoPublication object
    • update

      public static void update(DocumentAutoPublication documentAutoPublication)
      Update the document auto publication
      Parameters:
      documentAutoPublication - The DocumentAutoPublication to update
    • remove

      public static void remove(int nPortletId, int nSpaceId)
      Delete a document auto publication object
      Parameters:
      nPortletId - the portlet identifier
      nSpaceId - the space identifier
    • removeAllSpaces

      public static void removeAllSpaces(int nPortletId)
      Delete All Space from a portlet
      Parameters:
      nPortletId - the portlet identifier
    • isPortletAutoPublished

      public static boolean isPortletAutoPublished(int nPortletId)
      Check if the specified portlet is auto published
      Parameters:
      nPortletId - The portlet id
      Returns:
      true if portlet is auto published, false else.
    • isSpaceAutoPublished

      public static boolean isSpaceAutoPublished(int nSpaceId)
      Check if the specified Space is auto published
      Parameters:
      nSpaceId - The space id
      Returns:
      true if Space is auto published, false else.