public interface PermissionDAO extends GenericDao<permissions,Guid>
PermissionsDAO
defines a type for performing CRUD operations on instances of permissions
.Modifier and Type | Method and Description |
---|---|
List<permissions> |
getAllDirectPermissionsForAdElement(Guid id)
Gets all permissions for the specified AD element only, excluding permissions of groups that it is in.
|
List<permissions> |
getAllForAdElement(Guid id)
Gets all permissions for the specified AD element, including permissions of groups that it is in.
|
List<permissions> |
getAllForEntity(Guid id)
Retrieves all permissions for the specified entity.
|
List<permissions> |
getAllForRole(Guid id)
Gets all permissions for the specified role.
|
List<permissions> |
getAllForRoleAndAdElement(Guid roleid,
Guid elementid)
Retrieves all permissions for the specified role and element.
|
List<permissions> |
getAllForRoleAndObject(Guid roleid,
Guid objectid)
Retrieves all permissions for the specified role and object.
|
permissions |
getForRoleAndAdElementAndObject(Guid roleid,
Guid elementid,
Guid objectid)
Retrieves the permission for the specified role, element and object.
|
permissions |
getForRoleAndAdElementAndObjectWithGroupCheck(Guid roleid,
Guid elementid,
Guid objectid)
Retrieves the permission for the specified role, element and object,
considering the user's group's permissions as well.
|
List<permissions> |
getTreeForEntity(Guid id,
VdcObjectType type) |
void |
removeForEntity(Guid id)
Removes all permissions for the given entity.
|
remove, save, update
permissions getForRoleAndAdElementAndObject(Guid roleid, Guid elementid, Guid objectid)
roleid
- the roleelementid
- the elementobjectid
- the objectpermissions getForRoleAndAdElementAndObjectWithGroupCheck(Guid roleid, Guid elementid, Guid objectid)
roleid
- the roleelementid
- the elementobjectid
- the objectList<permissions> getAllForAdElement(Guid id)
id
- the AD elementList<permissions> getAllDirectPermissionsForAdElement(Guid id)
id
- the AD elementList<permissions> getAllForRole(Guid id)
id
- the roleList<permissions> getAllForRoleAndAdElement(Guid roleid, Guid elementid)
roleid
- the roleelementid
- the elementList<permissions> getAllForRoleAndObject(Guid roleid, Guid objectid)
roleid
- the roleobjectid
- the objectList<permissions> getAllForEntity(Guid id)
id
- the entityList<permissions> getTreeForEntity(Guid id, VdcObjectType type)
void removeForEntity(Guid id)
id
- the entityCopyright © 2012. All Rights Reserved.