edu.internet2.middleware.grouper.grouperUi.beans.api
Class GuiSubject

java.lang.Object
  extended by edu.internet2.middleware.grouper.grouperUi.beans.api.GuiSubject
All Implemented Interfaces:
Serializable

public class GuiSubject
extends Object
implements Serializable

subject for gui has all attributes etc, and getter to be accessed from screen

See Also:
Serialized Form

Constructor Summary
GuiSubject(Subject subject1)
          construct with subject
 
Method Summary
static String attributeValue(Subject subject, String attrName)
           
 Map<String,String> getAttributes()
          Gets a map attribute names and value.
 String getScreenLabel()
          get screen label
 Subject getSubject()
          subject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiSubject

public GuiSubject(Subject subject1)
construct with subject

Parameters:
subject1 -
Method Detail

getScreenLabel

public String getScreenLabel()
get screen label

Returns:
screen label

getSubject

public Subject getSubject()
subject

Returns:
the subject

getAttributes

public Map<String,String> getAttributes()
Gets a map attribute names and value. The map's key contains the attribute name and the map's value contains a Set of attribute value(s). Note, this only does single valued attributes

Returns:
the map of attributes

attributeValue

public static String attributeValue(Subject subject,
                                    String attrName)
Parameters:
subject -
attrName -
Returns:
the value