org.jasig.portal.layout.dlm.remoting
Class JsonEntityBean

java.lang.Object
  extended by org.jasig.portal.layout.dlm.remoting.JsonEntityBean
All Implemented Interfaces:
Serializable

public class JsonEntityBean
extends Object
implements Serializable

Entity bean for JSON output. Used for categories, groups, and people.

Author:
Drew Mazurek
See Also:
Serialized Form

Field Summary
static String ENTITY_CATEGORY
           
static String ENTITY_CHANNEL
           
static String ENTITY_GROUP
           
static String ENTITY_PERSON
           
 
Constructor Summary
JsonEntityBean()
           
JsonEntityBean(ChannelCategory category)
           
JsonEntityBean(IEntityGroup entityGroup, String entityType)
           
JsonEntityBean(IGroupMember groupMember, String entityType)
           
 
Method Summary
 void addChild(Object child)
          Convenience method to add a child to this object's list of children.
 boolean equals(Object obj)
           
 List getChildren()
           
 String getCreatorId()
           
 String getDescription()
           
 String getEntityType()
           
 String getId()
           
 String getName()
           
 int hashCode()
           
 boolean isChildrenInitialized()
           
 void setChildren(List children)
           
 void setChildrenInitialized(boolean childrenInitialized)
           
 void setCreatorId(String creatorId)
           
 void setDescription(String description)
           
 void setEntityType(String entityType)
           
 void setId(String id)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTITY_CATEGORY

public static final String ENTITY_CATEGORY
See Also:
Constant Field Values

ENTITY_CHANNEL

public static final String ENTITY_CHANNEL
See Also:
Constant Field Values

ENTITY_GROUP

public static final String ENTITY_GROUP
See Also:
Constant Field Values

ENTITY_PERSON

public static final String ENTITY_PERSON
See Also:
Constant Field Values
Constructor Detail

JsonEntityBean

public JsonEntityBean()

JsonEntityBean

public JsonEntityBean(ChannelCategory category)

JsonEntityBean

public JsonEntityBean(IGroupMember groupMember,
                      String entityType)

JsonEntityBean

public JsonEntityBean(IEntityGroup entityGroup,
                      String entityType)
Method Detail

getEntityType

public String getEntityType()

setEntityType

public void setEntityType(String entityType)

getId

public String getId()

setId

public void setId(String id)

getName

public String getName()

setName

public void setName(String name)

getCreatorId

public String getCreatorId()

setCreatorId

public void setCreatorId(String creatorId)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getChildren

public List getChildren()

setChildren

public void setChildren(List children)

addChild

public void addChild(Object child)

Convenience method to add a child to this object's list of children.

Parameters:
child - Object to add

isChildrenInitialized

public boolean isChildrenInitialized()

setChildrenInitialized

public void setChildrenInitialized(boolean childrenInitialized)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Jasig. All Rights Reserved.