org.nakedobjects.applib.fixtures
Class UserProfileFixture

java.lang.Object
  extended by org.nakedobjects.applib.AbstractContainedObject
      extended by org.nakedobjects.applib.fixtures.AbstractFixture
          extended by org.nakedobjects.applib.fixtures.UserProfileFixture
All Implemented Interfaces:
CompositeFixture, InstallableFixture, ProfileServiceAware, SwitchUserServiceAware

public abstract class UserProfileFixture
extends AbstractFixture
implements ProfileServiceAware


Constructor Summary
UserProfileFixture()
           
 
Method Summary
 void install()
          Most subclasses will override this method, but composite fixtures should instead call AbstractFixture.addFixture(Object) in their constructor.
protected abstract  void installProfiles()
           
protected  Profile newUserProfile()
           
protected  Profile newUserProfile(Profile profile)
           
protected  void saveAsDefault(Profile profile)
           
protected  void saveForUser(String name, Profile profile)
           
 void setService(ProfileService profileService)
           
 
Methods inherited from class org.nakedobjects.applib.fixtures.AbstractFixture
addFixture, earlierDate, earlierTime, getFixtureClock, getFixtures, getType, laterDate, laterTime, resetClock, setDate, setService, setTime, switchUser
 
Methods inherited from class org.nakedobjects.applib.AbstractContainedObject
allInstances, allMatches, allMatches, allMatches, allMatches, firstMatch, firstMatch, firstMatch, firstMatch, getContainer, getUser, informUser, isPersistent, isValid, newTransientInstance, persist, persistIfNotAlready, raiseError, remove, setContainer, uniqueMatch, uniqueMatch, uniqueMatch, uniqueMatch, validate, warnUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProfileFixture

public UserProfileFixture()
Method Detail

setService

public void setService(ProfileService profileService)
Specified by:
setService in interface ProfileServiceAware

install

public final void install()
Description copied from class: AbstractFixture
Most subclasses will override this method, but composite fixtures should instead call AbstractFixture.addFixture(Object) in their constructor.

Specified by:
install in interface InstallableFixture
Overrides:
install in class AbstractFixture

installProfiles

protected abstract void installProfiles()

newUserProfile

protected Profile newUserProfile()

newUserProfile

protected Profile newUserProfile(Profile profile)

saveForUser

protected void saveForUser(String name,
                           Profile profile)

saveAsDefault

protected void saveAsDefault(Profile profile)


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