Class ReferralWrapper
- java.lang.Object
-
- org.forgerock.openam.entitlement.rest.wrappers.ReferralWrapper
-
- All Implemented Interfaces:
Comparable<ReferralWrapper>
public class ReferralWrapper extends Object implements Comparable<ReferralWrapper>
Wrapper for the jsonification ofReferralPrivilegeobjects, for interaction via the REST endpointorg.forgerock.openam.forgerockrest.entitlements.ReferralsResource.
-
-
Constructor Summary
Constructors Constructor Description ReferralWrapper()Necessary default constructor for JsonReferralWrapper(ReferralPrivilege referralPrivilege)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ReferralWrapper that)StringgetCreatedBy()longgetCreationDate()StringgetLastModifiedBy()longgetLastModifiedDate()StringgetName()Set<String>getRealms()ReferralPrivilegegetReferral()Map<String,Set<String>>getResources()voidsetCreatedBy(String createdBy)voidsetCreationDate(long creationDate)voidsetLastModifiedBy(String lastModifiedBy)voidsetLastModifiedDate(long lastModifiedDate)voidsetName(String name)voidsetRealms(Set<String> realms)voidsetResources(Map<String,Set<String>> resourceMap)org.forgerock.json.JsonValuetoJsonValue()Focus of this class.
-
-
-
Constructor Detail
-
ReferralWrapper
public ReferralWrapper(ReferralPrivilege referralPrivilege)
-
ReferralWrapper
public ReferralWrapper()
Necessary default constructor for Json
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
setResources
public void setResources(Map<String,Set<String>> resourceMap) throws EntitlementException
- Throws:
EntitlementException
-
setRealms
public void setRealms(Set<String> realms) throws EntitlementException
- Throws:
EntitlementException
-
getReferral
public ReferralPrivilege getReferral()
-
toJsonValue
public org.forgerock.json.JsonValue toJsonValue() throws IOExceptionFocus of this class. Calling this function will return a transportableJsonValuerepresenting the contained instantiation ofReferralPrivilege.- Returns:
- JsonValue representing the contained ReferralPrivilege
- Throws:
IOException- if there were issues writing the value out.
-
compareTo
public int compareTo(ReferralWrapper that)
- Specified by:
compareToin interfaceComparable<ReferralWrapper>
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
getCreatedBy
public String getCreatedBy()
-
setLastModifiedBy
public void setLastModifiedBy(String lastModifiedBy)
-
getLastModifiedBy
public String getLastModifiedBy()
-
setCreationDate
public void setCreationDate(long creationDate)
-
getCreationDate
public long getCreationDate()
-
setLastModifiedDate
public void setLastModifiedDate(long lastModifiedDate)
-
getLastModifiedDate
public long getLastModifiedDate()
-
-