Class DocumentAutoPublicationHome


  • public class DocumentAutoPublicationHome
    extends java.lang.Object
    This class provides instances management methods for DocumentAutoPublication objects
    • Method Detail

      • add

        public static void add​(DocumentAutoPublication documentAutoPublication)
        Insert a new document auto publication
        Parameters:
        documentAutoPublication - the instance of the DocumentAutoPublication object to insert
      • 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 java.util.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
      • 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.