org.opennms.netmgt.config
Class Owner

java.lang.Object
  extended by org.opennms.netmgt.config.Owner
All Implemented Interfaces:
Comparable<Owner>

public class Owner
extends Object
implements Comparable<Owner>

Owner class.

Version:
$Id: $
Author:
ranger

Constructor Summary
Owner(Owner base, int timeIndex)
          Constructor for Owner.
Owner(String roleid, String supervisor)
          Constructor for Owner.
Owner(String roleid, String user, int schedIndex)
          Constructor for Owner.
Owner(String roleid, String user, int schedIndex, int timeIndex)
          Constructor for Owner.
 
Method Summary
 int compareTo(Owner o)
          compareTo
 boolean equals(Object obj)
          
 String getRoleid()
          getRoleid
 int getSchedIndex()
          getSchedIndex
 int getTimeIndex()
          getTimeIndex
 String getUser()
          getUser
 int hashCode()
          hashCode
 boolean isSupervisor()
          isSupervisor
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Owner

public Owner(String roleid,
             String user,
             int schedIndex)

Constructor for Owner.

Parameters:
roleid - a String object.
user - a String object.
schedIndex - a int.

Owner

public Owner(String roleid,
             String supervisor)

Constructor for Owner.

Parameters:
roleid - a String object.
supervisor - a String object.

Owner

public Owner(Owner base,
             int timeIndex)

Constructor for Owner.

Parameters:
base - a Owner object.
timeIndex - a int.

Owner

public Owner(String roleid,
             String user,
             int schedIndex,
             int timeIndex)

Constructor for Owner.

Parameters:
roleid - a String object.
user - a String object.
schedIndex - a int.
timeIndex - a int.
Method Detail

isSupervisor

public boolean isSupervisor()

isSupervisor

Returns:
a boolean.

getRoleid

public String getRoleid()

getRoleid

Returns:
a String object.

getSchedIndex

public int getSchedIndex()

getSchedIndex

Returns:
a int.

getTimeIndex

public int getTimeIndex()

getTimeIndex

Returns:
a int.

getUser

public String getUser()

getUser

Returns:
a String object.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

hashCode

Overrides:
hashCode in class Object
Returns:
a int.

compareTo

public int compareTo(Owner o)

compareTo

Specified by:
compareTo in interface Comparable<Owner>
Parameters:
o - a Owner object.
Returns:
a int.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.


Copyright © 2011. All Rights Reserved.