public interface IContactListDAO
Modifier and Type | Method and Description |
---|---|
void |
assign(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Inserts 2 keys in association table
|
int |
countContactsForList(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
counts how many contacts are associated to the specified list
|
int |
countListsForContact(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
counts how many lists the contact is associated to
|
void |
delete(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(ContactList contactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
boolean |
isAssigned(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
returns true if a contact is assigned to a list
|
boolean |
listExists(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns true if the contactList exists
|
ContactList |
load(int nContactListId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Contact from the table
|
int |
maxOrderContact(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate the new max order in a list
|
int |
maxOrderContactList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate the new max order
|
Collection<ContactList> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of contactsList
|
Collection<ContactList> |
selectAssignedListsFor(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects assigned lists for a contact
|
Collection<ContactList> |
selectByRoleKey(String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects lists for a role key
|
int |
selectContactListIdByOrder(int nContactListOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a contact identifier in a distinct order
|
int |
selectContactListOrderById(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the order of a contactList
|
Collection<Contact> |
selectContactsForList(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects all contacts associated to a specified list
|
Collection<Contact> |
selectNotAssignedContactsFor(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects the list of all contacts that are not assigned to the specified
list
|
Collection<ContactList> |
selectNotAssignedListsFor(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selects all lists, the contact is not associated to
|
void |
store(ContactList contactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
void |
storeContactListOrder(int nNewOrder,
int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the order of a contact
|
void |
unAssign(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Unassigns a contact of a list, or a list of a contact
|
void |
unassignContactsForList(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Unassigns all contacts for a specified list
|
void |
unassignListsForContact(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Unassigns all contacts for a specified list
|
void insert(ContactList contactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
contactList
- the instance of contactList to insert into DBplugin
- the plugin contactContactList load(int nContactListId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nContactListId
- the Id of the contactList to loadplugin
- the plugin contactvoid delete(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of contactlist to deleteplugin
- The pluginvoid store(ContactList contactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
contactList
- The reference of contactListplugin
- The pluginCollection<ContactList> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The pluginint countContactsForList(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the Id of contactListplugin
- the plugin contactCollection<Contact> selectContactsForList(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of contactListplugin
- the plugin contactboolean isAssigned(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 contactvoid assign(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- The id of the contactnIdContactList
- The contact List that will be associatedplugin
- The pluginvoid unAssign(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactnIdContactList
- the id of the contactListplugin
- The pluginCollection<Contact> selectNotAssignedContactsFor(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contact Listplugin
- the plugin contactCollection<ContactList> selectAssignedListsFor(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactplugin
- the plugin contactCollection<ContactList> selectByRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strRoleKey
- The role keyplugin
- the plugin contactCollection<ContactList> selectNotAssignedListsFor(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactplugin
- the plugin contactvoid unassignContactsForList(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of contactlistplugin
- the plugin contactint maxOrderContactList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The pluginint maxOrderContact(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contact listplugin
- The pluginvoid storeContactListOrder(int nNewOrder, int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nNewOrder
- The order numbernId
- The contactList identifierplugin
- The pluginint selectContactListIdByOrder(int nContactListOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nContactListOrder
- The order numberplugin
- The pluginint selectContactListOrderById(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of contactListplugin
- the plugin contactvoid unassignListsForContact(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of contactplugin
- the plugin contactint countListsForContact(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the Id of concerned contactplugin
- the plugin contactboolean listExists(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- The if of contactListplugin
- The Plugin objectCopyright © 2018 City of Paris. All rights reserved.