org.nakedobjects.runtime.authorization.standard
Class AuthorizationManagerStandard

java.lang.Object
  extended by org.nakedobjects.runtime.authorization.AuthorizationManagerAbstract
      extended by org.nakedobjects.runtime.authorization.standard.AuthorizationManagerStandard
All Implemented Interfaces:
ApplicationScopedComponent, Component, AuthorizationManager

public class AuthorizationManagerStandard
extends AuthorizationManagerAbstract


Constructor Summary
AuthorizationManagerStandard(NakedObjectConfiguration configuration)
           
 
Method Summary
 void init()
           
 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.
protected  void setAuthorizor(Authorizor authorisor)
           
 void shutdown()
           
 
Methods inherited from class org.nakedobjects.runtime.authorization.AuthorizationManagerAbstract
getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationManagerStandard

public AuthorizationManagerStandard(NakedObjectConfiguration configuration)
Method Detail

init

public void init()

shutdown

public void shutdown()

isUsable

public boolean isUsable(AuthenticationSession session,
                        NakedObject target,
                        Identifier identifier)
Description copied from interface: AuthorizationManager
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.


isVisible

public boolean isVisible(AuthenticationSession session,
                         NakedObject target,
                         Identifier identifier)
Description copied from interface: AuthorizationManager
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.


setAuthorizor

protected void setAuthorizor(Authorizor authorisor)


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