com.ibm.ram.internal.jaxb
Class Authorization

java.lang.Object
  extended by com.ibm.ram.internal.jaxb.Authorization
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<Authorization>
Direct Known Subclasses:
Reviewer

public class Authorization
extends java.lang.Object
implements java.lang.Cloneable, java.lang.Comparable<Authorization>

Set of users or user groups who have set roles with in the given state.

Java class for Authorization complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Authorization">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="user" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" minOccurs="0"/>
         <element name="userGroup" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" minOccurs="0"/>
       </sequence>
       <attribute name="inherited" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.lang.Boolean inherited
           
protected  Link<User> user
           
protected  Link<UserGroup> userGroup
           
 
Constructor Summary
Authorization()
           
 
Method Summary
 Authorization clone()
           
 int compareTo(Authorization o)
           
 boolean equals(java.lang.Object obj)
           
 Link<User> getUser()
          Gets the value of the user property.
 Link<UserGroup> getUserGroup()
          Gets the value of the userGroup property.
 int hashCode()
           
 boolean isInherited()
           
 boolean isSetUser()
           
 boolean isSetUserGroup()
           
 boolean sameUserOrGroup(Authorization o)
          Is this authorization for the same user or usergroup as the parameter.
 void setInherited(boolean value)
           
 void setUser(Link<User> value)
          Sets the value of the user property.
 void setUserGroup(Link<UserGroup> value)
          Sets the value of the userGroup property.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

user

protected Link<User> user

userGroup

protected Link<UserGroup> userGroup

inherited

protected java.lang.Boolean inherited
Constructor Detail

Authorization

public Authorization()
Method Detail

getUser

public Link<User> getUser()
Gets the value of the user property.

Returns:
possible object is Link

setUser

public void setUser(Link<User> value)
Sets the value of the user property.

Parameters:
value - allowed object is Link

isSetUser

public boolean isSetUser()

getUserGroup

public Link<UserGroup> getUserGroup()
Gets the value of the userGroup property.

Returns:
possible object is Link

setUserGroup

public void setUserGroup(Link<UserGroup> value)
Sets the value of the userGroup property.

Parameters:
value - allowed object is Link

isSetUserGroup

public boolean isSetUserGroup()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isInherited

public boolean isInherited()
Returns:
Returns the inherited.
Since:
7.5.1

setInherited

public void setInherited(boolean value)
Parameters:
inherited - The inherited to set.
Since:
7.5.1

clone

public Authorization clone()
                    throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException
Since:
7.5.1

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(Authorization o)
Specified by:
compareTo in interface java.lang.Comparable<Authorization>

sameUserOrGroup

public boolean sameUserOrGroup(Authorization o)
Is this authorization for the same user or usergroup as the parameter.

Parameters:
o - the other Authorization.
Returns:
true if same user or usergroup, false if not the same.
Since:
7.5.1