|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intland.codebeamer.persistence.dto.GroupRolePermissionDto
public class GroupRolePermissionDto
TODO
Nested Class Summary | |
---|---|
static class |
GroupRolePermissionDto.GroupComparator
A special Comparator to compare/sort GroupRolePermissionDto by group |
static class |
GroupRolePermissionDto.PermissionComparator
A special Comparator to compare/sort GroupRolePermissionDto by permission |
static class |
GroupRolePermissionDto.RoleComparator
A special Comparator to compare/sort GroupRolePermissionDto by role |
Constructor Summary | |
---|---|
GroupRolePermissionDto()
|
|
GroupRolePermissionDto(GroupDto group,
RoleDto role,
PermissionDto permission,
boolean granted)
|
|
GroupRolePermissionDto(GroupRolePermissionDto orig)
|
Method Summary | |
---|---|
static int |
compareByGroup(GroupRolePermissionDto grp1,
GroupRolePermissionDto grp2)
Compare two GroupRolePermissionDtos by group. |
static int |
compareByPermission(GroupRolePermissionDto grp1,
GroupRolePermissionDto grp2)
Compare two GroupRolePermissionDtos by permission description. |
static int |
compareByRole(GroupRolePermissionDto grp1,
GroupRolePermissionDto grp2)
Compare two GroupRolePermissionDtos by role. |
int |
compareTo(java.lang.Object o)
|
GroupDto |
getGroup()
|
PermissionDto |
getPermission()
|
RoleDto |
getRole()
|
boolean |
isGranted()
Check if the specified group permission is granted or revoked to the specified role |
void |
setGranted(boolean granted)
Set whether the specified group permission is granted or revoked to the specified role |
void |
setGroup(GroupDto group)
|
void |
setPermission(PermissionDto permission)
|
void |
setRole(RoleDto role)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GroupRolePermissionDto()
public GroupRolePermissionDto(GroupDto group, RoleDto role, PermissionDto permission, boolean granted)
public GroupRolePermissionDto(GroupRolePermissionDto orig)
Method Detail |
---|
public GroupDto getGroup()
public void setGroup(GroupDto group)
public RoleDto getRole()
public void setRole(RoleDto role)
public PermissionDto getPermission()
public void setPermission(PermissionDto permission)
public boolean isGranted()
public void setGranted(boolean granted)
granted
- is true to grant the group permission to the role, false to revoke the permissionpublic java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public static int compareByGroup(GroupRolePermissionDto grp1, GroupRolePermissionDto grp2)
grp1
- is the first GroupRolePermissionDto, or nullgrp2
- is the second GroupRolePermissionDto, or null
public static int compareByRole(GroupRolePermissionDto grp1, GroupRolePermissionDto grp2)
grp1
- is the first GroupRolePermissionDto, or nullgrp2
- is the second GroupRolePermissionDto, or null
public static int compareByPermission(GroupRolePermissionDto grp1, GroupRolePermissionDto grp2)
grp1
- is the first GroupRolePermissionDto, or nullgrp2
- is the second GroupRolePermissionDto, or null
|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |