com.objectwave.appArch.security
Interface SecurityListener
- All Superinterfaces:
- Prototypes
- All Known Implementing Classes:
- SecurityController, SecuritySupport
- public interface SecurityListener
- extends Prototypes
By extending the prototypes, any implementer of this class
can directly access constants like OWNER, WRITE, WORLD
Method Summary |
SecurityType |
getAccessRights(java.lang.Object action,
java.lang.Object user)
Return the access rights granted by this security listener. |
getAccessRights
public SecurityType getAccessRights(java.lang.Object action,
java.lang.Object user)
- Return the access rights granted by this security listener.
If there are none, then return SecurityType.NONE;
A security listener is also responsible for setting the access user.
SecurityType.setUser( to one of OWNER, GROUP, WORLD);
A 'user' may have different scopes according to different SecurityListeners.