Last update: 2011-06-23

org.proteios.core.data.keyring
Class UserProjects

java.lang.Object
  extended by org.proteios.core.data.keyring.ProjectPermission
      extended by org.proteios.core.data.keyring.UserProjects
All Implemented Interfaces:
Serializable, Comparable<ProjectPermission>

public final class UserProjects
extends ProjectPermission
implements Serializable

Class for mapping the UserProjects table.

Version:
2.0
Author:
Nicklas
See Also:
Serialized Form
Last modified
$Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $

Constructor Summary
UserProjects()
          Create a new UserProjects object.
 
Method Summary
 boolean equals(Object o)
          Check if this object is equal to another UserProjects object.
 int getUserId()
          Get the id of the user.
 int hashCode()
          Calculate the hash code for the object.
 void setUserId(int userId)
          Set the id of the user.
 
Methods inherited from class org.proteios.core.data.keyring.ProjectPermission
compareTo, getPermission, getProjectId, setPermission, setProjectId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProjects

public UserProjects()
Create a new UserProjects object.

Method Detail

getUserId

public int getUserId()
Get the id of the user.


setUserId

public void setUserId(int userId)
Set the id of the user.


equals

public boolean equals(Object o)
Check if this object is equal to another UserProjects object. They are considered to be the same if the user id and the project id are the same. The permission may be different.

Overrides:
equals in class Object

hashCode

public int hashCode()
Calculate the hash code for the object.

Overrides:
hashCode in class Object

Last update: 2011-06-23