|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.itracker.model.AbstractEntity
org.itracker.model.Permission
public class Permission
A user permission on a project.
The permission type tells what kind of action the user is allowed perform.
| Nested Class Summary | |
|---|---|
static class |
Permission.PermissionPropertiesComparator
|
| Nested classes/interfaces inherited from class org.itracker.model.AbstractEntity |
|---|
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator |
| Field Summary | |
|---|---|
static Permission.PermissionPropertiesComparator |
PERMISSION_PROPERTIES_COMPARATOR
Comparator for comparing the main properties type, user, project |
| Fields inherited from class org.itracker.model.AbstractEntity |
|---|
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR |
| Constructor Summary | |
|---|---|
Permission()
Default constructor (required by Hibernate). |
|
Permission(Integer type,
User user)
Grants permissions on all projects to the given user. |
|
Permission(Integer type,
User user,
Project project)
Grants permissions on all projects to the given user. |
|
| Method Summary | |
|---|---|
Integer |
getPermissionType()
|
Project |
getProject()
|
User |
getUser()
|
void |
setPermissionType(Integer type)
|
void |
setProject(Project project)
May be null to indicate a permission on all projects. |
void |
setUser(User user)
|
String |
toString()
|
| Methods inherited from class org.itracker.model.AbstractEntity |
|---|
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Permission.PermissionPropertiesComparator PERMISSION_PROPERTIES_COMPARATOR
| Constructor Detail |
|---|
public Permission()
PENDING: should be private so that it can only be used by
Hibernate, to ensure that the fields which form an instance's identity
are always initialized/never null.
public Permission(Integer type,
User user)
type - permission typeuser - grantee
public Permission(Integer type,
User user,
Project project)
type - permission typeuser - granteeproject - on which permission is granted, or null for all
projects| Method Detail |
|---|
public Integer getPermissionType()
public void setPermissionType(Integer type)
public User getUser()
public void setUser(User user)
public Project getProject()
public void setProject(Project project)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||