Class EntryHome
- java.lang.Object
-
- fr.paris.lutece.plugins.termofservice.business.EntryHome
-
public final class EntryHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Entry objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Entrycreate(Entry entry)Create an instance of the entry classstatic java.util.Optional<Entry>findByLastVersion()Returns an instance of a entry whose identifier is specified in parameterstatic java.util.Optional<Entry>findByPrimaryKey(int nKey)Returns an instance of a entry whose identifier is specified in parameterstatic java.util.Optional<Entry>findPublishedEntry()Returns an instance of a published entrystatic java.util.List<Entry>getEntrysList()Load the data of all the entry objects and returns them as a liststatic java.util.List<Entry>getEntrysListByIds(java.util.List<java.lang.Integer> listIds)Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetEntrysReferenceList()Load the data of all the entry objects and returns them as a referenceListstatic java.util.List<java.lang.Integer>getIdEntrysList()Load the id of all the entry objects and returns them as a liststatic voidpublishEntry(int nKey)Publish the entry whose identifier is specified in parameterstatic voidremove(int nKey)Remove the entry whose identifier is specified in parameterstatic voidunpublishAllEntries()Unpublish all entriesstatic Entryupdate(Entry entry)Update of the entry which is specified in parameter
-
-
-
Method Detail
-
create
public static Entry create(Entry entry)
Create an instance of the entry class- Parameters:
entry- The instance of the Entry which contains the informations to store- Returns:
- The instance of entry which has been created with its primary key.
-
update
public static Entry update(Entry entry)
Update of the entry which is specified in parameter- Parameters:
entry- The instance of the Entry which contains the data to store- Returns:
- The instance of the entry which has been updated
-
remove
public static void remove(int nKey)
Remove the entry whose identifier is specified in parameter- Parameters:
nKey- The entry Id
-
publishEntry
public static void publishEntry(int nKey)
Publish the entry whose identifier is specified in parameter- Parameters:
nKey- The identifier of the Entry to publish
-
unpublishAllEntries
public static void unpublishAllEntries()
Unpublish all entries
-
findByPrimaryKey
public static java.util.Optional<Entry> findByPrimaryKey(int nKey)
Returns an instance of a entry whose identifier is specified in parameter- Parameters:
nKey- The entry primary key- Returns:
- an instance of Entry
-
findByLastVersion
public static java.util.Optional<Entry> findByLastVersion()
Returns an instance of a entry whose identifier is specified in parameter- Parameters:
nKey- The entry primary key- Returns:
- an instance of Entry
-
findPublishedEntry
public static java.util.Optional<Entry> findPublishedEntry()
Returns an instance of a published entry- Returns:
- an instance of published Entry
-
getEntrysList
public static java.util.List<Entry> getEntrysList()
Load the data of all the entry objects and returns them as a list- Returns:
- the list which contains the data of all the entry objects
-
getIdEntrysList
public static java.util.List<java.lang.Integer> getIdEntrysList()
Load the id of all the entry objects and returns them as a list- Returns:
- the list which contains the id of all the entry objects
-
getEntrysReferenceList
public static fr.paris.lutece.util.ReferenceList getEntrysReferenceList()
Load the data of all the entry objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the entry objects
-
getEntrysListByIds
public static java.util.List<Entry> getEntrysListByIds(java.util.List<java.lang.Integer> listIds)
Load the data of all the avant objects and returns them as a list- Parameters:
listIds- liste of ids- Returns:
- the list which contains the data of all the avant objects
-
-