|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IProfileSetStorage
Interface that defines the common methods that all profile set storage imlementations must provide.
ProfileSetStorageManager| Method Summary | |
|---|---|
boolean |
deleteProfileSet(java.lang.String strId)
Removes an existing ProfileSet with the specified ID (profile set name). |
boolean |
doesProfileSetExist(java.lang.String strId)
Searches for a ProfileSet with the specified name. |
java.util.Iterator |
getChildProfiles(java.lang.String profileSetName,
java.lang.String parentProfileName,
boolean onlyContainers)
Gets an Iterator of ProfileDescription objects for the children of the specified parent Profile. |
long |
getLastModified(java.lang.String strId)
Returns the last time the specified Profile Set was modified. |
long |
getLastModified(java.lang.String profileSetName,
java.lang.String profileName)
Returns the last time the specified Profile was modified. |
java.util.Iterator |
getProfilesBySegment(java.lang.String profileSetName,
java.util.Iterator segments)
Gets an Iterator of ProfileDescription objects for Profiles that match one of the specified segments. |
java.util.List |
getSegmentsInUse(java.lang.String profileSetName)
Gets a List of segment names used by the specified ProfileSet. |
Profile |
readProfile(java.lang.String profileSetName,
java.lang.String profileName)
Reads the specified Profile from the storage device. |
ProfileSet |
readProfileSet(java.lang.String strId)
Gets a ProfileSet for the specified Profile Set ID. |
ProfileSet |
readProfileSet(java.lang.String profileSetName,
java.util.Iterator profileNames)
Gets a ProfileSet that is populated with the specified Profiles from the Iterator of Profile names. |
ProfileSetDescription |
readProfileSetDescription(java.lang.String strId)
Get a specified ProfileSet's ProfileSetDescription. |
java.util.List |
readProfileSetDescriptions()
Gets a list of all of the ProfileSetDescription's for the entire system. |
java.util.List |
readProfileSetDescriptions(long time)
Get a list of all the ProfileSetDescription's who's last modified time stamp is greater that the specified timstamp. |
void |
renameProfile(java.lang.String profileSetName,
java.lang.String profileName,
java.lang.String newName)
Renames an existing Profile and fix up any parent/child dependencies. |
void |
setUserName(java.lang.String strUserName)
Sets the name of the user who is reading/writing the ProfileSet. |
void |
writeProfileData(ProfileSet profileSet,
ProfileSet originalProfileSet,
boolean forceChangeOvewrite)
Adds or modifies only the Profiles of specified ProfileSet. |
void |
writeProfileSet(ProfileSet profileSet,
boolean forceChangeOvewrite)
Adds or modifies the specified ProfileSet. |
void |
writeProfileSet(ProfileSet profileSet,
ProfileSet originalProfileSet,
boolean forceChangeOvewrite)
Adds or modifies the ProfilesDef, Profiles, strProfileSelectionClass and strValueClass of the specified ProfileSet. |
| Method Detail |
|---|
boolean deleteProfileSet(java.lang.String strId)
throws ProfileException
strId - The name of the ProfileSet to delete.
ProfileException - On error.ProfileSetboolean doesProfileSetExist(java.lang.String strId)
strId - The unique ID (profile set name) of the requested ProfileSet.
ProfileSet
java.util.Iterator getChildProfiles(java.lang.String profileSetName,
java.lang.String parentProfileName,
boolean onlyContainers)
throws ProfileException
profileSetName - The name of the ProfileSet to operate on.parentProfileName - The name of the parent Profile within the ProfileSet.onlyContainers - If true then only container Profiles will be included in the results, if false then all children will be included.
ProfileException - On error.// Gets all of the root level container profiles
Iterator iterator = profileSetStorageManager.getChildProfiles("myProfileSet", "Default", true);
// Gets all of the child profiles of "Acme.HR"
Iterator iterator = profileSetStorageManager.getChildProfiles("myProfileSet", "Acme.HR", false);
long getLastModified(java.lang.String strId)
throws ProfileException
strId - The ID of the ProfileSet to get last modified time.
ProfileException - On error.ProfileSet
long getLastModified(java.lang.String profileSetName,
java.lang.String profileName)
throws ProfileException
profileSetName - The name of the ProfileSet that contains the Profile.profileName - The name of the Profile to get last modified time of.
ProfileException - On error.
java.util.Iterator getProfilesBySegment(java.lang.String profileSetName,
java.util.Iterator segments)
throws ProfileException
profileSetName - The ProfileSet to find the matching profile on.segments - An Iterator of segment names that the user is in.
ProfileException
java.util.List getSegmentsInUse(java.lang.String profileSetName)
throws ProfileException
profileSetName - The name of the ProfileSet to get all the segment names used.
ProfileException - On error.
Profile readProfile(java.lang.String profileSetName,
java.lang.String profileName)
throws ProfileException
Note - The returned Profile does not contain calculated values and should only be used for reading.
profileSetName - The name of the ProfileSet that contains the Profile.profileName - The name of the Profile to retrieve.
ProfileException - On error.Profile
ProfileSet readProfileSet(java.lang.String strId)
throws ProfileException
strId - The unique ID (profile set name) of the requested ProfileSet.
ProfileException - On errorProfileSet
ProfileSet readProfileSet(java.lang.String profileSetName,
java.util.Iterator profileNames)
throws ProfileException
Note - This will also bring in all of the parents of the specified profiles.
profileSetName - The name of the ProfileSet to retrieve.profileNames - The names of the Profiles to populate the ProfileSet with.
ProfileException - On error.ProfileSet
ProfileSetDescription readProfileSetDescription(java.lang.String strId)
throws ProfileException
strId - The unique ID (profile set name) of the requested ProfileSet.
ProfileException - On errorProfileSetDescription,
ProfileSet
java.util.List readProfileSetDescriptions()
throws ProfileException
ProfileException - On errorProfileSetDescription,
ProfileSet
java.util.List readProfileSetDescriptions(long time)
throws ProfileException
time - The time in milliseconds to compare against.
ProfileException - On errorProfileSetDescription,
ProfileSet
void renameProfile(java.lang.String profileSetName,
java.lang.String profileName,
java.lang.String newName)
throws ProfileException
Note - After calling this you should re-read any of the specified ProfileSet's you currently have open.
profileSetName - The name of the ProfileSet to operate on.profileName - The existing profile to be renamed. This must be the fully qualified profile name (e.g. "Acme.HR").newName - The new profile name (e.g. "Sales").
ProfileException - On error.void setUserName(java.lang.String strUserName)
strUserName - The name of the user.ProfileSet
void writeProfileData(ProfileSet profileSet,
ProfileSet originalProfileSet,
boolean forceChangeOvewrite)
throws ProfileException,
com.bowstreet.profiles.ProfileSetChangedException
profileSet - The ProfileSet to modify.originalProfileSet - The original ProfileSet to compare against or
null if there was no original.forceChangeOvewrite - If set to false and the ProfileSet already
exists with a lastmodified time greater than the specified ProfileSet,
then an exception will be thrown. If true the ProfileSet will be
overwritten.
ProfileException - On error.
ProfileSetChangedException - If a Profile has changes during an edit.
void writeProfileSet(ProfileSet profileSet,
boolean forceChangeOvewrite)
throws ProfileException,
com.bowstreet.profiles.ProfileSetChangedException
profileSet - The ProfileSet to add or modify.forceChangeOvewrite - If set to false and the ProfileSet already
exists with a lastmodified time greater than the specified ProfileSet,
then an exception will be thrown. If true the ProfileSet will be
overwritten.
ProfileException - On error.
ProfileSetChangedException - If a Profile has changes during an edit.ProfileSet
void writeProfileSet(ProfileSet profileSet,
ProfileSet originalProfileSet,
boolean forceChangeOvewrite)
throws ProfileException,
com.bowstreet.profiles.ProfileSetChangedException
profileSet - The ProfileSet to modify.originalProfileSet - The original ProfileSet to compare against or
null if there was no original.forceChangeOvewrite - If set to false and the ProfileSet already
exists with a lastmodified time greater than the specified ProfileSet,
then an exception will be thrown. If true the ProfileSet will be
overwritten.
ProfileException - On error.
ProfileSetChangedException - If a Profile has changes during an edit.updateProfilesChanged
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||