|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.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
.
Field Summary | |
---|---|
(package private) int |
permission
|
(package private) int |
projectId
|
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 |
Field Detail |
---|
int projectId
int permission
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>
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |