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


Field Summary
 
Fields inherited from interface com.objectwave.appArch.security.Prototypes
ALL, EXECUTE, GROUP, NONE, OWNER, READ, WORLD, WRITE
 
Method Summary
 SecurityType getAccessRights(java.lang.Object action, java.lang.Object user)
          Return the access rights granted by this security listener.
 

Method Detail

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.