Changeset 1596


Ignore:
Timestamp:
Mar 28, 2012, 2:02:00 PM (11 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #376: Create some example extensions that add list columns

Added three list column examples.

Location:
extensions/net.sf.basedb.examples/trunk
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.examples/trunk/.classpath

    r1537 r1596  
    55  <classpathentry kind="lib" path="lib/compile/jsp-api.jar"/>
    66  <classpathentry kind="lib" path="lib/compile/servlet-api.jar"/>
    7   <classpathentry kind="lib" path="lib/compile/base-core-3.1.0.jar"/>
    8   <classpathentry kind="lib" path="lib/compile/base-webclient-3.1.0.jar"/>
     7  <classpathentry kind="lib" path="lib/compile/base-core-3.2.0.jar"/>
     8  <classpathentry kind="lib" path="lib/compile/base-webclient-3.2.0.jar"/>
    99  <classpathentry kind="output" path="bin"/>
    1010</classpath>
  • extensions/net.sf.basedb.examples/trunk/META-INF/extensions.xml

    r1576 r1596  
    3030    </description>
    3131    <version>1.5-dev</version>
    32     <min-base-version>3.1.0</min-base-version>
     32    <min-base-version>3.2.0</min-base-version>
    3333    <copyright>BASE development team</copyright>
    3434    <url>http://baseplugins.thep.lu.se/wiki/net.sf.basedb.examples.extensions</url>
     
    400400  </extension>
    401401
     402  <extension
     403    id="list.owner-registration-date"
     404    extends="net.sf.basedb.clients.web.listcolumn.ownable"
     405    >
     406    <index>1</index>
     407    <about>
     408      <name>Owner registration date</name>
     409      <description>
     410        Add a column to the list page of all ownable items that display
     411        the registration date of the owner of the item.
     412      </description>
     413    </about>
     414    <action-factory>
     415      <factory-class>
     416        net.sf.basedb.clients.web.extensions.list.PropertyPathActionFactory
     417      </factory-class>
     418      <parameters>
     419        <id>owner.entryDate</id>
     420        <title>Owner registration date</title>
     421        <property>owner.entryDate</property>
     422        <valueType>DATE</valueType>
     423      </parameters>
     424    </action-factory>
     425  </extension>
     426 
     427  <extension
     428    id="list.owner-email"
     429    extends="net.sf.basedb.clients.web.listcolumn.ownable"
     430    >
     431    <index>2</index>
     432    <about>
     433      <name>Owner email</name>
     434      <description>
     435        Add a column to the list page of all ownable items that display
     436        the owner's email address.
     437      </description>
     438    </about>
     439    <action-factory>
     440      <factory-class>
     441        net.sf.basedb.clients.web.extensions.list.PropertyPathActionFactory
     442      </factory-class>
     443      <parameters>
     444        <id>owner.email</id>
     445        <title>Owner email</title>
     446        <property>owner.email</property>
     447        <valueType>STRING</valueType>
     448        <formatterClass>net.sf.basedb.clients.web.formatter.NiceFormatter</formatterClass>
     449        <exportFormatterClass>net.sf.basedb.examples.formatter.ToUpperCaseFormatter</exportFormatterClass>
     450      </parameters>
     451    </action-factory>
     452  </extension>
     453 
     454  <extension
     455    id="list.rawbioassay-data-files"
     456    extends="net.sf.basedb.clients.web.listcolumn.rawbioassay"
     457    >
     458    <index>10</index>
     459    <about>
     460      <name>Data files</name>
     461      <description>
     462        Adds a column to the rawbioassays list that display data files attached to
     463        each raw bioassay.
     464      </description>
     465    </about>
     466    <action-factory>
     467      <factory-class>
     468        net.sf.basedb.examples.extensions.list.DataFilesActionFactory
     469      </factory-class>
     470    </action-factory>
     471  </extension>
     472
     473
    402474</extensions>
  • extensions/net.sf.basedb.examples/trunk/README

    r1537 r1596  
    11== Requirements ==
    22
    3  1. BASE 3.1 or later.
     3 1. BASE 3.2 or later.
    44 
    55== Introduction ==
     
    3333   between any item and the currently logged in user. This is a very simple
    3434   logging feature that stores information about the last update to an item.
     35
     36And some extra list columns:
     37
     38 * Owner registration date - Adds a list column that display the registration
     39   date of the owner of the item. The column is added to all list pages that
     40   list items that have an owner.
     41 * Onwer email - Adds a list column that display the email address of the
     42   owner of the item. This uses a custom formatter to create mailto links
     43   on the web page and a formatter that convert to upper case when exporting.
     44   The column is added to all list pages that list items that have an owner.
     45 * Data files - Adds a column to the raw bioassay list that display the
     46   data files that are attached to each raw bioassay. This uses a custom
     47   action factory and illustrates the possibility to create fullblown HTML
     48   for the web page, and a text-only variant for the table exporter.
    3549
    3650This package contains the following plug-ins:
  • extensions/net.sf.basedb.examples/trunk/build.xml

    r1576 r1596  
    4242  <property name="javac.encoding" value="UTF-8" />
    4343  <property name="depend.base-version"
    44     value="3.1.0"
     44    value="3.2.0"
    4545    description="The BASE version that this project depends on."
    4646  />
Note: See TracChangeset for help on using the changeset viewer.