org.milyn.profile
Class DefaultProfileStore

java.lang.Object
  extended by org.milyn.profile.DefaultProfileStore
All Implemented Interfaces:
ProfileStore

public class DefaultProfileStore
extends Object
implements ProfileStore

Default ProfileStore implementation.

Author:
tfennelly

Constructor Summary
DefaultProfileStore()
           
 
Method Summary
 void addProfileSet(ProfileSet profileSet)
          Add a ProfileSet for the named profile member.
 void expandProfiles()
          Expand out the profile sets in this profile store.
 ProfileSet getProfileSet(String profileMember)
          Get the ProfileSet associated with the specified profile member.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultProfileStore

public DefaultProfileStore()
Method Detail

getProfileSet

public ProfileSet getProfileSet(String profileMember)
                         throws UnknownProfileMemberException
Description copied from interface: ProfileStore
Get the ProfileSet associated with the specified profile member.

A profile "member" can be a member of multiple profiles. This method should return that list of profiles.

Implementations must be case insensitive.

Specified by:
getProfileSet in interface ProfileStore
Parameters:
profileMember - The base profile name.
Returns:
The ProfileSet for the specified base profile.
Throws:
UnknownProfileMemberException - There's no ProfileSet for the specified base profile.

addProfileSet

public void addProfileSet(ProfileSet profileSet)
Add a ProfileSet for the named profile member.

Specified by:
addProfileSet in interface ProfileStore
Parameters:
profileSet - The ProfileSet.

expandProfiles

public void expandProfiles()
Expand out the profile sets in this profile store.

Expanding means taking sub-profiles that are in themselves the base profile of another profile set, and inserting the sub-profiles into the profile set.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.