|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.contact.business.ContactListHome
public final class ContactListHome
This class provides instances management methods (create, find, ...) for Contact objects
Method Summary | |
---|---|
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 java.util.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 java.util.Collection<ContactList> |
findByRoleKey(java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of contacts objects |
static java.util.Collection<Contact> |
getAssignedContactsFor(int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selects the list of assigned contacts for one list |
static java.util.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 java.util.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 java.util.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 object
public static ContactList update(ContactList contactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
contactList
- the contactList object with updated parametersplugin
- The Plugin object
public 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 object
public static java.util.Collection<ContactList> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin object
public static java.util.Collection<ContactList> findByRoleKey(java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strRoleKey
- The role keyplugin
- The Plugin object
public static int countContactsForList(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contactListplugin
- The plugin contact
public static int countListsForContact(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the Id of the contactplugin
- The plugin contact
public static java.util.Collection<Contact> getAssignedContactsFor(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of contactListplugin
- The plugin contact
public static java.util.Collection<Contact> getNotAssignedContactsFor(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- th id of the contactListplugin
- The plugin contact
public 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 contact
public static java.util.Collection<ContactList> getAssignedListsFor(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the Id of the contactplugin
- The plugin contact
public static java.util.Collection<ContactList> getNotAssignedListsFor(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactplugin
- The plugin Contact
public 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 object
public static int getMaxOrderContact(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin object
public static int getContactListIdByOrder(int nContactListOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContactList
- the id of the contactListnContactOrder
- the number of order of the contactplugin
- The Plugin object
public static int getContactListOrderById(int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- the id of the contactnIdContactList
- the id of the contactListplugin
- The Plugin object
public 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 object
public static void unassignListsForContact(int nIdContact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdContact
- The if of contactplugin
- The Plugin object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |