Package cz.metacentrum.perun.core.api
Class Candidate
java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.core.api.Auditable
cz.metacentrum.perun.core.api.User
cz.metacentrum.perun.core.api.Candidate
- All Implemented Interfaces:
HasUuid
,Serializable
,Comparable<PerunBean>
Candidate member of a Virtual Organization or candidate user.
- Author:
- Michal Prochazka michalp@ics.muni.cz, Martin Kuba makub@ics.muni.cz
- See Also:
-
Field Summary
Fields inherited from class cz.metacentrum.perun.core.api.User
firstName, lastName, middleName, titleAfter, titleBefore
-
Constructor Summary
ConstructorDescriptionCandidate
(CandidateSync candidateSync) Candidate
(UserExtSource userExtSource, Map<String, String> attributes) Candidate
(UserExtSource userExtSource, Map<String, String> attributes, List<UserExtSource> additionalUserExtSources) Candidate
(User user, UserExtSource userExtSource) -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
Method converts candidate's user-attributes and user core attributes to JSON object.boolean
int
hashCode()
void
setAdditionalUserExtSources
(List<UserExtSource> additionalUserExtSources) void
setAttributes
(Map<String, String> attributes) void
setExpectedSyncGroupStatus
(String expectedSyncGroupStatus) void
setUserExtSource
(UserExtSource userExtSource) toString()
Methods inherited from class cz.metacentrum.perun.core.api.User
compareTo, getCommonName, getDisplayName, getFirstName, getLastName, getMajorSpecificType, getMiddleName, getTitleAfter, getTitleBefore, getUuid, isServiceUser, isSpecificUser, isSponsoredUser, setFirstName, setLastName, setMiddleName, setServiceUser, setSponsoredUser, setTitleAfter, setTitleBefore, setUuid
Methods inherited from class cz.metacentrum.perun.core.api.Auditable
getCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUid
Methods inherited from class cz.metacentrum.perun.core.api.PerunBean
getBeanName, getId, setId
-
Constructor Details
-
Candidate
public Candidate() -
Candidate
-
Candidate
-
Candidate
public Candidate(UserExtSource userExtSource, Map<String, String> attributes, List<UserExtSource> additionalUserExtSources) -
Candidate
-
-
Method Details
-
convertAttributesToJson
public org.json.JSONObject convertAttributesToJson()Method converts candidate's user-attributes and user core attributes to JSON object.- Returns:
- JSONObject which contains candidate's user-attributes and user-core-attributes in JSON format
-
equals
-
getAdditionalUserExtSources
-
setAdditionalUserExtSources
-
getAttributes
-
setAttributes
-
getExpectedSyncGroupStatus
-
setExpectedSyncGroupStatus
-
getUserExtSource
-
setUserExtSource
-
getUserExtSources
-
hashCode
public int hashCode() -
serializeToString
- Overrides:
serializeToString
in classUser
-
toString
-