|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContactListDAO
IContactDAO Interface
Method Summary | |
---|---|
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 |
java.util.Collection<ContactList> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of contactsList |
java.util.Collection<ContactList> |
selectAssignedListsFor(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects assigned lists for a contact |
java.util.Collection<ContactList> |
selectByRoleKey(java.lang.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 |
java.util.Collection<Contact> |
selectContactsForList(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects all contacts associated to a specified list |
java.util.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 |
java.util.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 |
Method Detail |
---|
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 contact
void 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 pluginjava.util.Collection<ContactList> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The plugin
int countContactsForList(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the Id of contactListplugin
- the plugin contact
java.util.Collection<Contact> selectContactsForList(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of contactListplugin
- the plugin contact
boolean 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 contact
void 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 pluginjava.util.Collection<Contact> selectNotAssignedContactsFor(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contact Listplugin
- the plugin contact
java.util.Collection<ContactList> selectAssignedListsFor(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactplugin
- the plugin contact
java.util.Collection<ContactList> selectByRoleKey(java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strRoleKey
- The role keyplugin
- the plugin contact
java.util.Collection<ContactList> selectNotAssignedListsFor(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactplugin
- the plugin contact
void 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 plugin
int maxOrderContact(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contact listplugin
- The plugin
void 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 plugin
int selectContactListOrderById(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of contactListplugin
- the plugin contact
void 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 contact
boolean listExists(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- The if of contactListplugin
- The Plugin object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |