KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > core > gui > profiles > IProfileManager


1 package org.columba.core.gui.profiles;
2
3 import org.columba.core.xml.XmlElement;
4
5 /**
6  * Manages profiles consisting of configuration folders.
7  * <p>
8  * Every profile has a name and a loation pointing to the configuration folder.
9  * <p>
10  * A profiles.xml configuration file is saved in the default config directory,
11  * storing all profiles information.
12  *
13  * @author fdietz
14  */

15 public interface IProfileManager {
16
17     /**
18      * Get profile with name
19      *
20      * @param name
21      * name of class
22      *
23      * @return return profile if available. Otherwise, return null
24      */

25     public abstract Profile getProfileForName(String JavaDoc name);
26
27     /**
28      * Get profile.
29      *
30      * @param location
31      * location of config folder
32      *
33      * @return profile if available. Otherwise, return null
34      */

35     public abstract Profile getProfile(String JavaDoc location);
36
37     /**
38      * Get formely selected profile. This was selected on the previous startup
39      * of Columba.
40      *
41      * @return selected profile
42      */

43     public abstract String JavaDoc getSelectedProfile();
44
45     /**
46      * Get profiles configuration.
47      *
48      * @return top-level profiles node
49      */

50     public abstract XmlElement getProfiles();
51
52     /**
53      * @return Returns the currentProfile.
54      */

55     public abstract Profile getCurrentProfile();
56
57 }
Popular Tags