Class JsonResourceType
- java.lang.Object
-
- org.forgerock.openam.entitlement.rest.wrappers.JsonResourceType
-
public class JsonResourceType extends Object
Wrapper for the conversion of ResourceType to and from JSON. Taking an instance of anResourceTypethis class exposes the necessary parts of that class to the Jacksonorg.codehaus.jackson.map.ObjectMappervia annotations.
-
-
Constructor Summary
Constructors Constructor Description JsonResourceType()JsonResourceType(ResourceType resourceType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Boolean>getActions()StringgetCreatedBy()longgetCreationDate()StringgetDescription()StringgetLastModifiedBy()longgetLastModifiedDate()StringgetName()Set<String>getPatterns()ResourceTypegetResourceType(boolean generateID)StringgetUUID()voidsetActions(Map<String,Boolean> actions)voidsetCreatedBy(String createdBy)voidsetCreationDate(long creationDate)voidsetDescription(String description)voidsetLastModifiedBy(String lastModifiedBy)voidsetLastModifiedDate(long lastModifiedDate)voidsetName(String name)voidsetPatterns(Set<String> patterns)voidsetUUID(String uuid)org.forgerock.json.JsonValuetoJsonValue()Focus of this class.
-
-
-
Constructor Detail
-
JsonResourceType
public JsonResourceType()
-
JsonResourceType
public JsonResourceType(ResourceType resourceType)
-
-
Method Detail
-
getUUID
public String getUUID()
-
setUUID
public void setUUID(String uuid)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getCreatedBy
public String getCreatedBy()
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
getCreationDate
public long getCreationDate()
-
setCreationDate
public void setCreationDate(long creationDate)
-
getLastModifiedBy
public String getLastModifiedBy()
-
setLastModifiedBy
public void setLastModifiedBy(String lastModifiedBy)
-
getLastModifiedDate
public long getLastModifiedDate()
-
setLastModifiedDate
public void setLastModifiedDate(long lastModifiedDate)
-
getResourceType
public ResourceType getResourceType(boolean generateID)
-
toJsonValue
public org.forgerock.json.JsonValue toJsonValue() throws EntitlementExceptionFocus of this class. Calling this function will return a transportableJsonValuerepresenting the contained instantiation ofResourceType.- Returns:
- JsonValue representing the contained ResourceType
- Throws:
EntitlementException- if there were issues writing the value
-
-