|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpaceGroupPermissionDao
Method Summary | |
---|---|
SpaceGroupPermission |
getById(long id)
|
java.util.List |
getPermissionsForSpaceGroup(SpaceGroup spaceGroup)
|
java.util.List<SpaceGroupPermission> |
getPermissionsForUser(java.lang.String username)
Get space group permissions for the user. |
java.util.List<java.lang.String> |
getUsersWithPermission(SpaceGroup spaceGroup,
java.lang.String type)
Returns a list of usernames with permissions of a certain type to a SpaceGroup |
boolean |
hasPermission(SpaceGroupPermission permission)
Determines whether permission exists in the data store |
void |
removePermission(SpaceGroupPermission spaceGroupPermission)
|
void |
removePermissionsForGroup(java.lang.String group)
|
void |
removePermissionsForSpaceGroup(SpaceGroup spaceGroup)
|
void |
removePermissionsForUser(java.lang.String userName)
|
void |
saveOrUpdatePermission(SpaceGroupPermission perm)
Saves or updates the specified perm. |
Method Detail |
---|
SpaceGroupPermission getById(long id)
java.util.List<SpaceGroupPermission> getPermissionsForUser(java.lang.String username)
java.lang.IllegalArgumentException
- if username is nullvoid removePermission(SpaceGroupPermission spaceGroupPermission)
void saveOrUpdatePermission(SpaceGroupPermission perm)
boolean hasPermission(SpaceGroupPermission permission)
permission
- the SpacePermission to look up
java.util.List getPermissionsForSpaceGroup(SpaceGroup spaceGroup)
void removePermissionsForUser(java.lang.String userName)
void removePermissionsForGroup(java.lang.String group)
void removePermissionsForSpaceGroup(SpaceGroup spaceGroup)
java.util.List<java.lang.String> getUsersWithPermission(SpaceGroup spaceGroup, java.lang.String type)
SpaceGroup
spaceGroup
- The SpaceGroup
against which we want to check the permissionstype
- The type of permission we want to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |