Class EntryHome
java.lang.Object
fr.paris.lutece.plugins.termofservice.business.EntryHome
This class provides instances management methods (create, find, ...) for Entry objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntryCreate an instance of the entry classReturns an instance of a entry whose identifier is specified in parameterfindByPrimaryKey(int nKey) Returns an instance of a entry whose identifier is specified in parameterReturns an instance of a published entryLoad the data of all the entry objects and returns them as a listgetEntrysListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the entry objects and returns them as a referenceListLoad 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 voidUnpublish all entriesstatic EntryUpdate of the entry which is specified in parameter
-
Method Details
-
create
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
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
Returns an instance of a entry whose identifier is specified in parameter- Parameters:
nKey- The entry primary key- Returns:
- an instance of 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
Returns an instance of a published entry- Returns:
- an instance of published 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
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
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
-