Class DefaultProfileStore

  • All Implemented Interfaces:
    ProfileStore

    public class DefaultProfileStore
    extends Object
    implements ProfileStore
    Default ProfileStore implementation.
    Author:
    tfennelly
    • 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.