source: trunk/src/core/core-extensions.xml @ 6424

Last change on this file since 6424 was 6424, checked in by Nicklas Nordborg, 9 years ago

References #1599: Convert authentication plug-in system to an extension point

Avoid calling deprecated methods.

Added OldAuthenticationWrapperFactory for backwards compatibility with old external authentication implementations.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 10.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8" ?>
2<!--
3  $Id: core-extensions.xml 6424 2014-02-25 13:37:04Z nicklas $
4
5  Copyright (C) Nicklas Nordborg
6
7  This file is part of BASE - BioArray Software Environment.
8  Available at http://base.thep.lu.se/
9
10  BASE is free software; you can redistribute it and/or
11  modify it under the terms of the GNU General Public License
12  as published by the Free Software Foundation; either version 3
13  of the License, or (at your option) any later version.
14
15  BASE is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  GNU General Public License for more details.
19
20  You should have received a copy of the GNU General Public License
21  along with BASE. If not, see <http://www.gnu.org/licenses/>.
22-->
23<extensions
24  xmlns="http://base.thep.lu.se/extensions.xsd"
25  >
26  <about>
27    <version></version>
28    <name>Core extensions points and extensions</name>
29    <description>
30      This file defines core extension points and extensions.
31      Core extensions are always loaded when BASE starts up and
32      are available in all context, no matter if BASE is running
33      as a job agent, web server, etc.
34    </description>
35    <copyright>BASE development team</copyright>
36    <email>basedb-users@lists.sourceforge.net</email>
37    <url>http://base.thep.lu.se/</url>
38  </about>
39 
40  <extension-point
41    id="net.sf.basedb.core.authentication-manager"
42    >
43    <action-class>net.sf.basedb.core.authentication.AuthenticationManager</action-class>
44    <name>Authentication manager</name>
45    <description>
46      Extension point for authentication of users when logging in to BASE.
47      Installed authentication managers are invoked in the index order.
48      An authentication manager have three possible options:
49      1) Decide that the login/password is valid and return an
50         AuthenticationInformation object. No further authentication managers
51         are invoked and the user is logged in to BASE.
52      2) Decide that the login/password is invalid and throw an
53         Exception. No further authentication managers
54         are invoked and the user is NOT logged in to BASE.
55      3) Decide that it doesn't know if the login/password is valid or not
56         and return null. The next authentication manager is invoked.
57         If this was the last authentication manager, internal authentication
58         is used.
59    </description>
60  </extension-point>
61 
62  <extension-point
63    id="net.sf.basedb.core.uri.connection-manager"
64    >
65    <action-class>net.sf.basedb.util.uri.ConnectionManagerFactory</action-class>
66    <name>Connection manager</name>
67    <description>
68      Extension point for external file support. A connection manager is
69      something that knows how to access an external file pointed to by an
70      URI. Actions are ConnectionManagerFactory instances and are typically
71      used in two ways.
72      1) In a single-file context when getting metadata or the contents of
73      a single File item. The ClientContext object is populated with an active
74      DbControl and the current item is the file.
75      2) A standalone context with the external reference as an URI. No
76      DbControl is used and no current item.
77      Extensions to this extension point must not return more than one
78      factory since we need to associate each factory with the id
79      of the extension.
80    </description>
81  </extension-point>
82 
83  <extension-point 
84    id="net.sf.basedb.core.filehandler.validator"
85    >
86    <action-class>net.sf.basedb.util.fileset.ValidationAction</action-class>
87    <name>File set validators</name>
88    <description>
89      Extension point for validating and extracting metadata from files in a FileSet.
90      Extensions can be invoked in three different contexts:
91      1) Validation of a file set: The current item in the context is the owner of
92        the file set (eg. the FileStoreEnabled item).
93      2) Removing a file from a file set: The current item in the context
94        is the owner of the file set (eg. the FileStoreEnabled item). The
95        extension is supposed to remove metadata that was extracted from the
96        given file.
97      3) Checking if a given data file type can be validated or not: The current
98        item in the context is a DataFileType and the core will only check if
99        the action factory returns TRUE from the prepareContext method. The
100        extensions will not actually be invoked.
101    </description>
102  </extension-point>
103 
104  <extension-point 
105    id="net.sf.basedb.util.overview.loader">
106    <action-class>net.sf.basedb.util.overview.extensions.ChildNodeLoaderAction</action-class>
107    <name>Item overview - loader</name>
108    <description>
109      Extension point for extending the item overview by
110      loading child nodes to existing nodes. Each registered action factory
111      is asked to create child items for every node in the item overview.
112      The ClientContext is populated with an active DbControl and the current
113      item is the parent node for which child nodes should be loaded.
114    </description>
115  </extension-point>
116
117  <extension-point 
118    id="net.sf.basedb.util.overview.validator">
119    <action-class>net.sf.basedb.util.overview.extensions.NodeValidatorAction</action-class>
120    <name>Item overview - validator</name>
121    <description>
122      Extension point for adding validation checks to the item overview. Each registered
123      action factory is asked to create a validator for every node in the item overview.
124      The ClientContext is populated with an active DbControl and the key used by the
125      validator factory to create the validators. Typically, this is a value from
126      the Item enumeration (eg. Item.SAMPLE, etc).
127    </description>
128  </extension-point>
129 
130  <extension-point 
131    id="net.sf.basedb.util.overview.validationrule">
132    <action-class>net.sf.basedb.util.overview.extensions.ValidationRuleAction</action-class>
133    <name>Item overview - validation rule</name>
134    <description>
135      Extension point for adding validation rules to the item overview. This extension
136      point is used in the "Validation options" dialog and allows a user to set the
137      severity level for each registered rule. The ClientContext is populated with
138      an active DbControl and the current item is the GenericOverview that is currently
139      in use.
140    </description>
141  </extension-point>
142 
143  <extension-point 
144    id="net.sf.basedb.core.log-manager">
145    <action-class>net.sf.basedb.core.log.LogManagerFactory</action-class>
146    <name>Log managers</name>
147    <description>
148      Extension point for logging changes that are made to items. This
149      extension point is invoked for every access and the ClientContext
150      is populated with the current SessionControl.
151    </description>
152  </extension-point>
153 
154  <extension 
155    id="net.sf.basedb.core.uri.http-connection-manager"
156    extends="net.sf.basedb.core.uri.connection-manager"
157    >
158    <about>
159      <name>HTTP(s) connection manager</name>
160      <description>
161        Provides support for regular HTTP and HTTPS including Basic
162        and Digest authentication as well as server- and client-side
163        certificates. Auto-detection matches all URI:s with 'http'
164        or 'https' scheme.
165      </description>
166    </about>
167    <index>1</index>
168    <action-factory>
169      <factory-class>net.sf.basedb.util.uri.http.HttpConnectionManagerActionFactory</factory-class>
170    </action-factory>
171  </extension>
172 
173  <extension 
174    id="net.sf.basedb.util.affymetrix.cel-validator"
175    extends="net.sf.basedb.core.filehandler.validator"
176    >
177    <about>
178      <name>CEL file validator</name>
179      <description>
180        Validator and metadata extractor implementation for Affymetrix CEL files.
181        The validation is done by trying to open the file with the Affymetrix
182        Fusion SDK. If this was successful some metadata information is extracted
183        from the headers including chip type and algorithm parameters. The number
184        of spots for the raw bioassay is set to the number of cells in the file.
185      </description>
186    </about>
187    <index>1</index>
188    <action-factory>
189      <factory-class>net.sf.basedb.util.affymetrix.CelValidationFactory</factory-class>
190    </action-factory>
191  </extension>
192
193  <extension 
194    id="net.sf.basedb.util.affymetrix.cdf-validator"
195    extends="net.sf.basedb.core.filehandler.validator"
196    >
197    <about>
198      <name>CDF file validator</name>
199      <description>
200        Validator and metadata extractor implementation for Affymetrix CDF files.
201        The validation is done by trying to open the file with the Affymetrix
202        Fusion SDK. If this was successful some metadata information is extracted
203        from the headers including
204       
205        chip type and algoritm parameters. The number
206        of spots for the raw bioassay is set to the number of cells in the file.
207      </description>
208    </about>
209    <index>1</index>
210    <action-factory>
211      <factory-class>net.sf.basedb.util.affymetrix.CdfValidationFactory</factory-class>
212    </action-factory>
213  </extension>
214
215  <extension 
216    id="net.sf.basedb.util.gtf.gtf-validator"
217    extends="net.sf.basedb.core.filehandler.validator"
218    >
219    <about>
220      <name>GTF file validator</name>
221      <description>
222        Validator for GTF reference files. The validation checks that
223        the first few lines follow the GTF specification.
224        See http://mblab.wustl.edu/GTF22.html
225      </description>
226    </about>
227    <index>1</index>
228    <action-factory>
229      <factory-class>net.sf.basedb.util.gtf.GtfValidationFactory</factory-class>
230    </action-factory>
231  </extension>
232
233  <extension 
234    id="net.sf.basedb.core.db-log-manager"
235    extends="net.sf.basedb.core.log-manager"
236    >
237    <about>
238      <name>Database log manager</name>
239      <description>
240        Information about changes to items are logged in the
241        database. Some configuration options can be set in base.config.
242      </description>
243    </about>
244    <index>1</index>
245    <action-factory>
246      <factory-class>net.sf.basedb.core.log.db.DbLogManagerFactory</factory-class>
247    </action-factory>
248  </extension>
249 
250  <extension 
251    id="net.sf.basedb.core.authentication.old-auth-manager"
252    extends="net.sf.basedb.core.authentication-manager"
253    >
254    <about>
255      <name>Old authentication manager</name>
256      <description>
257        Wrapper implementation for supporting the old external
258        authentication style. The implemention is only enabled if
259        the 'auth.driver' settings exists in 'base.config'.
260      </description>
261    </about>
262    <index>999</index>
263    <action-factory>
264      <factory-class>net.sf.basedb.core.authentication.OldAuthenticationWrapperFactory</factory-class>
265    </action-factory>
266  </extension>
267
268  <!--
269  <extension
270    id="net.sf.basedb.core.filehandler.cdf-validator"
271    extends="net.sf.basedb.core.filehandler.affymetrix.cdf"
272    >
273    <about>
274      <name>CDF file validator</name>
275      <description>
276        Validator and metadata extractor implementation for Affymetrix CDF files.
277        The validation is done by trying to open the file with the Affymetrix
278        Fusion SDK. If this was successful the number of features for the array design
279        is set to the number of probesets in the file.
280      </description>
281    </about>
282    <index>1</index>
283    <action-factory>
284      <factory-class>net.sf.basedb.util.extensions.debug.BeanActionFactory</factory-class>
285      <parameters>
286        <beanClassName>net.sf.basedb.core.filehandler.CdfFileHandler</beanClassName>
287      </parameters>
288    </action-factory>
289  </extension>
290  -->
291</extensions>
Note: See TracBrowser for help on using the repository browser.