fr.paris.lutece.plugins.links.business
Class LinkHome

java.lang.Object
  extended by fr.paris.lutece.plugins.links.business.LinkHome

public final class LinkHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for Link objects


Method Summary
static Link create(Link link)
          Create the link wich is specified in parameter
static void delete(int nLinkId)
          Remove the link whose identifier is specified in parameter
static java.util.Collection<Link> findByPortlet(int nPortletId)
          Return a collection of all the links in a defined portlet
static Link findByPrimaryKey(int nKey)
          Returns an instance of link whose identifier is specified in parameter
static fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nLinkId)
           
static java.util.Collection<Link> getLinksList()
          Return the list of all the links
static void update(Link link)
          Update the link wich is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Link create(Link link)
Create the link wich is specified in parameter

Parameters:
link - The instance of link wich contains the data to store
Returns:
The instance of the link wich has been created with a primary key.

findByPrimaryKey

public static Link findByPrimaryKey(int nKey)
Returns an instance of link whose identifier is specified in parameter

Parameters:
nKey - The identifier (primary key) of the link
Returns:
An instance of link object

getLinksList

public static java.util.Collection<Link> getLinksList()
Return the list of all the links

Returns:
A collection of links objects

update

public static void update(Link link)
Update the link wich is specified in parameter

Parameters:
link - The instance of link wich contains the data to store

delete

public static void delete(int nLinkId)
Remove the link whose identifier is specified in parameter

Parameters:
nLinkId - The identifier of the link to remove

findByPortlet

public static java.util.Collection<Link> findByPortlet(int nPortletId)
Return a collection of all the links in a defined portlet

Parameters:
nPortletId - The identifier of the portlet
Returns:
a links collection

getImageResource

public static fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nLinkId)
Parameters:
nLinkId -
Returns:
ImageResource


Copyright © 2012 Mairie de Paris. All Rights Reserved.