org.benow.security
Interface Secured


public interface Secured

If persistent object implement this interface, the contained abilities for associated owner, users and group will be asserted on object persistence.

Author:
andy

Nested Class Summary
static class Secured.Ability
           
 
Method Summary
 ACL getACL()
           
 Group getGroup()
          gets the group associated with this object
 Secured.Ability[] getGroupAbilities()
           
 User getOwner()
          Owner is the creator of the object, unless the admin otherwise changes.
 java.util.Map<User,Secured.Ability[]> getUserAbilities()
           
 java.util.List<User> getUsers()
          Gets the users associated with this object
 

Method Detail

getACL

ACL getACL()

getOwner

User getOwner()
Owner is the creator of the object, unless the admin otherwise changes. The owner has all abilities

Returns:
owner of this object

getUsers

java.util.List<User> getUsers()
Gets the users associated with this object

Returns:

getUserAbilities

java.util.Map<User,Secured.Ability[]> getUserAbilities()
Returns:
the abilities for each associated user

getGroup

Group getGroup()
gets the group associated with this object

Returns:

getGroupAbilities

Secured.Ability[] getGroupAbilities()
Returns:
the abilities of the associated group