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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.