|
DBVIEW
|

Static Public Member Functions | |
| static void | init () throws Exception |
| static void | add (AbstractConfiguration in_profile) throws ProfilesRepositoryException, JDOMException, Exception |
| static void | remove (AbstractConfiguration in_profile) throws ProfilesRepositoryException, JDOMException, Exception |
| static void | remove (String in_name) throws ProfilesRepositoryException, JDOMException, Exception |
| static void | update (AbstractConfiguration in_profile) throws ProfilesRepositoryException, JDOMException, Exception |
| static String | print () throws Exception |
| static AbstractConfiguration | getProfileInstance (String in_name) throws ConfigurationException, JDOMException, Exception |
| static ArrayList< String > | getProfilesNames () throws JDOMException |
Static Private Member Functions | |
| static Element | __getProfileByName (String in_name) throws JDOMException |
| static String | __getProfileName (Element in_profile) throws Exception |
| static String | __getProfileTarget (Element in_profile) throws Exception |
| static void | __initFile () throws URISyntaxException, Exception |
| static void | __write (Document in_doc) throws URISyntaxException, Exception |
| static void | __setUpdateDateTimeToNow (Document in_doc) |
| static void | __add (Element in_profile) throws ProfilesRepositoryException, JDOMException, Exception |
| static void | __update (Element in_profile) throws ProfilesRepositoryException, JDOMException, Exception |
| static void | __remove (Element in_profile) throws ProfilesRepositoryException, JDOMException, Exception |
Static Private Attributes | |
| static Document | __profiles = null |
| static File | __repository = null |
This class implements the profile's repository.
A profile is a set of value used by input add-ons to connect to their associated data source (Mysql...).
Definition at line 42 of file ProfilesRepository.java.
| static void org.dbview.input_addons.ProfilesRepository.__add | ( | Element | in_profile | ) | throws ProfilesRepositoryException, JDOMException, Exception [static, private] |
Add a new profile to the repository.
| in_profile | Profile to add. |
| ProfilesRepositoryException | |
| Exception |
Definition at line 274 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__update(), and org.dbview.input_addons.ProfilesRepository.add().
| static Element org.dbview.input_addons.ProfilesRepository.__getProfileByName | ( | String | in_name | ) | throws JDOMException [static, private] |
This method tries to locate a given profile given its name.
| in_name | Name of the profile to locate. |
| JDOMException |
Definition at line 195 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__add(), org.dbview.input_addons.ProfilesRepository.getProfileInstance(), and org.dbview.input_addons.ProfilesRepository.remove().
| static String org.dbview.input_addons.ProfilesRepository.__getProfileName | ( | Element | in_profile | ) | throws Exception [static, private] |
Given a profile, this method returns its name.
| in_profile | Profile. |
| Exception |
Definition at line 207 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__add(), and org.dbview.input_addons.ProfilesRepository.__remove().
| static String org.dbview.input_addons.ProfilesRepository.__getProfileTarget | ( | Element | in_profile | ) | throws Exception [static, private] |
Given a profile, this method returns the name of the associated input add-on.
| in_profile | Profile. |
| Exception |
Definition at line 220 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.getProfileInstance().
| static void org.dbview.input_addons.ProfilesRepository.__initFile | ( | ) | throws URISyntaxException, Exception [static, private] |
This method creates an instance of class "File" that points to the profiles' repository.
| URISyntaxException | |
| Exception |
Definition at line 232 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__write(), and org.dbview.input_addons.ProfilesRepository.init().
| static void org.dbview.input_addons.ProfilesRepository.__remove | ( | Element | in_profile | ) | throws ProfilesRepositoryException, JDOMException, Exception [static, private] |
Given a profile, this method removes the profile from the repository.
| in_profile | The profile to remove. |
| ProfilesRepositoryException | |
| JDOMException | |
| Exception |
Definition at line 315 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__update(), and org.dbview.input_addons.ProfilesRepository.remove().
| static void org.dbview.input_addons.ProfilesRepository.__setUpdateDateTimeToNow | ( | Document | in_doc | ) | [static, private] |
This method sets the value of the (XML) attribute "updated" to the current date ant time.
| in_doc | XML document to update (can be null!). |
Definition at line 262 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__add(), org.dbview.input_addons.ProfilesRepository.init(), and org.dbview.input_addons.ProfilesRepository.remove().
| static void org.dbview.input_addons.ProfilesRepository.__update | ( | Element | in_profile | ) | throws ProfilesRepositoryException, JDOMException, Exception [static, private] |
Update a given profile.
| in_profile | New profile. |
| ProfilesRepositoryException | |
| JDOMException | |
| Exception |
Definition at line 299 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.update().
| static void org.dbview.input_addons.ProfilesRepository.__write | ( | Document | in_doc | ) | throws URISyntaxException, Exception [static, private] |
This method writes the profiles to the file that contains the repository.
| in_doc | XML document to write (can be null!). |
| URISyntaxException | |
| Exception |
Definition at line 246 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__add(), org.dbview.input_addons.ProfilesRepository.init(), and org.dbview.input_addons.ProfilesRepository.remove().
| static void org.dbview.input_addons.ProfilesRepository.add | ( | AbstractConfiguration | in_profile | ) | throws ProfilesRepositoryException, JDOMException, Exception [static] |
Add a new profile to the repository.
| in_profile | Profile to add. |
| ProfilesRepositoryException | |
| Exception |
Definition at line 89 of file ProfilesRepository.java.
| static AbstractConfiguration org.dbview.input_addons.ProfilesRepository.getProfileInstance | ( | String | in_name | ) | throws ConfigurationException, JDOMException, Exception [static] |
Return an instance of a given profile's configuration's holder.
| in_name | Name of the profile. |
Definition at line 155 of file ProfilesRepository.java.
| static ArrayList<String> org.dbview.input_addons.ProfilesRepository.getProfilesNames | ( | ) | throws JDOMException [static] |
This method returns the list of all profiles' names stored in the profiles' repository.
| JDOMException |
Definition at line 172 of file ProfilesRepository.java.
| static void org.dbview.input_addons.ProfilesRepository.init | ( | ) | throws Exception [static] |
Initialize the repository.
| Exception |
Definition at line 58 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__add(), org.dbview.input_addons.ProfilesRepository.__remove(), org.dbview.input_addons.ProfilesRepository.getProfileInstance(), org.dbview.input_addons.ProfilesRepository.print(), and org.dbview.input_addons.ProfilesRepository.remove().
| static String org.dbview.input_addons.ProfilesRepository.print | ( | ) | throws Exception [static] |
Return a literal representation of the profiles' repository.
Definition at line 142 of file ProfilesRepository.java.
| static void org.dbview.input_addons.ProfilesRepository.remove | ( | AbstractConfiguration | in_profile | ) | throws ProfilesRepositoryException, JDOMException, Exception [static] |
Given a profile, this method removes the associated profile from the repository.
| in_profile | Profile to remove. |
| ProfilesRepositoryException | |
| JDOMException | |
| Exception |
Definition at line 101 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__remove().
| static void org.dbview.input_addons.ProfilesRepository.remove | ( | String | in_name | ) | throws ProfilesRepositoryException, JDOMException, Exception [static] |
Given a profit's name, this method removes the associated profile from the repository.
| in_name | The name of the profile to remove. |
| ProfilesRepositoryException | |
| JDOMException | |
| Exception |
Definition at line 113 of file ProfilesRepository.java.
| static void org.dbview.input_addons.ProfilesRepository.update | ( | AbstractConfiguration | in_profile | ) | throws ProfilesRepositoryException, JDOMException, Exception [static] |
Update a given profile.
| in_profile | New profile. |
| ProfilesRepositoryException | |
| JDOMException | |
| Exception |
Definition at line 133 of file ProfilesRepository.java.
Document org.dbview.input_addons.ProfilesRepository.__profiles = null [static, private] |
XML representation of the list of profiles.
Definition at line 47 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__add(), org.dbview.input_addons.ProfilesRepository.__getProfileByName(), org.dbview.input_addons.ProfilesRepository.__remove(), org.dbview.input_addons.ProfilesRepository.__setUpdateDateTimeToNow(), org.dbview.input_addons.ProfilesRepository.__write(), org.dbview.input_addons.ProfilesRepository.getProfileInstance(), org.dbview.input_addons.ProfilesRepository.getProfilesNames(), org.dbview.input_addons.ProfilesRepository.init(), org.dbview.input_addons.ProfilesRepository.print(), and org.dbview.input_addons.ProfilesRepository.remove().
File org.dbview.input_addons.ProfilesRepository.__repository = null [static, private] |
File that contains the XML description of the list of profiles.
Definition at line 52 of file ProfilesRepository.java.
Referenced by org.dbview.input_addons.ProfilesRepository.__initFile(), org.dbview.input_addons.ProfilesRepository.__write(), and org.dbview.input_addons.ProfilesRepository.init().