org.nakedobjects.applib.fixtures
Class UserProfileFixture
java.lang.Object
org.nakedobjects.applib.AbstractContainedObject
org.nakedobjects.applib.fixtures.AbstractFixture
org.nakedobjects.applib.fixtures.UserProfileFixture
- All Implemented Interfaces:
- CompositeFixture, InstallableFixture, ProfileServiceAware, SwitchUserServiceAware
public abstract class UserProfileFixture
- extends AbstractFixture
- implements ProfileServiceAware
| 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, persistentIfNotAlready, 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 |
UserProfileFixture
public UserProfileFixture()
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(java.lang.String name,
Profile profile)
saveAsDefault
protected void saveAsDefault(Profile profile)
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.