Class ContactList
java.lang.Object
fr.paris.lutece.plugins.contact.business.ContactList
- All Implemented Interfaces:
fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
public class ContactList
extends Object
implements fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
This class represents business object Contact
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the orderintgets the number of contacts assigned to listReturns the description of this contact list.intgetId()Returns the identifier of this contactList.getLabel()Returns the label of this list.getRole()Gets the contactList rolebooleangetTos()Returns the workgroupstatic voidinit()Initialize the ContactListvoidsetContactListOrder(int nContactListOrder) Sets the workgroupvoidsetContactsNumber(int nContactsNumber) sets to the specified integer the number of contacts assigned to listvoidsetDescription(String strContactListDescription) Sets the name of the contact to the specified string.voidsetId(int nId) Sets the identifier of the contactList to the specified integer.voidSets the label of the contact List to the specified string.voidallows the contact List to be saw by a rolevoidsetTos(boolean bActiveTos) voidsetTosMessage(String strTosMessage) voidsetWorkgroup(String strAdminWorkgroup) Sets the workgroup
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
ROLE_NONE
- See Also:
-
-
Constructor Details
-
ContactList
public ContactList()
-
-
Method Details
-
init
public static void init()Initialize the ContactList -
getId
public int getId()Returns the identifier of this contactList.- Returns:
- the contact identifier
-
setId
public void setId(int nId) Sets the identifier of the contactList to the specified integer.- Parameters:
nId- the new identifier
-
getLabel
Returns the label of this list.- Returns:
- the contact name
-
setLabel
Sets the label of the contact List to the specified string.- Parameters:
strContactListLabel- the new name
-
getDescription
Returns the description of this contact list.- Returns:
- the contact name
-
setDescription
Sets the name of the contact to the specified string.- Parameters:
strContactListDescription- the description of the contact list
-
getContactsNumber
public int getContactsNumber()gets the number of contacts assigned to list- Returns:
- returns the number of contacts assigned to this list
-
setContactsNumber
public void setContactsNumber(int nContactsNumber) sets to the specified integer the number of contacts assigned to list- Parameters:
nContactsNumber- the number of contacts to set
-
getWorkgroup
Returns the workgroup- Specified by:
getWorkgroupin interfacefr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource- Returns:
- The workgroup
-
setWorkgroup
Sets the workgroup- Parameters:
strAdminWorkgroup- The workgroup
-
getRole
Gets the contactList role- Returns:
- contactList's role as a String
- Since:
- v1.1
-
setRole
allows the contact List to be saw by a role- Parameters:
strRole- The role that can see the contact list
-
getContactListOrder
public int getContactListOrder()Returns the order- Returns:
- The order
-
setContactListOrder
public void setContactListOrder(int nContactListOrder) Sets the workgroup- Parameters:
nContactListOrder- the contact list
-
getTos
public boolean getTos() -
setTos
public void setTos(boolean bActiveTos) -
getTosMessage
-
setTosMessage
-