Changeset 1602


Ignore:
Timestamp:
Apr 17, 2012, 12:51:05 PM (11 years ago)
Author:
Nicklas Nordborg
Message:

References #377: Create some example extensions for the item overview

Added loader implementations for User and Role.

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

Legend:

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

    r1596 r1602  
    77  <classpathentry kind="lib" path="lib/compile/base-core-3.2.0.jar"/>
    88  <classpathentry kind="lib" path="lib/compile/base-webclient-3.2.0.jar"/>
     9  <classpathentry kind="lib" path="lib/compile/log4j-1.2.16.jar"/>
    910  <classpathentry kind="output" path="bin"/>
    1011</classpath>
  • extensions/net.sf.basedb.examples/trunk/META-INF/extensions.xml

    r1596 r1602  
    470470    </action-factory>
    471471  </extension>
     472 
     473  <extension
     474    id="list.extra-id"
     475    extends="net.sf.basedb.clients.web.listcolumn.all"
     476    >
     477    <index>99</index>
     478    <about>
     479      <name>Extra id</name>
     480      <description>
     481        Add an extra id column to all lists. Useful for
     482        testing that the extension system is working.
     483      </description>
     484    </about>
     485    <action-factory>
     486      <factory-class>
     487        net.sf.basedb.clients.web.extensions.list.PropertyPathActionFactory
     488      </factory-class>
     489      <parameters>
     490        <id>xid</id>
     491        <title>XID</title>
     492        <property>id</property>
     493        <valueType>INT</valueType>
     494      </parameters>
     495    </action-factory>
     496  </extension>
     497
     498  <extension
     499    id="loader.user"
     500    extends="net.sf.basedb.util.overview.loader">
     501    <index>1</index>
     502    <about>
     503      <name>Owner of item</name>
     504      <description>
     505        Load the owner of each item as a property
     506        node in the item overview.
     507      </description>
     508    </about>
     509    <action-factory>
     510      <factory-class>
     511        net.sf.basedb.examples.extensions.overview.OwnerNodeLoaderFactory
     512      </factory-class>
     513    </action-factory>
     514 
     515  </extension>
     516
     517  <extension
     518    id="loader.role"
     519    extends="net.sf.basedb.util.overview.loader">
     520    <index>2</index>
     521    <about>
     522      <name>Role membership</name>
     523      <description>
     524        Load the role membership of users as a folder-node with one item-node
     525        for each role.
     526      </description>
     527    </about>
     528    <action-factory>
     529      <factory-class>
     530        net.sf.basedb.examples.extensions.overview.RoleNodeLoaderFactory
     531      </factory-class>
     532    </action-factory>
     533 
     534  </extension>
    472535
    473536
Note: See TracChangeset for help on using the changeset viewer.