Changeset 3662
- Timestamp:
- Aug 14, 2007, 8:54:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/src/docbook/developerdoc/plugin_developer.xml
r3646 r3662 545 545 out from this method. Always use <code>try...catch</code> 546 546 to catch exceptions and use <code>Response.setError()</code> 547 to report erthe error back to the core.547 to report the error back to the core. 548 548 </important> 549 549 … … 1310 1310 <methodname>Plugin.requiresConfiguration()</methodname> and 1311 1311 <methodname>Plugin.getAbout()</methodname> to find out information 1312 about the plug-in. This is the only time the ese methods are called.1312 about the plug-in. This is the only time these methods are called. 1313 1313 The information that is returned by them are copied and stored in 1314 1314 the database for easy access. … … 1506 1506 <para> 1507 1507 If the web client found that the plug-in could be 1508 used in a given context and the user selected the plug-in 1508 used in a given context and the user selected the plug-in, 1509 1509 the job configuration sequence is started. It is a wizard-like interface 1510 1510 identical to the configuration wizard. In fact, the same JSP pages, … … 1591 1591 <para> 1592 1592 The <methodname>Plugin.run()</methodname> method is called. 1593 It is finally time for the plug-in to do the work it has bee 1593 It is finally time for the plug-in to do the work it has been 1594 1594 designed for. This method should not throw any exceptions. 1595 1595 Use the <methodname>Response.setDone()</methodname> … … 1728 1728 1729 1729 <para> 1730 A plugin becom s an import plugin simply by returning1730 A plugin becomes an import plugin simply by returning 1731 1731 <constant>Plugin.MainType.IMPORT</constant> 1732 1732 from the <methodname>Plugin.getMainType()</methodname> method. … … 1799 1799 Note that the input stream doesn't have to be a text file. 1800 1800 It can be any type of file, for example a binary or an XML file. 1801 In the case of an XML file you would need to validate the entir y1801 In the case of an XML file you would need to validate the entire 1802 1802 input stream in order to be a 100% sure that it is a valid 1803 1803 xml file, but we recommend that you only check the first few XML tags, … … 1934 1934 for configuring the plugin and creating a job and implement the 1935 1935 <methodname>InteractivePlugin.configure()</methodname> method for validating and 1936 storing the paramete ters. You should also implement or override some methods1936 storing the parameters. You should also implement or override some methods 1937 1937 defined by <classname>AbstractFlatFileImporter</classname>. 1938 1938 </para> … … 2045 2045 <classname>PluginParameter</classname> objects and has stored the values 2046 2046 at the configuration level. You should override this method if you need to 2047 initia ilise the parser in a different way. See for example the2047 initialise the parser in a different way. See for example the 2048 2048 code for the <classname>PrintMapFlatFileImporter</classname> plug-in which 2049 2049 has a fixed format and doesn't use configurations. … … 2088 2088 TRUE, since obviously some data has been found. A subclass may override this method 2089 2089 if it wants to do more checks, for example, make that a certain header is present 2090 with a certain value. It may also continu tparsing the file. Here is a code example from2090 with a certain value. It may also continue parsing the file. Here is a code example from 2091 2091 the <classname>PrintMapFlatFileImporter</classname> which checks if a 2092 2092 <constant>FormatName</constant> header is present and contains either … … 2608 2608 <methodname>ImmediateDownloadExporter.doExport()</methodname> method. 2609 2609 Here is what you need to do in your own plug-in code (code examples are 2610 take from the <classname>HelpExporter</classname>):2610 taken from the <classname>HelpExporter</classname>): 2611 2611 </para> 2612 2612 … … 3039 3039 <para> 3040 3040 The <interfacename>net.sf.basedb.core.plugin.AnalysisFilterPlugin</interfacename> 3041 is a tagging interface with no methodsthat all analysis plug-ins that only filters3041 is a tagging interface, with no methods, that all analysis plug-ins that only filters 3042 3042 data should implement. The benefit is that they will be linked from the 3043 3043 <guibutton>Filter bioassay set</guibutton> button and not just … … 3079 3079 <para> 3080 3080 BASE can authenticate users in two ways. Either it uses the internal 3081 authentic tion or the external authentication. With internal3081 authentication or the external authentication. With internal 3082 3082 authentication BASE stores logins and passwords in its own database. 3083 3083 With external authentication this is handled by some external … … 3755 3755 <para> 3756 3756 The <varname>progress</varname> parameter, if not 3757 <constant>null</constant>, should be used to report erthe3757 <constant>null</constant>, should be used to report the 3758 3758 progress back to the calling code. The plug-in should count 3759 3759 the number of bytes read from the <varname>in</varname>
Note: See TracChangeset
for help on using the changeset viewer.