Class Telecoms

java.lang.Object
org.projecthusky.common.model.Telecoms

public class Telecoms extends Object
Class Telecom represents a list of telecommunication endpoints.
  • Field Details

    • TELECOMS_EMAIL_PREFIX

      public static final String TELECOMS_EMAIL_PREFIX
      The Constant TELECOMS_EMAIL_PREFIX.
      See Also:
    • TELECOMS_FAX_PREFIX

      public static final String TELECOMS_FAX_PREFIX
      The Constant TELECOMS_FAX_PREFIX.
      See Also:
    • TELECOMS_PHONE_PREFIX

      public static final String TELECOMS_PHONE_PREFIX
      The Constant TELECOMS_PHONE_PREFIX.
      See Also:
    • TELECOMS_WEBSITE_PREFIX

      public static final String TELECOMS_WEBSITE_PREFIX
      The Constant TELECOMS_WEBSITE_PREFIX. Note: omitting the : here in order to support http and https
      See Also:
  • Constructor Details

    • Telecoms

      public Telecoms()
      Instantiates a new telecoms object.
    • Telecoms

      public Telecoms(List<TEL> telecoms)
      Instantiates a new telecoms object.
      Parameters:
      telecoms - telecoms
  • Method Details

    • add

      public void add(String type, String endpointIdentifier, TelecomAddressUse usage)
      Adds a new entry to the telecoms object. These shall have the following format: : "+41.32.234.66.77"
      Parameters:
      type - e.g. "tel"
      endpointIdentifier - e.g. Phone number "+41.32.234.66.77"
      usage - use of this endpoint
    • createTel

      public TEL createTel(String telNr, TelecomAddressUse usage)
    • addEMail

      public void addEMail(String eMail, TelecomAddressUse usage)
      Add a new email adress to the telecoms list
      Parameters:
      eMail - eMail address
      usage - use of this endpoint
    • createEMail

      public TEL createEMail(String eMail, TelecomAddressUse usage)
    • addFax

      public void addFax(String fax, TelecomAddressUse usage)
      Add a new fax number to the telecoms list. This shall have the following format: "+41.32.234.66.77"
      Parameters:
      fax - fax
      usage - use of this endpoint
    • addPhone

      public void addPhone(String phoneNr, TelecomAddressUse usage)
      Adds a new fax number to the telecoms list. This shall have the following format: "+41.32.234.66.77"
      Parameters:
      phoneNr - Phone number (only international format)
      usage - use of this endpoint
    • addWebsite

      public void addWebsite(String url, TelecomAddressUse usage)
      Add a new website to the telecoms list.
      Parameters:
      url - website e.g. "http://www.ehealth-connector.org")
      usage - use of this endpoint
    • getEMails

      public Map<String,TelecomAddressUse> getEMails()
      Gets the e mails.
      Returns:
      ArrayList the e mails as am ArrayList of Strings and AddressUse
    • getFaxes

      public Map<String,TelecomAddressUse> getFaxes()
      Gets the faxes.
      Returns:
      the faxes
    • getMdhtTelecoms

      public List<TEL> getMdhtTelecoms()
      Gets the telecoms.
      Returns:
      ArrayList the telecoms
    • getPhones

      public Map<String,TelecomAddressUse> getPhones()
      Gets the phone numbers
      Returns:
      the phones
    • getTelecoms

      public Map<String,TelecomAddressUse> getTelecoms()
      Gets the telecoms as HashMap
      Returns:
      the telecoms
    • getWebsites

      public Map<String,TelecomAddressUse> getWebsites()
      Gets the Websites
      Returns:
      the websides