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 java.lang.Object implements fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResourceThis class represents business object Contact
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESOURCE_TYPEstatic java.lang.StringROLE_NONE
-
Constructor Summary
Constructors Constructor Description ContactList()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetContactListOrder()Returns the orderintgetContactsNumber()gets the number of contacts assigned to listjava.lang.StringgetDescription()Returns the description of this contact list.intgetId()Returns the identifier of this contactList.java.lang.StringgetLabel()Returns the label of this list.java.lang.StringgetRole()Gets the contactList rolebooleangetTos()java.lang.StringgetTosMessage()java.lang.StringgetWorkgroup()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(java.lang.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.voidsetLabel(java.lang.String strContactListLabel)Sets the label of the contact List to the specified string.voidsetRole(java.lang.String strRole)allows the contact List to be saw by a rolevoidsetTos(boolean bActiveTos)voidsetTosMessage(java.lang.String strTosMessage)voidsetWorkgroup(java.lang.String strAdminWorkgroup)Sets the workgroup
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final java.lang.String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
ROLE_NONE
public static final java.lang.String ROLE_NONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public java.lang.String getLabel()
Returns the label of this list.- Returns:
- the contact name
-
setLabel
public void setLabel(java.lang.String strContactListLabel)
Sets the label of the contact List to the specified string.- Parameters:
strContactListLabel- the new name
-
getDescription
public java.lang.String getDescription()
Returns the description of this contact list.- Returns:
- the contact name
-
setDescription
public void setDescription(java.lang.String strContactListDescription)
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
public java.lang.String getWorkgroup()
Returns the workgroup- Specified by:
getWorkgroupin interfacefr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource- Returns:
- The workgroup
-
setWorkgroup
public void setWorkgroup(java.lang.String strAdminWorkgroup)
Sets the workgroup- Parameters:
strAdminWorkgroup- The workgroup
-
getRole
public java.lang.String getRole()
Gets the contactList role- Returns:
- contactList's role as a String
- Since:
- v1.1
-
setRole
public void setRole(java.lang.String strRole)
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
public java.lang.String getTosMessage()
-
setTosMessage
public void setTosMessage(java.lang.String strTosMessage)
-
-