com.atlassian.confluence.json.jsonator
Class EntityJsonator

java.lang.Object
  extended by com.atlassian.confluence.json.jsonator.EntityJsonator
All Implemented Interfaces:
Jsonator<com.atlassian.user.Entity>

public class EntityJsonator
extends java.lang.Object
implements Jsonator<com.atlassian.user.Entity>

Converts a User or Group into a JSON object prior to serialization.


Constructor Summary
EntityJsonator(UserAccessor userAccessor)
           
 
Method Summary
 Json convert(com.atlassian.user.Entity entity)
          Creates a Json representation of a given object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityJsonator

public EntityJsonator(UserAccessor userAccessor)
Method Detail

convert

public Json convert(com.atlassian.user.Entity entity)
Description copied from interface: Jsonator
Creates a Json representation of a given object

Specified by:
convert in interface Jsonator<com.atlassian.user.Entity>
Parameters:
entity - the object to be serialized
Returns:
Json JSON representation of the given object


Copyright © 2003-2014 Atlassian. All Rights Reserved.