org.nakedobjects.runtime.userprofile
Class UserProfileLoaderDefault

java.lang.Object
  extended by org.nakedobjects.runtime.userprofile.UserProfileLoaderDefault
All Implemented Interfaces:
ApplicationScopedComponent, Component, DebugInfo, UserProfileLoader

public class UserProfileLoaderDefault
extends java.lang.Object
implements UserProfileLoader, DebugInfo

Acts like a bridge, loading the profile from the underlying store.


Nested Class Summary
static class UserProfileLoaderDefault.Mode
           
 
Constructor Summary
UserProfileLoaderDefault(UserProfileStore store)
           
UserProfileLoaderDefault(UserProfileStore store, UserProfileLoaderDefault.Mode mode)
          for testing purposes, explicitly specify the Mode.
 
Method Summary
 void debugData(DebugString debug)
           
 java.lang.String debugTitle()
           
 UserProfile getProfile()
          Deprecated. 
 UserProfile getProfile(AuthenticationSession session)
           
 java.util.List<java.lang.Object> getServices()
           
 void init()
          Does nothing.
 boolean isFixturesInstalled()
           
 void saveAsDefault(UserProfile userProfile)
           
 void saveForUser(java.lang.String userName, UserProfile userProfile)
           
 void saveSession(java.util.List<NakedObject> objects)
           
 void setServices(java.util.List<java.lang.Object> serviceList)
           
 void shutdown()
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProfileLoaderDefault

public UserProfileLoaderDefault(UserProfileStore store)

UserProfileLoaderDefault

public UserProfileLoaderDefault(UserProfileStore store,
                                UserProfileLoaderDefault.Mode mode)
for testing purposes, explicitly specify the Mode.

Method Detail

init

public void init()
Does nothing.

Specified by:
init in interface ApplicationScopedComponent

shutdown

public void shutdown()
Does nothing.

Specified by:
shutdown in interface ApplicationScopedComponent

isFixturesInstalled

public boolean isFixturesInstalled()
Specified by:
isFixturesInstalled in interface UserProfileLoader
See Also:
PersistenceSession.isFixturesInstalled()

saveAsDefault

public void saveAsDefault(UserProfile userProfile)
Specified by:
saveAsDefault in interface UserProfileLoader

saveForUser

public void saveForUser(java.lang.String userName,
                        UserProfile userProfile)
Specified by:
saveForUser in interface UserProfileLoader

saveSession

public void saveSession(java.util.List<NakedObject> objects)
Specified by:
saveSession in interface UserProfileLoader

getProfile

public UserProfile getProfile(AuthenticationSession session)
Specified by:
getProfile in interface UserProfileLoader

getProfile

@Deprecated
public UserProfile getProfile()
Deprecated. 

Specified by:
getProfile in interface UserProfileLoader

debugData

public void debugData(DebugString debug)
Specified by:
debugData in interface DebugInfo

debugTitle

public java.lang.String debugTitle()
Specified by:
debugTitle in interface DebugInfo

getServices

public java.util.List<java.lang.Object> getServices()
Specified by:
getServices in interface UserProfileLoader

setServices

public void setServices(java.util.List<java.lang.Object> serviceList)
Specified by:
setServices in interface UserProfileLoader


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