public final class SponsoredLinkTemplateHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static SponsoredLinkTemplate |
create(SponsoredLinkTemplate template,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of SponsoredLinkTemplate
|
static Collection<SponsoredLinkTemplate> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all stored SponsoredLinkTemplate objects
|
static SponsoredLinkTemplate |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the SponsoredLinkTemplate whose identifier/order is specified in parameter
|
static Collection<SponsoredLinkTemplate> |
findByResourceType(String strResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns templates that are linked to the specified resource type
|
static fr.paris.lutece.util.ReferenceList |
findReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects all link template and put them in a ReferenceList
|
static void |
remove(SponsoredLinkTemplate template,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes the specified SponsoredLinkTemplate (optional operation).
|
static SponsoredLinkTemplate |
update(SponsoredLinkTemplate template,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the specified SponsoredLinkTemplate
|
static SponsoredLinkTemplate |
updateOrder(SponsoredLinkTemplate template,
int nNewOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates a SponsoredLinkTemplate to a new order and shifts in-between templates consequently
|
public static SponsoredLinkTemplate create(SponsoredLinkTemplate template, fr.paris.lutece.portal.service.plugin.Plugin plugin)
template - The instance of SponsoredLinkTemplate which contains the data to storeplugin - The Plugin objectpublic static SponsoredLinkTemplate update(SponsoredLinkTemplate template, fr.paris.lutece.portal.service.plugin.Plugin plugin)
template - The instance of SponsoredLinkTemplate which contains the data to storeplugin - The Plugin objectpublic static SponsoredLinkTemplate updateOrder(SponsoredLinkTemplate template, int nNewOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws IndexOutOfBoundsException
template - The template to update ordernNewOrder - the new order for the templateplugin - the Plugin objectIndexOutOfBoundsException - if the new order parameter is less than 1 or greater than the current max orderpublic static void remove(SponsoredLinkTemplate template, fr.paris.lutece.portal.service.plugin.Plugin plugin)
template - The SponsoredLinkTemplate object to removeplugin - The Plugin objectpublic static SponsoredLinkTemplate findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - The primary key of the templateplugin - The Plugin objectpublic static Collection<SponsoredLinkTemplate> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin objectpublic static Collection<SponsoredLinkTemplate> findByResourceType(String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strResourceType - The type of the linked resourceplugin - The Plugin objectpublic static fr.paris.lutece.util.ReferenceList findReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin using this data access serviceCopyright © 2015 City of Paris. All rights reserved.