|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.afx.ulj.ProfileManager
public final class ProfileManager
Method Summary | |
---|---|
void |
deleteProfile(Profile profile)
Deletes given profile from DB |
static ProfileManager |
getInstance()
Gets the singleton instance of |
Profile |
getLastActiveProfile()
Gets the last active profile. |
Profile |
getProfile(java.lang.String profileName)
Gets the Profile by profile name. |
Profile |
getProfile(UUID profileId)
Gets the Profile by profile id. |
Profile[] |
getProfiles()
Gets all saved Profile objects. |
void |
saveProfile(Profile profile)
Saves or updates the specified Profile . |
void |
setLastActiveProfile(Profile profile)
Sets the given profile as active. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ProfileManager getInstance()
ProfileManager
.public void deleteProfile(Profile profile)
profile
- public Profile getProfile(java.lang.String profileName)
Profile
by profile name.
profileName
- The profile name to find.
Profile
or a null reference if not
found.public Profile getProfile(UUID profileId)
Profile
by profile id.
profileId
- The profile id to find.
Profile
or a null reference if not
found.public Profile[] getProfiles()
Profile
objects.
public Profile getLastActiveProfile()
public void setLastActiveProfile(Profile profile)
profile
- public void saveProfile(Profile profile)
Profile
.
profile
- The Profile
to save or update.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |