|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.contact.business.ContactHome
public final class ContactHome
This class provides instances management methods (create, find, ...) for Contact objects
Method Summary | |
---|---|
static Contact |
create(Contact contact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of contact |
static Contact |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a contact whose identifier is specified in parameter |
static java.util.Collection |
findContactsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of contacts objects |
static fr.paris.lutece.util.ReferenceList |
getContactList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a reference list which contains all the contacts |
static int |
getIdByOrder(int nContactOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search the order number of contacts |
static int |
getMaxOrderContact(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search the max order number of contacts |
static void |
remove(Contact contact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the Contact whose identifier is specified in parameter |
static Contact |
update(Contact contact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the contact which is specified in parameter |
static void |
updateContactOrder(int nNewOrder,
int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the number order of contact |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Contact create(Contact contact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
contact
- The instance of the contact which contains the informations to storeplugin
- The Plugin object
public static Contact update(Contact contact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
contact
- The instance of the contact which contains the data to storeplugin
- The Plugin object
public static void remove(Contact contact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
contact
- The Contact object to removeplugin
- The Plugin objectpublic static Contact findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- The Primary key of the contactplugin
- The Plugin object
public static java.util.Collection findContactsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin object
public static fr.paris.lutece.util.ReferenceList getContactList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin object
public static int getMaxOrderContact(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin object
public static int getIdByOrder(int nContactOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nContactOrder
- the number of order of the contactplugin
- The Plugin object
public static void updateContactOrder(int nNewOrder, int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewOrder
- the new number of ordernId
- the Identifier of contactplugin
- The Plugin object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |