Package net.sf.basedb.util.affymetrix
Class CdfValidationFactory
java.lang.Object
net.sf.basedb.util.affymetrix.CdfValidationFactory
- All Implemented Interfaces:
ActionFactory<CdfValidationAction>
Action factory for creating CDF file validators.
- Since:
- 3.0
- Author:
- Nicklas
- Last modified
- $Date: 2011-05-06 14:09:13 +0200 (fr, 06 maj 2011) $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetActions
(InvokationContext<? super CdfValidationAction> context) This method may be called one or several times for each request.boolean
prepareContext
(InvokationContext<? super CdfValidationAction> context) This method is called once for each request/use of an extension and have two purposes: The factory should decide if the extension should be enabled or not.
-
Constructor Details
-
CdfValidationFactory
public CdfValidationFactory()
-
-
Method Details
-
prepareContext
Description copied from interface:ActionFactory
This method is called once for each request/use of an extension and have two purposes:- The factory should decide if the extension should be enabled or not. For example, the factory may check the permissions of the logged in user and determine that they are inadequate. The boolean return value determines if the extension is enabled or disabled.
- Initialise the context with resources that the actions may need.
With the BASE web-client this means that it is possible to
add scripts or stylesheets that is needed by the extension.
See
JspContext
.
- Specified by:
prepareContext
in interfaceActionFactory<CdfValidationAction>
- Parameters:
context
- The current invokation context- Returns:
- TRUE if the extension should be enabled, FALSE if the extension should be disabled
-
getActions
Description copied from interface:ActionFactory
This method may be called one or several times for each request. This is decided by the extension point. If, for example, the extension point is a pure single-item extension point then this method is probably only called once. If the extension point is a per-item extension point in a list context, then this method may be called once for every item in the list. The context parameter contains all information about the context of the extension point, including the current item, if any.- Specified by:
getActions
in interfaceActionFactory<CdfValidationAction>
- Parameters:
context
- The current invokation context- Returns:
- An array of actions that should be added to the extension point. Returns null or an empty array if there are no actions in the current context.
-