public interface AccessControlled
BasicItem which is the root superclass of all
items provides an implementation that checks the role keys for
access permission. Subclasses may override that implementation to
also check for other things. For example, the
class checks the item's owner against the logged in user.
|Modifier and Type||Method and Description|
Check if the logged in user has the desired permission on the item, otherwise throw an exception.
Check if the logged in user has the desired permission on the item.
boolean hasPermission(Permission permission)