Changeset 2981
- Timestamp:
- Nov 30, 2006, 10:50:05 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 59 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r2979 r2981 964 964 <tag name="hibernate.many-to-any" description="Hibernate: many-to-any" scope="methods" /> 965 965 <tag name="hibernate.many-to-any-column" description="Hibernate: many-to-any-column" scope="methods" /> 966 <tag name="hibernate.component" description="Hibernate: component" scope="methods" /> 966 967 </javadoc> 967 968 </target> -
trunk/src/clients/jobagent/net/sf/basedb/clients/jobagent/Agent.java
r2865 r2981 145 145 </tr> 146 146 <tr> 147 <td>agent.executor.init</td>148 <td>-</td>149 <td>150 Initialisation parameters for the executor class. They are sent to the151 {@link JobExecutor#init(String)} method. For a meaning and syntax description152 of this string see the excutor implementation you are using.153 </td>154 </tr>155 <tr>156 147 <td>agent.checkinterval</td> 157 148 <td>30</td> … … 419 410 Get the thread priority to use for the specified execution time slot. 420 411 @param slot 421 @return422 412 */ 423 413 public int getThreadPriority(Job.ExecutionTime slot) … … 669 659 job agent if it's name or ip-address is listed in the 670 660 <code>agent.remotecontrol</code> property. This method is called from 671 the {@link DefaultRequestHandler#handleCmd( Socket, String)} method661 the {@link DefaultRequestHandler#handleCmd(java.net.Socket, String)} method 672 662 to determine if a service request should be accepted or not. 673 663 <p> … … 804 794 used when they are not. 805 795 806 @param requested The slot the job requested796 @param job The job that wants a slot 807 797 @return The assigned slot or null if no slot is available 808 798 */ -
trunk/src/clients/jobagent/net/sf/basedb/clients/jobagent/JobExecutor.java
r2648 r2981 37 37 that a job executor must be thread-safe and able to execute more than 38 38 one job at a time. It is not a good solution to put the <code>synchonrized</code> 39 keyword on the {@link #executeJob( Agent, Job, Job.ExecutionTime)} method40 since it would limit the execution to one job at a time.39 keyword on the {@link #executeJob(SessionControl, Agent, Job, JobAgentSettings, Job.ExecutionTime)} 40 method since it would limit the execution to one job at a time. 41 41 <p> 42 42 A job executor must provide a public no-argument constructor. … … 63 63 to kill the job or let it continue as if nothing happened. 64 64 <p> 65 The job sent to this method has it's status set to {@link Job.Status#PREPARED}. 65 The job sent to this method has it's status set to {@link 66 net.sf.basedb.core.Job.Status#PREPARED}. 66 67 The implementation of this method must change the status to either 67 {@link Job.Status#DONE} or {@link Job.Status#ERROR}. If the status hasn't changed 68 {@link net.sf.basedb.core.Job.Status#DONE} or {@link 69 net.sf.basedb.core.Job.Status#ERROR}. If the status hasn't changed 68 70 the job agent will set the status to signal an unknown error. 69 71 -
trunk/src/clients/jobagent/net/sf/basedb/clients/jobagent/JobQueueChecker.java
r2648 r2981 27 27 import java.util.TimerTask; 28 28 29 import net.sf.basedb.core.Application; 29 30 import net.sf.basedb.core.DbControl; 30 31 import net.sf.basedb.core.ItemQuery; -
trunk/src/clients/jobagent/net/sf/basedb/clients/jobagent/JobRunner.java
r2648 r2981 78 78 */ 79 79 /** 80 Find a free slot to use and then pass control to the 81 {@link JobExecutor#executeJob(Agent, Job, Job.ExecutionTime)} method. 80 Find a free slot to use and then pass control to the {@link 81 JobExecutor#executeJob(SessionControl, Agent, Job, JobAgentSettings, Job.ExecutionTime)} 82 method. 82 83 */ 83 84 public void run() -
trunk/src/clients/migrate/net/sf/basedb/clients/migrate/ArrayBlockTransfer.java
r2614 r2981 128 128 @param dc {@link DbControl} used to create a new ArrayDesignBlock 129 129 @param arrayDesign <code>ArrayDesign</code> 130 @param arrayDesignId Base 1 ArrayDesign Id130 @param base1ArrayDesignId Base 1 ArrayDesign Id 131 131 */ 132 132 private void addArrayDesignBlock(DbControl dc, ArrayDesign arrayDesign, -
trunk/src/clients/migrate/net/sf/basedb/clients/migrate/HybridizationTransfer.java
r2690 r2981 131 131 @param dc <code>DbControl</code> 132 132 @param hybridization The hybridization 133 @param base1 Id The corresponding base 1 id for this hybridization133 @param base1HybridizationId The corresponding base 1 id for this hybridization 134 134 */ 135 135 private void connectToLabeledExtracts(DbControl dc, Hybridization hybridization, -
trunk/src/clients/migrate/net/sf/basedb/clients/migrate/Transfer.java
r2690 r2981 564 564 Get the number of mapped ID:s. This should equal the number of 565 565 migrated items. 566 @return567 566 */ 568 567 public int getCount() … … 576 575 Integer base2Id = map.get(base1Id); 577 576 </pre> 578 @return579 577 */ 580 578 public Map<Integer, Integer> getIdMap() -
trunk/src/clients/web/net/sf/basedb/clients/web/ExperimentExplorer.java
r2942 r2981 666 666 {@link net.sf.basedb.core.DataQuery}. This means that we don't get 667 667 {@link ReporterData} objects as a result and that we must specify the 668 properties to select (see {@link ItemContext#configureQuery(D ynamicQuery, List)}).668 properties to select (see {@link ItemContext#configureQuery(DbControl, DynamicQuery, List)}). 669 669 <p> 670 670 The reporter id is always included as the first selected property so it … … 674 674 @param selectionList The properties that the query should select 675 675 @return A query 676 @see ItemContext#configureQuery(D ynamicQuery, List)676 @see ItemContext#configureQuery(DbControl, DynamicQuery, List) 677 677 */ 678 678 public DynamicSpotQuery getReporterQuery(DbControl dc, List<String> selectionList) … … 701 701 702 702 <p> 703 See {@link ItemContext#getDynamicExpression( String, DynamicJoins)} for more information703 See {@link ItemContext#getDynamicExpression(DbControl, String)} for more information 704 704 about how to specify additional selection properties. 705 705 -
trunk/src/clients/web/net/sf/basedb/clients/web/formatter/FormatterFactory.java
r2942 r2981 243 243 244 244 @param sc The logged in user's session control 245 @param ep The extended property 246 @return A formatter for the extended property 245 @param coloring The coloring object that keeps information about how 246 to generate colors 247 @param valueFormatter A formatter for the actual values 248 @return A formatter that adds color to the values 247 249 @see ColorFormatter 248 250 */ -
trunk/src/clients/web/net/sf/basedb/clients/web/formatter/FormatterSettings.java
r2942 r2981 136 136 137 137 @param sc The logged in user's session control 138 @param date Format The format string138 @param dateTimeFormat The format string 139 139 @see #DEFAULT_DATETIME_FORMAT 140 140 @see FormatterFactory#getDateTimeFormatter(SessionControl) -
trunk/src/clients/web/net/sf/basedb/clients/web/plugins/ExportTemplate.java
r2868 r2981 39 39 /** 40 40 Get the MIME type to assign to files generated by this template. 41 @return42 41 */ 43 42 public String getMimeType(); -
trunk/src/clients/web/net/sf/basedb/clients/web/plugins/ReporterScoreQueryWrapper.java
r2868 r2981 28 28 import net.sf.basedb.core.ReporterScore; 29 29 import net.sf.basedb.core.ReporterScoreQuery; 30 import net.sf.basedb.core.data.ReporterData; 30 31 import net.sf.basedb.core.data.ReporterListScoreData; 31 32 import net.sf.basedb.core.query.ResultIterator; -
trunk/src/clients/web/net/sf/basedb/clients/web/util/ServletExportOutputStream.java
r2854 r2981 78 78 } 79 79 /** 80 Calls {@link HttpServletResponse#setHeader(java.lang.String, java.lang.String) 80 Calls {@link HttpServletResponse#setHeader(java.lang.String, java.lang.String)} 81 81 with the following values: 82 82 <code>response.setHeader("Content-Disposition", "attachment;filename=<filename>");</code> -
trunk/src/core/net/sf/basedb/core/BioAssaySet.java
r2892 r2981 719 719 720 720 @return An <code>ItemQuery</code> object 721 @see #getSpotExtraValueBatcher(Class, ExtraValueType )722 @see #getPositionExtraValueBatcher(Class, ExtraValueType )721 @see #getSpotExtraValueBatcher(Class, ExtraValueType, Job) 722 @see #getPositionExtraValueBatcher(Class, ExtraValueType, Job) 723 723 */ 724 724 public ItemQuery<ExtraValue> getExtraValues() … … 733 733 @return An <code>ExtraValue</code> item, or null if no extra value 734 734 of the specified type has been created for this bioassayset 735 @see #getSpotExtraValueBatcher(Class, ExtraValueType )736 @see #getPositionExtraValueBatcher(Class, ExtraValueType )735 @see #getSpotExtraValueBatcher(Class, ExtraValueType, Job) 736 @see #getPositionExtraValueBatcher(Class, ExtraValueType, Job) 737 737 */ 738 738 public ExtraValue getExtraValue(ExtraValueType extraValueType) … … 749 749 to reporters. To insert extra values (which can be done at any time) 750 750 based on the position use the {@link 751 #getPositionExtraValueBatcher(Class, ExtraValueType )} method to get a batcher for751 #getPositionExtraValueBatcher(Class, ExtraValueType, Job)} method to get a batcher for 752 752 that. 753 753 … … 756 756 have write permission or if the data cube has already been committed 757 757 to the database 758 @see #getPositionExtraValueBatcher(Class, ExtraValueType )758 @see #getPositionExtraValueBatcher(Class, ExtraValueType, Job) 759 759 */ 760 760 public PositionBatcher getPositionBatcher() … … 802 802 committed to the database no more intensities can be inserted. 803 803 To insert extra values (which can be done at any time) based on the 804 position use the {@link #getSpotExtraValueBatcher(Class, ExtraValueType )}804 position use the {@link #getSpotExtraValueBatcher(Class, ExtraValueType, Job)} 805 805 method to get a batcher for that. 806 806 … … 809 809 have write permission or if the data cube layer has already been committed 810 810 to the database 811 @see #getSpotExtraValueBatcher(Class, ExtraValueType )811 @see #getSpotExtraValueBatcher(Class, ExtraValueType, Job) 812 812 */ 813 813 public SpotBatcher getSpotBatcher() … … 862 862 /** 863 863 Cache of already created spot extra value batchers. 864 @see #getSpotExtraValueBatcher(Class, ExtraValueType )864 @see #getSpotExtraValueBatcher(Class, ExtraValueType, Job) 865 865 */ 866 866 private Map<ExtraValueType, SpotExtraValueBatcher> spotExtraValueBatchers; … … 920 920 /** 921 921 Cache of already created position extra value batchers. 922 @see #getPositionExtraValueBatcher(Class, ExtraValueType )922 @see #getPositionExtraValueBatcher(Class, ExtraValueType, Job) 923 923 */ 924 924 private Map<ExtraValueType, PositionExtraValueBatcher> positionExtraValueBatchers; -
trunk/src/core/net/sf/basedb/core/Coloring.java
r2733 r2981 31 31 This class keeps coloring information for items which can be colored when values 32 32 are displayed in a client application. Color values are calculated by a 33 {@link ColorGenerator} based on this coloring information and the colors33 {@link net.sf.basedb.util.ColorGenerator} based on this coloring information and the colors 34 34 specified by user settings. 35 35 … … 164 164 Set the value that represents the minimum value. All values below this will get 165 165 the same color. 166 @return The min value167 166 */ 168 167 public void setMinValue(Float minValue) … … 204 203 Set the value that represents the maximum value. All values above this will get 205 204 the same color. 206 @return The max value207 205 */ 208 206 public void setMaxValue(Float maxValue) -
trunk/src/core/net/sf/basedb/core/DiskUsageStatistics.java
r2927 r2981 267 267 /** 268 268 Check if this summary object is old by comparing it's 269 age to the {@link DiskUsageStatics#getMaxAge()}.269 age to the {@link #getMaxAge()}. 270 270 @return TRUE if the summary is old, FALSE otherwise 271 271 */ -
trunk/src/core/net/sf/basedb/core/DynamicRawDataQuery.java
r2726 r2981 52 52 53 53 /** 54 Create a new dynamic query for raw data. 55 56 @param rawDataType The type of raw data 54 Create a new dynamic query for raw data. 55 @param rawBioAssay The raw bioassay to query on 57 56 */ 58 57 DynamicRawDataQuery(RawBioAssay rawBioAssay) -
trunk/src/core/net/sf/basedb/core/ExtraValueType.java
r2898 r2981 41 41 @version 2.0 42 42 @see ExtraValue 43 @see BioAssaySet#getSpotExtraValueBatcher(Class, ExtraValueType )44 @see BioAssaySet#getPositionExtraValueBatcher(Class, ExtraValueType )43 @see BioAssaySet#getSpotExtraValueBatcher(Class, ExtraValueType, Job) 44 @see BioAssaySet#getPositionExtraValueBatcher(Class, ExtraValueType, Job) 45 45 @base.modified $Date$ 46 46 */ -
trunk/src/core/net/sf/basedb/core/ItemContext.java
r2942 r2981 1120 1120 1121 1121 <li>$: The rest of the string is a raw data property name. We use 1122 the {@link Dynamic#rawData(String)} to create the expression. The 1123 {@link DynamicJoins#joinRawData} flag is set to true. 1122 the {@link Dynamic#rawData(String)} to create the expression. 1124 1123 1125 1124 <li>@: The rest of the string is a reporter property name. We use 1126 1125 the {@link Dynamic#reporter(String)} to create the expression. 1127 The {@link DynamicJoins#joinReporters} flag is set to true.1128 1126 1129 1127 <li>#: The rest of the string is the id of an extra value. … … 1146 1144 @param dc A DbControl to use if the database needs to be accessed 1147 1145 @param propertyDef The string to use for creating the expression. 1148 @param joins Holds flags so we know what must be joined when this1149 method returns1150 1146 @return An expression object 1151 1147 */ … … 1203 1199 1204 1200 /** 1205 Same as {@link #getDynamicExpression( String, DynamicJoins)} but generates1201 Same as {@link #getDynamicExpression(DbControl, String)} but generates 1206 1202 a select object instead. 1207 1203 */ -
trunk/src/core/net/sf/basedb/core/Job.java
r2898 r2981 630 630 Register the job as completed with an error. 631 631 632 @param statusMessage A message 633 @param t The exception that caused the job to fail 632 @param statusMessage A short message describing the error 633 @param errors A list of one or more errors that caused the job to fail, the 634 complete stack trace for those errors are stored in the {@link #getStackTrace()} 635 property 634 636 @throws PermissionDeniedException If the logged in user doesn't have 635 637 write permission -
trunk/src/core/net/sf/basedb/core/JobAgentSettings.java
r2648 r2981 121 121 @param plugin The plugin to retreive settings for, null is not allowed 122 122 @return An {@link ItemQuery} object 123 @see PluginDefintion#getJobAgentSettings()124 123 */ 125 124 static ItemQuery<JobAgentSettings> getQuery(PluginDefinition plugin) … … 294 293 the max memory returned by the plugin definition should be used. 295 294 @return The maximum amount of memory or null 296 @see PluginDefinition#getMaxMemory() ()297 @see #getEffectiveMaxMemory() ()295 @see PluginDefinition#getMaxMemory() 296 @see #getEffectiveMaxMemory() 298 297 */ 299 298 public Long getMaxMemory() … … 307 306 plugin definition is returned. 308 307 @return The maximum memory or null if no maximum has been specified 309 @see PluginDefinition#getMaxMemory() ()310 @see #getMaxMemory() ()308 @see PluginDefinition#getMaxMemory() 309 @see #getMaxMemory() 311 310 */ 312 311 public Long getEffectiveMaxMemory() -
trunk/src/core/net/sf/basedb/core/Keyring.java
r2722 r2981 613 613 614 614 /** 615 Load all {@link Plugin DefinitionKeys}:s for the active plugin.615 Load all {@link PluginKeys}:s for the active plugin. 616 616 @param session The session to get the query through. 617 617 @throws BaseException If there is an error. -
trunk/src/core/net/sf/basedb/core/LabeledExtract.java
r2898 r2981 163 163 Get all: 164 164 <ul> 165 <li>{@link Hybrid zation}:s created from this labeled extract165 <li>{@link Hybridization}:s created from this labeled extract 166 166 <ul> 167 167 @since 2.2 -
trunk/src/core/net/sf/basedb/core/Path.java
r2854 r2981 81 81 {@link #INVALID_CHARACTERS} charactes with the specified string. 82 82 83 @param or ginalName The original name83 @param originalName The original name 84 84 @param replaceWith The string to replace all unsafe characters with 85 @return86 85 @since 2.2 87 86 */ -
trunk/src/core/net/sf/basedb/core/PluginDefinition.java
r2898 r2981 450 450 @base.internal 451 451 This value is initialised upon installation to: plugin.about().getName() 452 See: {@link #loadPluginInformation(String, String )}452 See: {@link #loadPluginInformation(String, String, boolean)} 453 453 @throws InvalidDataException If the name is null or too long 454 454 */ … … 482 482 @base.internal 483 483 This value is initialised upon installation to: plugin.about().getDescription() 484 See: {@link #loadPluginInformation(String, String )}484 See: {@link #loadPluginInformation(String, String, boolean)} 485 485 @throws InvalidDataException If the description is too long 486 486 */ … … 504 504 @base.internal 505 505 This value is initialised upon installation to: plugin.about().getVersion() 506 See: {@link #loadPluginInformation(String, String )}506 See: {@link #loadPluginInformation(String, String, boolean)} 507 507 @throws InvalidDataException If the version is too long 508 508 */ … … 526 526 @base.internal 527 527 This value is initialised upon installation to: plugin.about().getCopyright() 528 See: {@link #loadPluginInformation(String, String )}528 See: {@link #loadPluginInformation(String, String, boolean)} 529 529 @throws InvalidDataException If the copyright is too long 530 530 */ … … 548 548 @base.internal 549 549 This value is initialised upon installation to: plugin.about().getContact() 550 See: {@link #loadPluginInformation(String, String )}550 See: {@link #loadPluginInformation(String, String, boolean)} 551 551 @throws InvalidDataException If the contact is too long 552 552 */ … … 570 570 @base.internal 571 571 This value is initialised upon installation to: plugin.about().getEmail() 572 See: {@link #loadPluginInformation(String, String )}572 See: {@link #loadPluginInformation(String, String, boolean)} 573 573 @throws InvalidDataException If the email is too long 574 574 */ … … 592 592 @base.internal 593 593 This value is initialised upon installation to: plugin.about().getUrl() 594 See: {@link #loadPluginInformation(String, String )}594 See: {@link #loadPluginInformation(String, String, boolean)} 595 595 @throws InvalidDataException If the url is too long 596 596 */ … … 664 664 @base.internal 665 665 This value is initialised upon installation to: plugin.getMainType() 666 See: {@link #loadPluginInformation(String, String )}666 See: {@link #loadPluginInformation(String, String, boolean)} 667 667 668 668 @throws InvalidDataException If the type is null … … 728 728 To be sure that the plugin will execute under certain permissions 729 729 this should be set to TRUE. 730 @see #setPermissions(RoleKey, Set, boolean)730 @see #setPermissions(RoleKey, Set, Set) 731 731 */ 732 732 public boolean getUsePermissions() … … 989 989 permissions which differs from the defaults are stored in the database. 990 990 991 @param role key The rolekey for this plugin991 @param roleKey The rolekey for this plugin 992 992 @param granted The permission to grant to the plugin 993 993 @param denied The permissions to deny the plugin -
trunk/src/core/net/sf/basedb/core/PluginRequest.java
r2854 r2981 255 255 /** 256 256 Get the job for the request or null if we are not configuring/executing a job. 257 @return258 257 @since 2.2 259 258 */ -
trunk/src/core/net/sf/basedb/core/PositionExtraValueBatcher.java
r2669 r2981 83 83 @author Nicklas 84 84 @version 2.0 85 @see BioAssaySet#getPositionExtraValueBatcher(Class, ExtraValueType )85 @see BioAssaySet#getPositionExtraValueBatcher(Class, ExtraValueType, Job) 86 86 @base.modified $Date$ 87 87 */ -
trunk/src/core/net/sf/basedb/core/SpotExtraValueBatcher.java
r2669 r2981 75 75 @author Nicklas 76 76 @version 2.0 77 @see BioAssaySet#getSpotExtraValueBatcher(Class, ExtraValueType )77 @see BioAssaySet#getSpotExtraValueBatcher(Class, ExtraValueType, Job) 78 78 @base.modified $Date$ 79 79 */ -
trunk/src/core/net/sf/basedb/core/Update.java
r2941 r2981 163 163 <td> 164 164 <ul> 165 <li>Fixed incorrect {@link PlateMapping s}:s. The 96-to-384 and 384-to-1536 were165 <li>Fixed incorrect {@link PlateMapping}:s. The 96-to-384 and 384-to-1536 were 166 166 wrong. The fix renames and flags the old ones as removed. 167 167 </ul> … … 185 185 <ul> 186 186 <li>Added {@link net.sf.basedb.core.data.PluginPermission} and related classes. 187 The update sets the {@link net.sf.basedb.core.data.PluginDefinitionData# usePermissions}187 The update sets the {@link net.sf.basedb.core.data.PluginDefinitionData#getUsePermissions()} 188 188 property to true for all existing plugins. 189 189 </ul> … … 272 272 <td> 273 273 <ul> 274 <li>Added {@link net.sf.basedb.core.data.ProtocolData#getParameters() ()}274 <li>Added {@link net.sf.basedb.core.data.ProtocolData#getParameters()} 275 275 <li>Added {@link net.sf.basedb.core.data.AnnotationTypeData#isProtocolParameter()} 276 276 </ul> … … 715 715 716 716 /** 717 Load all plugins and call {@link PluginDefinition#loadPluginInformation(String, String )}717 Load all plugins and call {@link PluginDefinition#loadPluginInformation(String, String, boolean)} 718 718 for each one so that the {@link PluginDefinition#supportsConfigurations()} and 719 719 {@link PluginDefinition#requiresConfiguration()} return correct values. -
trunk/src/core/net/sf/basedb/core/data/JobAgentData.java
r2962 r2981 100 100 The plugins that can be executed by this job agent. This is the 101 101 inverse end. 102 @see JobAgent PluginDate#getJobAgent()102 @see JobAgentSettingsData#getJobAgent() 103 103 @hibernate.map lazy="true" cascade="delete" inverse="true" 104 104 @hibernate.collection-key column="`jobagent_id`" -
trunk/src/core/net/sf/basedb/core/plugin/AbstractExporterPlugin.java
r2868 r2981 55 55 This class doesn't override any methods of the {@link InteractivePlugin} 56 56 interface. It is your responsibility to ask for the correct parameters 57 and save them to the job. See the {@link HelpExporter} implementation for58 example code.57 and save them to the job. See the {@link net.sf.basedb.plugins.HelpExporter} 58 implementation forexample code. 59 59 60 60 @author nicklas … … 198 198 Called just before the export starts. A subclass may override 199 199 this method if it needs to initialise some resources. 200 @param DbControlThe DbControl that is used to write to the database.200 @param dc The DbControl that is used to write to the database. 201 201 A subclass may use this read from the database as well 202 202 @see #end(boolean) … … 237 237 238 238 /** 239 Parameter name for the {@link #getSaveAsParameter(String, String, String )}239 Parameter name for the {@link #getSaveAsParameter(String, String, String, boolean)} 240 240 parameter. 241 241 */ -
trunk/src/core/net/sf/basedb/core/plugin/ExportOutputStream.java
r2854 r2981 36 36 suitable for the type of download. For example the {@link 37 37 net.sf.basedb.clients.web.util.ServletExportOutputStream} implements direct download 38 from web clients and the {@link net.sf.based .util.FileExportOutputStream} implements38 from web clients and the {@link net.sf.basedb.util.FileExportOutputStream} implements 39 39 direct download to the BASE file system. 40 40 -
trunk/src/core/net/sf/basedb/core/plugin/ImmediateDownloadExporter.java
r2854 r2981 25 25 26 26 import java.io.IOException; 27 import java.io.OutputStream;28 27 28 import net.sf.basedb.core.Job; 29 29 import net.sf.basedb.core.ProgressReporter; 30 30 … … 37 37 {@link InteractivePlugin#configure(GuiContext, Request, Response)}. 38 38 When the configuration is complete the plugin may respond with 39 a {@link Response#set ExportImmediately()} instead of a {@link40 Response#setDone(String, Job.ExecutionTime)}. This will prevent the39 a {@link Response#setDownloadImmediately(String, Job.ExecutionTime, boolean)} 40 instead of a {@link Response#setDone(String, Job.ExecutionTime)}. This will prevent the 41 41 core from saving a job in the job queue. Instead it will call the 42 {@link #doExport( OutputStream, ExportInfo)} method to let the plugin42 {@link #doExport(ExportOutputStream, ProgressReporter)} method to let the plugin 43 43 generate it's output. The {@link Plugin#run(Request, Response, ProgressReporter)} 44 44 method is never called. -
trunk/src/core/net/sf/basedb/core/plugin/Request.java
r2854 r2981 26 26 import java.util.List; 27 27 28 import net.sf.basedb.core.Job; 28 29 import net.sf.basedb.core.ParameterException; 29 30 import net.sf.basedb.core.ProgressReporter; -
trunk/src/core/net/sf/basedb/core/plugin/Response.java
r2854 r2981 26 26 import net.sf.basedb.core.PermissionDeniedException; 27 27 import net.sf.basedb.core.Job; 28 import net.sf.basedb.core.ProgressReporter; 28 29 29 30 import java.util.List; -
trunk/src/core/net/sf/basedb/core/query/AutoJoiner.java
r2669 r2981 27 27 An <code>AutoJoiner</code> is an object that automatically joins 28 28 other tables in query depending on other query elements. For example, 29 if we use the {@link Dynamic#select( ExtraValue, String)} to select30 an extra value, the {@link net.sf.basedb.core. SpotQueryExtraValueJoiner}29 if we use the {@link Dynamic#select(net.sf.basedb.core.ExtraValue, String)} to select 30 an extra value, the {@link net.sf.basedb.core.DynamicSpotQueryJoiners} 31 31 makes sure that the table containing the extra values is joined to the 32 32 query by calling the 33 {@link net.sf.basedb.core.DynamicSpotQuery#joinExtraValue( ExtraValue, JoinType)}33 {@link net.sf.basedb.core.DynamicSpotQuery#joinExtraValue(net.sf.basedb.core.ExtraValue, JoinType)} 34 34 method. 35 35 <p> -
trunk/src/core/net/sf/basedb/core/query/ReporterListExpression.java
r2669 r2981 54 54 55 55 /** 56 Create a new expression for the specified extra value. It is assumed 57 that the extra value has been joined before it is used in an expression. 58 @param extraValue The extra value 59 @see net.sf.basedb.core.ExtraValueJoin 60 @see net.sf.basedb.core.query.Dynamic#extraValue(ExtraValue) 56 Create a new expression for the specified reporter list. 57 58 @param reporterList The reporter list 59 @param tableColumn The name of the column we should select 60 @param autoJoinType If an automatic join is done use this type, the join 61 type depends on if we are checking if a reporter is part of or not part 62 of a reporter list 63 @see net.sf.basedb.core.query.Dynamic#isPartOf(ReporterList) 64 @see net.sf.basedb.core.query.Dynamic#isNotPartOf(ReporterList) 65 @see net.sf.basedb.core.query.Dynamic#score(ReporterList) 61 66 */ 62 67 ReporterListExpression(ReporterList reporterList, String tableColumn, JoinType autoJoinType) -
trunk/src/core/net/sf/basedb/util/BioAssaySetFilterUtil.java
r2778 r2981 62 62 Create a filtered bioassay set from a parent bioassay set using 63 63 a simple restriction. The filtering is done by the 64 {@link FilterBatcher#insert( AbstractSqlQuery)} which is very fast since65 most of the work is done by the database.64 {@link FilterBatcher#insert(net.sf.basedb.core.AbstractSqlQuery)} which is 65 very fast since most of the work is done by the database. 66 66 <p> 67 67 The calling code mustn't forget to commit the transaction. -
trunk/src/core/net/sf/basedb/util/BioAssaySetUtil.java
r2942 r2981 99 99 Find the values of parent properties for a given bioassay. This method 100 100 starts by loading all raw bioassays that are parents to the bioassay. 101 For each raw bioassay it uses the {@link Metadata#getPropertyValue(DbControl, C, String)}101 For each raw bioassay it uses the {@link Metadata#getPropertyValue(DbControl, Object, String)} 102 102 method to find the value of the given property for that raw bioassay. 103 103 <p> … … 137 137 Parse a JEP expression and create a restrictions that is suitable to 138 138 be used in a dynamic query. In addition to the standard functions defined 139 by JEP (see {@link Jep#getFunctions() ) this method defines the following functions:139 by JEP (see {@link Jep#getFunctions()}) this method defines the following functions: 140 140 <ul> 141 <li>all functions defined by the {@link #createJepExpression(DbControl, String)} method 141 <li>all functions defined by the {@link #createJepExpression(DbControl, BioAssaySet, String)} 142 method 142 143 <li>inList(list): Checks if the reporter is included in the specified list 143 144 <li>notInList(list): Checks if the reporter isn't included in the specified list … … 163 164 Parse a JEP expression and create a restrictions that is suitable to 164 165 be used in a dynamic query. In addition to the standard functions defined 165 by JEP (see {@link Jep#getFunctions() ) this method defines the following functions:166 by JEP (see {@link Jep#getFunctions()}) this method defines the following functions: 166 167 <ul> 167 168 <li>raw(property): The value of the specified raw data property 168 169 <li>rep(property): The value of the specified reporter property 169 170 <li>ch(n): The intensity in channel n 170 <li>score(list): The score of the {@link Reporter} in the specified {@link ReporterList}171 (numeric or external ID)172 <li>xtra(extraValue): The value of the specified {@link ExtraValue} (numeric ID or the external173 ID of the {@linkExtraValueType})171 <li>score(list): The score of the {@link net.sf.basedb.core.data.ReporterData} in the 172 specified {@link net.sf.basedb.core.ReporterList} (numeric or external ID) 173 <li>xtra(extraValue): The value of the specified {@link net.sf.basedb.core.ExtraValue} 174 (numeric ID or the external ID of the {@link net.sf.basedb.core.ExtraValueType}) 174 175 </ul> 175 176 @see net.sf.basedb.util.jep.Jep -
trunk/src/core/net/sf/basedb/util/DynamicFilter.java
r2601 r2981 32 32 33 33 import java.sql.SQLException; 34 import java.util.List; 34 35 35 36 /** … … 37 38 class to help a plugin filter the data of a bioassay set. A plugin 38 39 must supply an implementation of this interface to be able to use the 39 {@link BioAssaySetFilterUtil#createFilteredBioAssaySet(DbControl, BioAssaySet, Job, DynamicFilter, ProgressReporter)} 40 {@link BioAssaySetFilterUtil#createFilteredBioAssaySet(DbControl, BioAssaySet, 41 List, Job, DynamicFilter, ProgressReporter)} 40 42 method. 41 43 -
trunk/src/core/net/sf/basedb/util/Values.java
r2942 r2981 680 680 /** 681 681 Parses a string containing the number of bytes formatted as 682 the {@link #formatBytes( long)} method.682 the {@link #formatBytes(Long)} method. 683 683 @param fBytes The string containing the value to parse 684 684 @param defaultValue This value is returned if the string cannot be parsed -
trunk/src/core/net/sf/basedb/util/jep/ChannelFunction.java
r2669 r2981 25 25 26 26 import net.sf.basedb.core.BaseException; 27 import net.sf.basedb.core.BioAssaySet; 28 import net.sf.basedb.core.DbControl; 27 29 import net.sf.basedb.core.VirtualColumn; 28 30 import net.sf.basedb.core.query.Dynamic; 29 31 import net.sf.basedb.core.query.Expression; 30 32 import net.sf.basedb.core.query.SqlResult; 33 import net.sf.basedb.util.BioAssaySetUtil; 31 34 32 35 import java.sql.SQLException; -
trunk/src/core/net/sf/basedb/util/jep/ExtraValueFunction.java
r2669 r2981 32 32 import net.sf.basedb.core.query.Expression; 33 33 import net.sf.basedb.core.query.SqlResult; 34 import net.sf.basedb.util.BioAssaySetUtil; 34 35 import net.sf.basedb.util.Values; 35 36 -
trunk/src/core/net/sf/basedb/util/jep/InReporterListFunction.java
r2876 r2981 25 25 26 26 import net.sf.basedb.core.BaseException; 27 import net.sf.basedb.core.BioAssaySet; 27 28 import net.sf.basedb.core.DbControl; 28 29 import net.sf.basedb.core.ReporterList; … … 30 31 import net.sf.basedb.core.query.Restriction; 31 32 import net.sf.basedb.core.query.SqlResult; 33 import net.sf.basedb.util.BioAssaySetUtil; 32 34 33 35 import java.util.Stack; -
trunk/src/core/net/sf/basedb/util/jep/MeanFunction.java
r2726 r2981 119 119 */ 120 120 /** 121 Use the {@link Expression#aFloat(mean)} method to create an121 Use the {@link Dynamic#meanRawData(String)} method to create an 122 122 expression for the mean of the given raw data property. 123 123 */ -
trunk/src/core/net/sf/basedb/util/jep/NotInReporterListFunction.java
r2876 r2981 25 25 26 26 import net.sf.basedb.core.BaseException; 27 import net.sf.basedb.core.BioAssaySet; 27 28 import net.sf.basedb.core.DbControl; 28 29 import net.sf.basedb.core.ReporterList; … … 30 31 import net.sf.basedb.core.query.Restriction; 31 32 import net.sf.basedb.core.query.SqlResult; 33 import net.sf.basedb.util.BioAssaySetUtil; 32 34 33 35 import java.util.Stack; -
trunk/src/core/net/sf/basedb/util/jep/RawFunction.java
r2669 r2981 25 25 26 26 import net.sf.basedb.core.BaseException; 27 import net.sf.basedb.core.BioAssaySet; 27 28 import net.sf.basedb.core.RawDataType; 28 29 import net.sf.basedb.core.DbControl; … … 31 32 import net.sf.basedb.core.query.Dynamic; 32 33 import net.sf.basedb.core.query.Expression; 34 import net.sf.basedb.util.BioAssaySetUtil; 33 35 34 36 import java.util.Stack; -
trunk/src/core/net/sf/basedb/util/jep/ReporterFunction.java
r2669 r2981 25 25 26 26 import net.sf.basedb.core.BaseException; 27 import net.sf.basedb.core.BioAssaySet; 27 28 import net.sf.basedb.core.RawDataType; 28 29 import net.sf.basedb.core.DbControl; … … 31 32 import net.sf.basedb.core.query.Dynamic; 32 33 import net.sf.basedb.core.query.Expression; 34 import net.sf.basedb.util.BioAssaySetUtil; 33 35 34 36 import java.util.Stack; -
trunk/src/core/net/sf/basedb/util/jep/ScoreFunction.java
r2669 r2981 25 25 26 26 import net.sf.basedb.core.BaseException; 27 import net.sf.basedb.core.BioAssaySet; 27 28 import net.sf.basedb.core.DbControl; 28 29 import net.sf.basedb.core.ReporterList; … … 30 31 import net.sf.basedb.core.query.Expression; 31 32 import net.sf.basedb.core.query.SqlResult; 33 import net.sf.basedb.util.BioAssaySetUtil; 32 34 33 35 import java.sql.SQLException; -
trunk/src/core/net/sf/basedb/util/jobagent/JobAgentInfo.java
r2634 r2981 40 40 @author nicklas 41 41 @version 2.0 42 @see JobAgentConnection#getInfo( )42 @see JobAgentConnection#getInfo(boolean) 43 43 @base.modified $Date$ 44 44 */ -
trunk/src/core/net/sf/basedb/util/jobagent/JobAgentServerConnection.java
r2641 r2981 71 71 Start listening for incoming connections. This method starts a new listener 72 72 thread that answers incoming requests. For each request a new thread 73 is created and control is passed on to the {@ ?ink RequestHandler}. If a listener73 is created and control is passed on to the {@link RequestHandler}. If a listener 74 74 has already been create thi method does nothing. 75 75 @throws IOException If there is an error -
trunk/src/core/net/sf/basedb/util/jobagent/RequestHandler.java
r2634 r2981 26 26 import java.net.Socket; 27 27 28 import org.apache.log4j.Logger; 29 30 28 31 /** 29 32 A request handler object takes care of an incoming request from a … … 33 36 @author nicklas 34 37 @version 2.0 35 @see JobAgentServerConnection (int, RequestHandler)38 @see JobAgentServerConnection#JobAgentServerConnection(int, RequestHandler, Logger) 36 39 @base.modified $Date$ 37 40 */ -
trunk/src/core/net/sf/basedb/util/zip/AbstractFileUnpacker.java
r2722 r2981 288 288 The name of the parameter that asks for the directory where the 289 289 unpacked files are stored. 290 @see #getZipFileParameter(String, String , String)290 @see #getZipFileParameter(String, String) 291 291 */ 292 292 protected static final String UNPACK_DIRECTORY = "unpackDirectory"; … … 330 330 The name of the parameter that asks if existing files should be 331 331 overwritten or not. 332 @see #getOverwriteParameter(String, String , String)332 @see #getOverwriteParameter(String, String) 333 333 */ 334 334 protected static final String OVERWRITE = "overwrite"; -
trunk/src/core/net/sf/basedb/util/zip/FileUnpacker.java
r2691 r2981 57 57 Get the name of the compressed file format this unpacker supports. 58 58 For example: ZIP files 59 @return60 59 */ 61 60 public String getFormatName(); -
trunk/src/core/net/sf/basedb/util/zip/ZipUnpacker.java
r2691 r2981 76 76 @param overwrite If existing files should be overwritten or ignored 77 77 @param progress An optional progress reporter for displaying progress 78 @param zipSize The total size of the zip file, or 0 if not known79 78 @return The number of files unpacked 80 79 @throws IOException If there is an error when unpacking the zip file -
trunk/src/plugins/core/net/sf/basedb/plugins/AbstractFlatFileImporter.java
r2803 r2981 711 711 a mapper, if the map expression isn't null. If a max string length has been 712 712 specified the created mapper is wrapped by a {@link CropStringMapper} 713 that crops strings returned by the {@link Mapper#getValue( Data)} method713 that crops strings returned by the {@link Mapper#getValue(FlatFileParser.Data)} method 714 714 to the specified length. 715 715 -
trunk/src/plugins/core/net/sf/basedb/plugins/FormulaFilter.java
r2872 r2981 37 37 import net.sf.basedb.core.Permission; 38 38 import net.sf.basedb.core.PluginParameter; 39 import net.sf.basedb.core.RawDataType;40 39 import net.sf.basedb.core.RequestInformation; 41 40 import net.sf.basedb.core.StringParameterType; -
trunk/src/test/net/sf/basedb/test/roles/PowerUserTest.java
r2938 r2981 66 66 by the root user. 67 67 <ol> 68 <li>Create a project {@link #createProject(DbControl )} and activate it69 <li>Create several protocols: {@link #createPro ject(DbControl)}68 <li>Create a project {@link #createProject(DbControl, String)} and activate it 69 <li>Create several protocols: {@link #createProtocol(DbControl, String, String)} 70 70 <li>Create hardware: {@link #createHardware(DbControl, String, String)} 71 71 <li>Create software: {@link #createSoftware(DbControl, String, String)} 72 <li>Create annotation types: {@link #createAnnotationType(DbControl, String, Type, Object[], Item[]) 72 <li>Create annotation types: {@link #createAnnotationType(DbControl, String, Type, Object[], Item[])} 73 73 <li>Create plate type: {@link #createPlateType(DbControl, String, int, int)} 74 74 <li>Create file formats for import:
Note: See TracChangeset
for help on using the changeset viewer.