Class UserData


  • public class UserData
    extends Object
    • Field Detail

      • givenName

        protected String givenName
      • familyName

        protected String familyName
      • email

        protected String email
      • organization

        protected String organization
    • Constructor Detail

      • UserData

        public UserData()
    • Method Detail

      • getGivenName

        public String getGivenName()
      • setGivenName

        public void setGivenName​(String givenName)
      • getFamilyName

        public String getFamilyName()
      • setFamilyName

        public void setFamilyName​(String familyName)
      • getEMail

        public String getEMail()
      • setEMail

        public void setEMail​(String email)
      • getOrganization

        public String getOrganization()
      • setOrganization

        public void setOrganization​(String organization)
      • hasInformation

        public boolean hasInformation()
      • getVCard

        public de.unirostock.sems.cbarchive.meta.omex.VCard getVCard()
      • isContained

        public boolean isContained​(List<de.unirostock.sems.cbarchive.meta.omex.VCard> list)
        Checks if the current user is contained in the given list.
        Parameters:
        list - the list
        Returns:
        true, if this vcard exists in list
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • fromJson

        public static UserData fromJson​(String json)
                                 throws com.fasterxml.jackson.core.JsonParseException,
                                        com.fasterxml.jackson.databind.JsonMappingException,
                                        IOException
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        com.fasterxml.jackson.databind.JsonMappingException
        IOException