|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.data.keyring.ProjectPermission
public abstract class ProjectPermission
Class for holding a project id and a permission value.
It implements the Comparable interface to
be able to sort a List by the projectId value.
Note! The compareTo method of this class
is not consistent with the equals method of
any of the subclasses. Ie. The compareTo
method may return 0, while the equals
method returns FALSE. This is because we need to compare
subclasses to each other while sorting a List.
| Constructor Summary | |
|---|---|
ProjectPermission()
Create a new ProjectPermission object. |
|
| Method Summary | |
|---|---|
int |
compareTo(ProjectPermission other)
Compare the projectId of this object to the projectId of another ProjectPermission object. |
int |
getPermission()
Get the permission. |
int |
getProjectId()
Get the id of the project. |
void |
setPermission(int permission)
Set the permission. |
void |
setProjectId(int projectId)
Set the id of the project. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectPermission()
ProjectPermission object.
| Method Detail |
|---|
public final int getProjectId()
public final void setProjectId(int projectId)
public final int getPermission()
public final void setPermission(int permission)
public final int compareTo(ProjectPermission other)
ProjectPermission object.
compareTo in interface Comparable<ProjectPermission>
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||