public final class ContactListHome extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assign(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
assigns a contact to a list or a list to a contact
|
static int |
countContactsForList(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Counts how many contacts are associated to the list
|
static int |
countListsForContact(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
counts all lists for one contact
|
static ContactList |
create(ContactList contactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of List
|
static Collection<ContactList> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of contacts objects
|
static ContactList |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a contact whose identifier is specified in
parameter
|
static Collection<ContactList> |
findByRoleKey(String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of contacts objects
|
static Collection<Contact> |
getAssignedContactsFor(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selects the list of assigned contacts for one list
|
static Collection<ContactList> |
getAssignedListsFor(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selects the list of Lists assigned to one contact
|
static int |
getContactListIdByOrder(int nContactListOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search the order number of contactLists
|
static int |
getContactListOrderById(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
returns the order of a contact in a list using its Id
|
static int |
getMaxOrderContact(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search the max order number of contacts for one list
|
static int |
getMaxOrderContactList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search the max order number of contacts for one list
|
static Collection<Contact> |
getNotAssignedContactsFor(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
get all contacts that are not assigned to one specific list
|
static Collection<ContactList> |
getNotAssignedListsFor(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selects the list of Lists not assigned to one contact
|
static boolean |
isAssigned(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
returns true if the count of couples is positive
|
static boolean |
listExists(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns true if the contactList exists
|
static void |
remove(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the Contact whose identifier is specified in parameter
|
static void |
unAssign(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Unassigns a list and a contact
|
static void |
unassignContactsForList(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
unassigns all contacts for one specific list
|
static void |
unassignListsForContact(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
unassigns all lists for one specific contact
|
static ContactList |
update(ContactList contactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the contactList which is specified in parameter
|
static void |
updateContactListOrder(int nNewOrder,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the number order of contact
|
public static ContactList create(ContactList contactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
contactList
- The instance of the contact which contains the
informations to storeplugin
- The Plugin objectpublic static ContactList update(ContactList contactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
contactList
- the contactList object with updated parametersplugin
- The Plugin objectpublic static void remove(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the Id of the contact list to removeplugin
- The Plugin objectpublic static ContactList findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- The Primary key of the contactplugin
- The Plugin objectpublic static Collection<ContactList> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin objectpublic static Collection<ContactList> findByRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strRoleKey
- The role keyplugin
- The Plugin objectpublic static int countContactsForList(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contactListplugin
- The plugin contactpublic static int countListsForContact(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the Id of the contactplugin
- The plugin contactpublic static Collection<Contact> getAssignedContactsFor(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of contactListplugin
- The plugin contactpublic static Collection<Contact> getNotAssignedContactsFor(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- th id of the contactListplugin
- The plugin contactpublic static boolean isAssigned(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactnIdContactList
- the id of contact Listplugin
- The plugin contactpublic static Collection<ContactList> getAssignedListsFor(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the Id of the contactplugin
- The plugin contactpublic static Collection<ContactList> getNotAssignedListsFor(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactplugin
- The plugin Contactpublic static void assign(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactnIdContactList
- the id of the contact listplugin
- The plugin Contactpublic static void unAssign(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactnIdContactList
- the id of contact Listplugin
- The plugin Contactpublic static void unassignContactsForList(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of concerned ContactListplugin
- The plugin Contactpublic static int getMaxOrderContactList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin objectpublic static int getMaxOrderContact(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id contact listplugin
- The Plugin objectpublic static int getContactListIdByOrder(int nContactListOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nContactListOrder
- the order of contactplugin
- The Plugin objectpublic static int getContactListOrderById(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contactListplugin
- The Plugin objectpublic static void updateContactListOrder(int nNewOrder, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contactListnNewOrder
- the new number of orderplugin
- The Plugin objectpublic static boolean listExists(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- The if of contactListplugin
- The Plugin objectpublic static void unassignListsForContact(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- The if of contactplugin
- The Plugin objectCopyright © 2018 City of Paris. All rights reserved.