Class AbstractEntryTypeTelephoneNumber

  • All Implemented Interfaces:
    IEntryTypeService

    public abstract class AbstractEntryTypeTelephoneNumber
    extends EntryTypeService
    Abstract entry type for telephone number
    • Constructor Detail

      • AbstractEntryTypeTelephoneNumber

        public AbstractEntryTypeTelephoneNumber()
    • Method Detail

      • getResponseData

        public GenericAttributeError getResponseData​(Entry entry,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     List<Response> listResponse,
                                                     Locale locale)
        Description copied from class: EntryTypeService
        Generate the list of responses associated with the given entry from the request, and saved it into the Entry object.
        Specified by:
        getResponseData in interface IEntryTypeService
        Overrides:
        getResponseData in class EntryTypeService
        Parameters:
        entry - The entry
        request - HttpRequest
        listResponse - the list of response associate to the entry. Newly created response will be inserted in this list.
        locale - the locale
        Returns:
        a GenericAttributeError object if there is an error in the response
      • getResponseValueForExport

        public String getResponseValueForExport​(Entry entry,
                                                javax.servlet.http.HttpServletRequest request,
                                                Response response,
                                                Locale locale)
        Get the response value associate to the entry to export in the file export

        Export the normalized value.

        Specified by:
        getResponseValueForExport in interface IEntryTypeService
        Overrides:
        getResponseValueForExport in class EntryTypeService
        Parameters:
        entry - The entry
        request - the request
        response - the response associate to the entry
        locale - the locale
        Returns:
        the response value associate to the entry to export in the file export
      • getResponseValueForRecap

        public String getResponseValueForRecap​(Entry entry,
                                               javax.servlet.http.HttpServletRequest request,
                                               Response response,
                                               Locale locale)
        Get the response value associate to the entry to write in the recap

        If the phone number is in the default region, display in this region format. If not, display in international format.

        Specified by:
        getResponseValueForRecap in interface IEntryTypeService
        Overrides:
        getResponseValueForRecap in class EntryTypeService
        Parameters:
        entry - The entry
        request - the request
        response - the response associate to the entry
        locale - the locale
        Returns:
        the response value associate to the entry to write in the recap
      • getSupportedRegionCodes

        public List<String> getSupportedRegionCodes()
        Supported region codes for selection in admin interface
        Returns:
        the support region codes set
      • getDefaultDefaultRegion

        public String getDefaultDefaultRegion()
        Gets the default default region
        Returns:
        the default default region