fr.paris.lutece.plugins.document.business.autopublication
Class DocumentAutoPublicationHome

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

public class DocumentAutoPublicationHome
extends java.lang.Object

This class provides instances management methods for DocumentAutoPublication objects


Constructor Summary
DocumentAutoPublicationHome()
          Constructor
 
Method Summary
static void add(DocumentAutoPublication documentAutoPublication)
          Insert a new document auto publication
static java.util.Collection<DocumentAutoPublication> findAll()
          Loads all data Document Auto Publication
static java.util.Collection<DocumentAutoPublication> findByPortletId(int nPortletId)
          Load the list of Document Auto Publication whose portlet identifier is specified in parameter
static DocumentAutoPublication findByPrimaryKey(int nPortletId, int nSpaceId)
          Loads the data of Document Auto Publication whose identifier is specified in parameter
static java.util.Collection<DocumentAutoPublication> findBySpaceId(int nSpaceId)
          Load the list of Document Auto Publication whose DocumentSpace identifier is specified in parameter
static DocumentAutoPublicationHome getInstance()
          Returns the instance of DocumentAutoPublicationHome
static boolean isPortletAutoPublished(int nPortletId)
          Check if the specified portlet is auto published
static boolean isSpaceAutoPublished(int nSpaceId)
          Check if the specified Space is auto published
static void remove(int nPortletId, int nSpaceId)
          Delete a document auto publication object
static void removeAllSpaces(int nPortletId)
          Delete All Space from a portlet
static void update(DocumentAutoPublication documentAutoPublication)
          Update the document auto publication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentAutoPublicationHome

public DocumentAutoPublicationHome()
Constructor

Method Detail

getInstance

public static DocumentAutoPublicationHome getInstance()
Returns the instance of DocumentAutoPublicationHome

Returns:
the DocumentAutoPublicationHome instance

add

public static void add(DocumentAutoPublication documentAutoPublication)
Insert a new document auto publication

Parameters:
portlet - the instance of the DocumentAutoPublication object to insert

findAll

public static java.util.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 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

findBySpaceId

public static java.util.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:
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 -
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 -
Returns:
true if Space is auto published, false else.


Copyright © 2010 Mairie de Paris. All Rights Reserved.