Class 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.AdminWorkgroupResource
    This class represents business object Contact
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String RESOURCE_TYPE  
      static java.lang.String ROLE_NONE  
    • Constructor Summary

      Constructors 
      Constructor Description
      ContactList()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getContactListOrder()
      Returns the order
      int getContactsNumber()
      gets the number of contacts assigned to list
      java.lang.String getDescription()
      Returns the description of this contact list.
      int getId()
      Returns the identifier of this contactList.
      java.lang.String getLabel()
      Returns the label of this list.
      java.lang.String getRole()
      Gets the contactList role
      boolean getTos()  
      java.lang.String getTosMessage()  
      java.lang.String getWorkgroup()
      Returns the workgroup
      static void init()
      Initialize the ContactList
      void setContactListOrder​(int nContactListOrder)
      Sets the workgroup
      void setContactsNumber​(int nContactsNumber)
      sets to the specified integer the number of contacts assigned to list
      void setDescription​(java.lang.String strContactListDescription)
      Sets the name of the contact to the specified string.
      void setId​(int nId)
      Sets the identifier of the contactList to the specified integer.
      void setLabel​(java.lang.String strContactListLabel)
      Sets the label of the contact List to the specified string.
      void setRole​(java.lang.String strRole)
      allows the contact List to be saw by a role
      void setTos​(boolean bActiveTos)  
      void setTosMessage​(java.lang.String strTosMessage)  
      void setWorkgroup​(java.lang.String strAdminWorkgroup)
      Sets the workgroup
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContactList

        public ContactList()
    • 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:
        getWorkgroup in interface fr.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)