org.nakedobjects.runtime.authorization
Interface AuthorizationManager

All Superinterfaces:
ApplicationScopedComponent, Component
All Known Implementing Classes:
AuthorizationManagerAbstract, AuthorizationManagerStandard

public interface AuthorizationManager
extends ApplicationScopedComponent

Authorises the user in the current session view and use members of an object.


Method Summary
 boolean isUsable(AuthenticationSession session, NakedObject target, Identifier identifier)
          Returns true when the use represented by the specified session is authorised to change the field represented by the member identifier.
 boolean isVisible(AuthenticationSession session, NakedObject target, Identifier identifier)
          Returns true when the user represented by the specified session is authorised to view the member of the class/object represented by the member identifier.
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.ApplicationScopedComponent
init, shutdown
 

Method Detail

isVisible

boolean isVisible(AuthenticationSession session,
                  NakedObject target,
                  Identifier identifier)
Returns true when the user represented by the specified session is authorised to view the member of the class/object represented by the member identifier. Normally the view of the specified field, or the display of the action will be suppress if this returns false.


isUsable

boolean isUsable(AuthenticationSession session,
                 NakedObject target,
                 Identifier identifier)
Returns true when the use represented by the specified session is authorised to change the field represented by the member identifier. Normally the specified field will be not appear editable if this returns false.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.