636 |
19 Mar 08 |
nicklas |
== Requirements == |
636 |
19 Mar 08 |
nicklas |
2 |
|
4240 |
15 Nov 16 |
nicklas |
1. BASE 3.10 or later. |
636 |
19 Mar 08 |
nicklas |
4 |
|
636 |
19 Mar 08 |
nicklas |
== Introduction == |
636 |
19 Mar 08 |
nicklas |
6 |
|
683 |
30 Apr 08 |
nicklas |
This package contains a few simple variants of ''Hello world'' applications |
683 |
30 Apr 08 |
nicklas |
in the form of extensions to the BASE web client. The package installs |
683 |
30 Apr 08 |
nicklas |
several examples into the ''Extensions -> Hello world examples'' menu: |
636 |
19 Mar 08 |
nicklas |
10 |
|
683 |
30 Apr 08 |
nicklas |
* Hello world! - A basic example using only javascript |
683 |
30 Apr 08 |
nicklas |
* Hello factory world! - An example that uses a custom action factory |
683 |
30 Apr 08 |
nicklas |
* Greetings Root! - An example of a custom action factory with parameters |
683 |
30 Apr 08 |
nicklas |
* Hello JSP world! - Uses a JSP file to display the message instead of javascript |
683 |
30 Apr 08 |
nicklas |
* Hello X-JSP world! - Another variant of a JSP file |
683 |
30 Apr 08 |
nicklas |
* Hello Servlet world! - Uses a servlet to generate the message |
1150 |
31 Aug 09 |
nicklas |
* Hello Servlet world (alternate)! - Uses an alternative servlet path |
636 |
19 Mar 08 |
nicklas |
18 |
|
1019 |
03 Apr 09 |
nicklas |
There are also a few toolbar button extensions: |
1019 |
03 Apr 09 |
nicklas |
20 |
|
1019 |
03 Apr 09 |
nicklas |
* More info - A toolbar button on all single-item toolbars and |
1019 |
03 Apr 09 |
nicklas |
displays some information in a popup window about the current item. |
1019 |
03 Apr 09 |
nicklas |
* Annotation filter - A toolbar button on all list pages for annotatable |
1019 |
03 Apr 09 |
nicklas |
items which allows a user to show only items with/without annotations. |
1019 |
03 Apr 09 |
nicklas |
25 |
|
1269 |
11 Nov 10 |
nicklas |
And a edit/save extension: |
1269 |
11 Nov 10 |
nicklas |
27 |
|
1269 |
11 Nov 10 |
nicklas |
* Sample history data - Two extensions that works together. The first adds |
1269 |
11 Nov 10 |
nicklas |
a tab to the "Edit sample" dialog were the user can select a file to link |
1269 |
11 Nov 10 |
nicklas |
with the sample. The second extensions attaches to the save event and |
1269 |
11 Nov 10 |
nicklas |
saves the link. |
1271 |
16 Nov 10 |
nicklas |
* Last updated by - An on-save extension that creates an any-to-any link |
1271 |
16 Nov 10 |
nicklas |
between any item and the currently logged in user. This is a very simple |
1271 |
16 Nov 10 |
nicklas |
logging feature that stores information about the last update to an item. |
1269 |
11 Nov 10 |
nicklas |
35 |
|
1596 |
28 Mar 12 |
nicklas |
And some extra list columns: |
1596 |
28 Mar 12 |
nicklas |
37 |
|
1596 |
28 Mar 12 |
nicklas |
* Owner registration date - Adds a list column that display the registration |
1596 |
28 Mar 12 |
nicklas |
date of the owner of the item. The column is added to all list pages that |
1596 |
28 Mar 12 |
nicklas |
list items that have an owner. |
1596 |
28 Mar 12 |
nicklas |
* Onwer email - Adds a list column that display the email address of the |
1596 |
28 Mar 12 |
nicklas |
owner of the item. This uses a custom formatter to create mailto links |
1596 |
28 Mar 12 |
nicklas |
on the web page and a formatter that convert to upper case when exporting. |
1596 |
28 Mar 12 |
nicklas |
The column is added to all list pages that list items that have an owner. |
1596 |
28 Mar 12 |
nicklas |
* Data files - Adds a column to the raw bioassay list that display the |
1596 |
28 Mar 12 |
nicklas |
data files that are attached to each raw bioassay. This uses a custom |
1596 |
28 Mar 12 |
nicklas |
action factory and illustrates the possibility to create fullblown HTML |
1596 |
28 Mar 12 |
nicklas |
for the web page, and a text-only variant for the table exporter. |
1596 |
28 Mar 12 |
nicklas |
49 |
|
1604 |
18 Apr 12 |
nicklas |
Item overview extensions: |
1604 |
18 Apr 12 |
nicklas |
51 |
|
1611 |
23 Apr 12 |
nicklas |
* Loader that add the owner of an item to the overview. |
1611 |
23 Apr 12 |
nicklas |
* Validator that check that the owner has an URL and that it is valid. |
1611 |
23 Apr 12 |
nicklas |
* Loader that load the role membership of users. |
1611 |
23 Apr 12 |
nicklas |
* Validator that check that a user is a member of at least one role. |
1611 |
23 Apr 12 |
nicklas |
* A extra information section which display some information about the |
1611 |
23 Apr 12 |
nicklas |
currently selected node and item. |
1604 |
18 Apr 12 |
nicklas |
58 |
|
1711 |
07 Aug 12 |
nicklas |
Logging extensions: |
1711 |
07 Aug 12 |
nicklas |
60 |
|
1711 |
07 Aug 12 |
nicklas |
* A logging extension that write information about created, updated and |
1711 |
07 Aug 12 |
nicklas |
deleted items to stdout. The logger is based on the default database |
1711 |
07 Aug 12 |
nicklas |
logger. |
1711 |
07 Aug 12 |
nicklas |
64 |
|
4239 |
15 Nov 16 |
nicklas |
A custom extension point: |
4239 |
15 Nov 16 |
nicklas |
66 |
|
4239 |
15 Nov 16 |
nicklas |
* A simple example of defining a custom extension point. There is |
4239 |
15 Nov 16 |
nicklas |
one implementation provided in this package, but the main purpose |
4239 |
15 Nov 16 |
nicklas |
of the extension point is to make it easier for other extensions to |
4239 |
15 Nov 16 |
nicklas |
test and implement custom extension points. |
4239 |
15 Nov 16 |
nicklas |
71 |
|
1347 |
18 Apr 11 |
nicklas |
This package contains the following plug-ins: |
1347 |
18 Apr 11 |
nicklas |
73 |
|
1347 |
18 Apr 11 |
nicklas |
* An importer that pretends to be able to import samples. It will |
1347 |
18 Apr 11 |
nicklas |
accept any file, but doesn't do anything. Main purpose is to |
1347 |
18 Apr 11 |
nicklas |
show parameter handling with plug-ins. |
1347 |
18 Apr 11 |
nicklas |
* An analyser plug-in that does some bogus calculations on a |
1347 |
18 Apr 11 |
nicklas |
bioassay set. Main purpose is to show how a plug-in can access |
1347 |
18 Apr 11 |
nicklas |
analysed data, do some calculations and store the result as |
1347 |
18 Apr 11 |
nicklas |
a new bioassay set. |
1347 |
18 Apr 11 |
nicklas |
81 |
|
1347 |
18 Apr 11 |
nicklas |
82 |
|
636 |
19 Mar 08 |
nicklas |
== Installation == |
636 |
19 Mar 08 |
nicklas |
84 |
|
1392 |
15 Sep 11 |
nicklas |
1. Download the base-examples-*.tar.gz file. |
1392 |
15 Sep 11 |
nicklas |
2. Unpack the downloaded file to a directory of your choice. |
1392 |
15 Sep 11 |
nicklas |
3. Copy the 'base-examples.jar' file to your BASE plug-ins directory |
1392 |
15 Sep 11 |
nicklas |
as configured in the base.config[plugins.dir] setting. |
1392 |
15 Sep 11 |
nicklas |
4. Go to 'Administrate->Plug-ins & Extensions->Overview' page. |
1392 |
15 Sep 11 |
nicklas |
5. Run the installation wizard and select to install 'base-examples.jar'. |
1392 |
15 Sep 11 |
nicklas |
6. The ''Hello X-JSP world'' example requires that the X-JSP compiler is installed |
683 |
30 Apr 08 |
nicklas |
on the server. Read in the documentation how to do this. |
6306 |
11 Jun 21 |
nicklas |
https://base.thep.lu.se/chrome/site/latest/html/admin/plugins.installation.html |
1392 |
15 Sep 11 |
nicklas |
7. Done. You may have to use 'BASE->Reload permissions' from the menu to see the |
1392 |
15 Sep 11 |
nicklas |
'Extensions' menu. |
636 |
19 Mar 08 |
nicklas |
96 |
|
1392 |
15 Sep 11 |
nicklas |
97 |
|
636 |
19 Mar 08 |
nicklas |
== Compiling == |
636 |
19 Mar 08 |
nicklas |
99 |
|
636 |
19 Mar 08 |
nicklas |
To compile this package you also need: |
636 |
19 Mar 08 |
nicklas |
101 |
|
1433 |
02 Nov 11 |
nicklas |
1. Ant 1.8 |
4236 |
15 Nov 16 |
nicklas |
2. Java 1.8 |
636 |
19 Mar 08 |
nicklas |
104 |
|
636 |
19 Mar 08 |
nicklas |
Follow these instructions: |
636 |
19 Mar 08 |
nicklas |
106 |
|
691 |
12 May 08 |
nicklas |
1. Type `ant download-lib` to automatically download the BASE core JAR file that |
691 |
12 May 08 |
nicklas |
are neeed for compilation. You can also do this manually by copying the |
2287 |
13 Mar 14 |
nicklas |
base-core-3.x.jar and base-webclient-3.x.jar files from the BASE installation |
1346 |
18 Apr 11 |
nicklas |
directory (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory. |
636 |
19 Mar 08 |
nicklas |
111 |
|
1392 |
15 Sep 11 |
nicklas |
2. Type 'ant' to compile the code and generate the 'base-examples.jar' |
1094 |
28 May 09 |
nicklas |
file in the project directory. This file can be installed into BASE following |
1094 |
28 May 09 |
nicklas |
the intructions above. |
1094 |
28 May 09 |
nicklas |
115 |
|
1346 |
18 Apr 11 |
nicklas |
3. Use 'ant package' to create a downloadable tar.gz. |
1346 |
18 Apr 11 |
nicklas |
117 |
|
1346 |
18 Apr 11 |
nicklas |
4. If you create a file called 'build.properties' and enter a the path to the |
1346 |
18 Apr 11 |
nicklas |
plug-ins directory under the key 'base.plugins', you can simply type |
1346 |
18 Apr 11 |
nicklas |
'ant install' to copy the examples to the BASE plug-ins directory. |