public interface PermissionConfig extends Clearable
Modifier and Type | Method and Description |
---|---|
boolean |
addGroupPermission(Group group,
PermissionDefinition control,
UserPermission action)
Adds a new permission, whereas a
PermissionEntry is created from the given arguments. |
boolean |
addUserPermission(UserId userId,
PermissionDefinition control,
UserPermission action)
Adds a new permission, whereas a
PermissionEntry is created from the given arguments. |
void |
checkGroupPermission(Group group,
PermissionControlled accessedObj,
UserPermission action)
Same as
hasGroupPermission(Group, PermissionControlled, UserPermission) but throws an exception
if the permission was not granted. |
void |
checkUserPermission(UserId userId,
PermissionControlled accessedObj,
UserPermission action)
Same as
hasUserPermission(UserId, PermissionControlled, UserPermission) but throws an exception
if the permission was not granted. |
boolean |
hasGroupPermission(Group group,
PermissionControlled accessedObj,
UserPermission action)
Tells whether the given group may perform the given action on the given object.
|
boolean |
hasUserPermission(UserId userId,
PermissionControlled accessedObj,
UserPermission action)
Tells whether the given user may perform the given action on the given object.
|
boolean addUserPermission(UserId userId, PermissionDefinition control, UserPermission action)
PermissionEntry
is created from the given arguments.boolean hasUserPermission(UserId userId, PermissionControlled accessedObj, UserPermission action)
void checkUserPermission(UserId userId, PermissionControlled accessedObj, UserPermission action) throws PermissionException
hasUserPermission(UserId, PermissionControlled, UserPermission)
but throws an exception
if the permission was not granted.PermissionException
boolean addGroupPermission(Group group, PermissionDefinition control, UserPermission action)
PermissionEntry
is created from the given arguments.boolean hasGroupPermission(Group group, PermissionControlled accessedObj, UserPermission action) throws PermissionException
void checkGroupPermission(Group group, PermissionControlled accessedObj, UserPermission action) throws PermissionException
hasGroupPermission(Group, PermissionControlled, UserPermission)
but throws an exception
if the permission was not granted.PermissionException
Copyright © 2013 EsprIT-Systems. All Rights Reserved.