public interface IAnnounceDAO
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdAnnounce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteAnnounceResponse(int nIdAnnounce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the association between an announce and responses
|
List<Announce> |
findByListId(List<Integer> listIdAnnounces,
AnnounceSort announceSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of announces from a list of ids
|
List<Integer> |
findIdAnnouncesByDateCreation(Timestamp timestamp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of ids of announces that was created before the given date
|
List<Integer> |
findIdAnnouncesByDatePublication(long lMinPublicationTime,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of ids of announces that were created after a given time
|
Integer |
findIdByImageResponse(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the announce id from its image response id
|
List<Integer> |
findListIdImageResponse(int nIdAnnounce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of image responses associated with an announce
|
List<Integer> |
findListIdResponse(int nIdAnnounce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of responses associated with an announce
|
void |
insert(Announce announce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insertAnnounceResponse(int nIdAnnounce,
int nIdResponse,
boolean bIsImage,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associates a response to an Announce
|
Announce |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
List<Integer> |
selectAll(AnnounceSort announceSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the announce objects and returns them as a List
|
List<Announce> |
selectAllForUser(String strUsername,
AnnounceSort announceSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selects all announces for a given user
|
List<Announce> |
selectAllPublished(AnnounceSort announceSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selects all the published announces
|
List<Integer> |
selectAllPublishedForCategory(Category category,
AnnounceSort announceSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selects all published announces for a given category
|
List<Integer> |
selectAllPublishedId(AnnounceSort announceSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selects id of published announces
|
void |
setHasNotifed(Announce announce,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
setPublished(Announce announce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
publish or unpublish an announce
|
void |
setSuspended(Announce announce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
suspend or enable an announce
|
void |
setSuspendedByUser(Announce announce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
suspend or enable an announce
|
void |
store(Announce announce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
void insert(Announce announce, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announce - instance of the Announce object to insertplugin - the Pluginvoid store(Announce announce, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announce - the reference of the Announceplugin - the Pluginvoid delete(int nIdAnnounce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAnnounce - int identifier of the Announce to deleteplugin - the PluginAnnounce load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - the primary keyplugin - the PluginList<Integer> selectAll(AnnounceSort announceSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announceSort - the sort to useplugin - the PluginList<Integer> selectAllPublishedId(AnnounceSort announceSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announceSort - the sort to useplugin - the pluginList<Announce> selectAllPublished(AnnounceSort announceSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announceSort - the sort to useplugin - the pluginList<Announce> findByListId(List<Integer> listIdAnnounces, AnnounceSort announceSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announceSort - the sort to uselistIdAnnounces - The list of ids of announces to getplugin - The pluginList<Integer> selectAllPublishedForCategory(Category category, AnnounceSort announceSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announceSort - the sort to usecategory - announces listplugin - the pluginList<Announce> selectAllForUser(String strUsername, AnnounceSort announceSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announceSort - the sort to usestrUsername - the usernameplugin - the pluginvoid setPublished(Announce announce, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announce - the announceplugin - the pluginvoid setHasNotifed(Announce announce, fr.paris.lutece.portal.service.plugin.Plugin plugin)
void setSuspended(Announce announce, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announce - the announceplugin - the pluginvoid setSuspendedByUser(Announce announce, fr.paris.lutece.portal.service.plugin.Plugin plugin)
announce - the announceplugin - the pluginList<Integer> findIdAnnouncesByDateCreation(Timestamp timestamp, fr.paris.lutece.portal.service.plugin.Plugin plugin)
timestamp - The timestampplugin - The pluginvoid insertAnnounceResponse(int nIdAnnounce,
int nIdResponse,
boolean bIsImage,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAnnounce - The id of the AnnouncenIdResponse - The id of the responsebIsImage - True if the response is an image, false otherwiseplugin - The pluginList<Integer> findListIdResponse(int nIdAnnounce, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAnnounce - the id of the announceplugin - the pluginList<Integer> findListIdImageResponse(int nIdAnnounce, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAnnounce - the id of the announceplugin - the pluginvoid deleteAnnounceResponse(int nIdAnnounce,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAnnounce - The id of the announceplugin - The pluginList<Integer> findIdAnnouncesByDatePublication(long lMinPublicationTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
lMinPublicationTime - The minimum publication time of announces to getplugin - The pluginInteger findIdByImageResponse(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdResponse - the id of the responseplugin - the pluginCopyright © 2019 City of Paris. All rights reserved.