Class ContactAdapter

    • Method Detail

      • getAssociatedParties

        public List<ContactgetAssociatedParties()
        Get the list of AssociatedParties. This is defined as all non-primary Contact, excluding contacts with types the following types considered primary types: Originator, MetadataAuthor and AdministrativePointOfContact.
        Returns:
        list of AssociatedParties or empty list if none found
      • getResourceCreator

        public Contact getResourceCreator()
        Get the ResourceCreator Contact. This is defined as the first primary Contact of type ContactType.ORIGINATOR.
        Returns:
        first preferred ResourceCreator found or null if none were found
      • formatContactName

        public static String formatContactName​(Contact contact)
        Format the name of the contact as "FirstName LastName".
        Parameters:
        contact - contact
        Returns:
        formatted name or "" if the contact is null or empty
      • getAdministrativeContact

        public Contact getAdministrativeContact()
        Get the AdministrativeContact Contact. This is defined as the first primary Contact of type ContactType.ADMINISTRATIVE_POINT_OF_CONTACT.
        Returns:
        first preferred AdministrativeContact found or null if none were found
      • getCreators

        public List<ContactgetCreators()
        Get the list of Contact of type ContactType.ORIGINATOR.
        Returns:
        all creators found or empty list if none were found
      • getContacts

        public List<ContactgetContacts()
        Get the list of Contact of type ContactType.ADMINISTRATIVE_POINT_OF_CONTACT.
        Returns:
        all contacts found or empty list if none were found
      • getMetadataProviders

        public List<ContactgetMetadataProviders()
        Get the list of Contact of type ContactType.METADATA_AUTHOR.
        Returns:
        all metadataProviders found or empty list if none were found