public final class ContactHome extends Object
Modifier and Type | Method and Description |
---|---|
static Contact |
create(Contact contact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of contact
|
static Collection<Contact> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of contacts objects
|
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 int |
getContactIdByOrder(int nContactOrder,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search the order number of contacts for one list
|
static int |
getContactOrderById(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
returns the order of a contact in a list using its Id
|
static fr.paris.lutece.util.ReferenceList |
getContactsByListWithString(int nIdContactList,
String strComboItem,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a reference list which contains all the contacts and the string "choose your contact", for the xpage
|
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,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the number order of contact
|
static void |
updateHits(int nIdContactList,
int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Increments hits in contact and contact_list_contact tables
|
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 objectpublic 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 objectpublic 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 objectpublic static Collection<Contact> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin objectpublic static fr.paris.lutece.util.ReferenceList getContactsByListWithString(int nIdContactList, String strComboItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- The id of contactListstrComboItem
- The string to display at the top of comboplugin
- The Plugin objectpublic static void updateHits(int nIdContactList, int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- id of the contactListnIdContact
- id of the contactplugin
- the plugin Contactpublic static int getContactIdByOrder(int nContactOrder, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contactListnContactOrder
- the number of order of the contactplugin
- The Plugin objectpublic static int getContactOrderById(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactnIdContactList
- the id of the contactListplugin
- The Plugin objectpublic static void updateContactOrder(int nNewOrder, int nId, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contactListnNewOrder
- the new number of ordernId
- the Identifier of contactplugin
- The Plugin objectCopyright © 2018 City of Paris. All rights reserved.