org.nakedobjects.security
Class User

java.lang.Object
  extended byjava.util.Observable
      extended byorg.nakedobjects.object.AbstractNakedObject
          extended byorg.nakedobjects.security.User
All Implemented Interfaces:
java.io.Externalizable, Naked, NakedObject, java.io.Serializable

public class User
extends AbstractNakedObject

See Also:
Serialized Form

Constructor Summary
User()
           
 
Method Summary
static User getCurrent()
           
 TextString getName()
           
 InternalCollection getRoles()
           
static boolean isAUserLoggedOn()
           
static void logoff()
           
static void logon(User user)
           
 Permission permission(Role role)
           
 Title title()
          every Naked Object is required to provide a Title by which it is identified to the end user.
 
Methods inherited from class org.nakedobjects.object.AbstractNakedObject
about, aboutExplorationActionClass, aboutExplorationActionClone, aboutExplorationActionMakePersistent, canClone, contextualTitle, copyObject, created, createInstance, createInstance, createTransientInstance, deleted, destroy, equals, explorationActionClass, explorationActionClone, explorationActionMakePersistent, getClassHelpText, getClassName, getCollectiveName, getFullClassName, getIconName, getIdString, getNakedClass, getObjectHelpText, getObjectStore, getOid, hashCode, iconImage, init, isEmpty, isFinder, isLookupElement, isPersistent, isResolved, isSameAs, isValid, makeFinder, makePersistent, objectChanged, readExternal, resolve, resolve, setChangedAndNotifyObservers, setOid, setResolved, summary, toString, writeExternal
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.object.NakedObject
addObserver, countObservers, deleteObserver, hasChanged
 

Constructor Detail

User

public User()
Method Detail

getCurrent

public static User getCurrent()

logon

public static void logon(User user)

logoff

public static void logoff()

getName

public final TextString getName()

getRoles

public final InternalCollection getRoles()

permission

public Permission permission(Role role)

title

public Title title()
Description copied from class: AbstractNakedObject
every Naked Object is required to provide a Title by which it is identified to the end user.

Unless overridden, the String representation of this Title object is available through contextualTitle().

Specified by:
title in interface Naked
Overrides:
title in class AbstractNakedObject
See Also:
AbstractNakedObject.contextualTitle()

isAUserLoggedOn

public static boolean isAUserLoggedOn()