Class JsonResourceType


  • public class JsonResourceType
    extends Object
    Wrapper for the conversion of ResourceType to and from JSON. Taking an instance of an ResourceType this class exposes the necessary parts of that class to the Jackson org.codehaus.jackson.map.ObjectMapper via annotations.
    • 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)
      • getPatterns

        public Set<String> getPatterns()
      • setPatterns

        public void setPatterns​(Set<String> patterns)
      • 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 EntitlementException
        Focus of this class. Calling this function will return a transportable JsonValue representing the contained instantiation of ResourceType.
        Returns:
        JsonValue representing the contained ResourceType
        Throws:
        EntitlementException - if there were issues writing the value