Portlet Factory, Version 6.1.2


 

Profile child retrieval

Using the ProfileSetStorageManager getChildProfiles(..) method you can now get the immediate children of a specified profile. This new method will return an iterator of the ProfileDescription objects.

/**
* Gets an Iterator of ProfileDescription objects for the children of the specified parent Profile.
*
* @param name The name of the ProfileSet to operate on.
* @param parentProfile The name of the parent Profile within the ProfileSet.
* @param onlyContainers If true then only container Profiles will be included in the results, if false then all children will be included.
*
* @example
* // 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);
*
* @throws ProfileException On error.
* @return An Iterator of ProfileDescription for the children of the specified parent Profile.
* @see com.bowstreet.profiles.ProfileDescription
*/ public Iterator getChildProfiles(String name, String parentProfile, boolean onlyContainers) throws ProfileException

Parent topic: Profiles


Library | Support |