Class UserData
- java.lang.Object
-
- de.unirostock.sems.cbarchive.web.dataholder.UserData
-
public class UserData extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
email
protected String
familyName
protected String
givenName
protected String
organization
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserData
fromJson(String json)
String
getEMail()
String
getFamilyName()
String
getGivenName()
String
getOrganization()
de.unirostock.sems.cbarchive.meta.omex.VCard
getVCard()
boolean
hasInformation()
boolean
isContained(List<de.unirostock.sems.cbarchive.meta.omex.VCard> list)
Checks if the current user is contained in the given list.void
setEMail(String email)
void
setFamilyName(String familyName)
void
setGivenName(String givenName)
void
setOrganization(String organization)
String
toJson()
-
-
-
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
-
-