|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.contact.business.ContactListDAO
public final class ContactListDAO
This class provides Data Access methods for Contact objects
| Constructor Summary | |
|---|---|
ContactListDAO()
|
|
| 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 |
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<Contact> |
selectContactsForList(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects all contacts associated to a specified list |
int |
selectIdByOrder(int nContactOrder,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a contact identifier in a distinct order |
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 |
int |
selectOrderById(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the order of a contact in a list, using the Identifier |
void |
store(ContactList contactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
void |
storeContactOrder(int nNewOrder,
int nId,
int nIdContactList,
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 lists, the specified contact is assigned to |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContactListDAO()
| Method Detail |
|---|
public void insert(ContactList contactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IContactListDAOcontactList - the instance of contactList to insert into DBplugin - the plugin contact
public ContactList load(int nContactListId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IContactListDAOnContactListId - the Id of the contactList to loadplugin - the plugin contact
public java.util.Collection<ContactList> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll in interface IContactListDAOplugin - The plugin
public int countContactsForList(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
countContactsForList in interface IContactListDAOnIdContactList - the Id of contactListplugin - the plugin contact
public int countListsForContact(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
countListsForContact in interface IContactListDAOnIdContact - the Id of concerned contactplugin - the plugin contact
public boolean listExists(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
listExists in interface IContactListDAOnIdContactList - The if of contactListplugin - The Plugin object
public java.util.Collection<Contact> selectContactsForList(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectContactsForList in interface IContactListDAOnIdContactList - the id of contactListplugin - the plugin contact
public boolean isAssigned(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
isAssigned in interface IContactListDAOnIdContact - The id of the contactnIdContactList - The id of the contactListplugin - the plugin contact
public void assign(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
assign in interface IContactListDAOnIdContact - The id of the contactnIdContactList - The contact List that will be associatedplugin - The plugin
public void unAssign(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
unAssign in interface IContactListDAOnIdContact - the id of the contactnIdContactList - the id of the contactListplugin - The plugin
public java.util.Collection<Contact> selectNotAssignedContactsFor(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNotAssignedContactsFor in interface IContactListDAOnIdContactList - the id of the contact Listplugin - the plugin contact
public java.util.Collection<ContactList> selectAssignedListsFor(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAssignedListsFor in interface IContactListDAOnIdContact - the id of the contactplugin - the plugin contact
public java.util.Collection<ContactList> selectNotAssignedListsFor(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNotAssignedListsFor in interface IContactListDAOnIdContact - the id of the contactplugin - the plugin contact
public void delete(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IContactListDAOnIdContactList - the id of contactlist to deleteplugin - The plugin
public void unassignContactsForList(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
unassignContactsForList in interface IContactListDAOnIdContactList - the id of contactlistplugin - the plugin contact
public void unassignListsForContact(int nIdContact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
unassignListsForContact in interface IContactListDAOnIdContact - the Id of the contactplugin - the plugin contact
public void store(ContactList contactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IContactListDAOcontactList - The reference of contactListplugin - The plugin
public void storeContactOrder(int nNewOrder,
int nId,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
storeContactOrder in interface IContactListDAOnIdContactList - The id of contactListnNewOrder - The order numbernId - The contact identifierplugin - The plugin
public int selectIdByOrder(int nContactOrder,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdByOrder in interface IContactListDAOnIdContactList - the id of the contact ListnContactOrder - The order numberplugin - The plugin
public int selectOrderById(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectOrderById in interface IContactListDAOnIdContact - the id of contactnIdContactList - the id of contactListplugin - the plugin contact
public int maxOrderContact(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
maxOrderContact in interface IContactListDAOnIdContactList - the id of the contact listplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||