Class DocumentAutoPublicationHome
java.lang.Object
fr.paris.lutece.plugins.document.business.autopublication.DocumentAutoPublicationHome
This class provides instances management methods for DocumentAutoPublication objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidadd(DocumentAutoPublication documentAutoPublication) Insert a new document auto publicationstatic Collection<DocumentAutoPublication>findAll()Loads all data Document Auto Publicationstatic Collection<DocumentAutoPublication>findByPortletId(int nPortletId) Load the list of Document Auto Publication whose portlet identifier is specified in parameterstatic DocumentAutoPublicationfindByPrimaryKey(int nPortletId, int nSpaceId) Loads the data of Document Auto Publication whose identifier is specified in parameterstatic Collection<DocumentAutoPublication>findBySpaceId(int nSpaceId) Load the list of Document Auto Publication whoseDocumentSpaceidentifier is specified in parameterstatic booleanisPortletAutoPublished(int nPortletId) Check if the specified portlet is auto publishedstatic booleanisSpaceAutoPublished(int nSpaceId) Check if the specified Space is auto publishedstatic voidremove(int nPortletId, int nSpaceId) Delete a document auto publication objectstatic voidremoveAllSpaces(int nPortletId) Delete All Space from a portletstatic voidupdate(DocumentAutoPublication documentAutoPublication) Update the document auto publication
-
Method Details
-
add
Insert a new document auto publication- Parameters:
documentAutoPublication- the instance of the DocumentAutoPublication object to insert
-
findAll
Loads all data Document Auto Publication- Returns:
- The
CollectionofDocumentAutoPublicationobject
-
findByPrimaryKey
Loads the data of Document Auto Publication whose identifier is specified in parameter- Parameters:
nPortletId- ThePortletidentifiernSpaceId- TheDocumentSpaceidentifier- Returns:
- The
DocumentAutoPublicationobject
-
findByPortletId
Load the list of Document Auto Publication whose portlet identifier is specified in parameter- Parameters:
nPortletId- ThePortletidentifier- Returns:
- The
CollectionofDocumentAutoPublicationobject
-
findBySpaceId
Load the list of Document Auto Publication whoseDocumentSpaceidentifier is specified in parameter- Parameters:
nSpaceId- TheDocumentSpaceidentifier- Returns:
- The
CollectionofDocumentAutoPublicationobject
-
update
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 identifiernSpaceId- 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.
-