advance dspace-plugins.pdf .pdf

Upload: luilas

Post on 02-Jun-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    1/30

    Advanced DSpace: plugins

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    2/30

    wiki.dspace.org/PluginManager

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    3/30

    Three types of plugin:

    ---

    singleton plugins naed plugins se!uence plugins

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    4/30

    singleton plugins

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    5/30

    key characteristic: only one ipleenting class

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    6/30

    e"aple: site authentication

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    7/30

    e"aple: site authentication

    plugin.single.org.dspace.app.webui.SiteAuthenticator = com.hp.hpl.CustomAuthenticator

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    8/30

    e"aple: site authentication

    plugin.single.org.dspace.app.webui.SiteAuthenticator = com.hp.hpl.CustomAuthenticator

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    9/30

    plugin.single.org.dspace.app.webui.SiteAuthenticator = com.hp.hpl.CustomAuthenticator

    dspace.cfg:

    #ooServlet.$ava:SiteAuthenticator siteAuth = (SiteAuthenticator)

    PluginManager.getSinglePlugin(SiteAuthenticator.class);

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    10/30

    when to use:

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    11/30

    %hen you need a unifor echanis to perfor a given function&'ut don(t want to 'e constrained to that echanis forever.

    when to use:

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    12/30

    naed plugins

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    13/30

    key characteristic: ultiple ipleentations availa'le& app choses one 'y nae

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    14/30

    e"aple: crosswalks

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    15/30

    e"aple: crosswalks

    plugin.named.org.dspace.content.crosswalk.DisseminationCrosswalk = org.dspace.content.Crosswalk.SimpleDCDisseminationCrosswalk = dc org.dspace.content.Crosswalk.M!"SDisseminationCrosswalk = mets

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    16/30

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    17/30

    dspace.cfg:

    DisseminationCrosswalk #walk = (DisseminationCrosswalk) PluginManager.get$amedPlugin(DisseminationCrosswalk.class% &dc');

    plugin.named.org.dspace.content.crosswalk.DisseminationCrosswalk = org.dspace.content.Crosswalk.SimpleDCDisseminationCrosswalk = dc org.dspace.content.Crosswalk.M!"SDisseminationCrosswalk = mets

    #ooDisseinator.$ava

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    18/30

    note:

    naed plugins ust have naes )keys* that are uni!ue for the interface

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    19/30

    note:

    naes ay contain any characters other than(&( and (+(& 'ut alphanueric is preferred

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    20/30

    when to use:

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    21/30

    when to use:

    %hen you need ultiple ipleentations to 'e availa'le / supportedthroughout the application& leaving the ipleenting classes to choosewhich option to use.

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    22/30

    se!uence plugins

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    23/30

    key characteristic: ,stack of singletons

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    24/30

    e"aple: stacka'le authentication

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    25/30

    plugin.seuence.org.dspace.authenticate.AuthenticationMethod = org.dspace.authenticate.*+,Authentication% org.dspace.authenticate.PasswordAuthentication

    e"aple: stacka'le authentication

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    26/30

    plugin.seuence.org.dspace.authenticate.AuthenticationMethod = org.dspace.authenticate.*+,Authentication% org.dspace.authenticate.PasswordAuthentication

    e"aple: stacka'le authentication

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    27/30

    dspace.cfg:plugin.seuence.org.dspace.authenticate.AuthenticationMethod = org.dspace.authenticate.*+,Authentication% org.dspace.authenticate.PasswordAuthentication

    AuthenticationManager.$ava:pri-ate static AuthenticationMethod stack/ = (AuthenticationMethod/) PluginManager.getPluginSeuence(AuthenticationMethod.class);

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    28/30

    when to use:

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    29/30

    when to use:

    %hen you want to pass the responsi'ility for processing through astack of ipleenting classes.

  • 8/11/2019 Advance DSpace-plugins.pdf .pdf

    30/30

    wiki.dspace.org/ategory:0%T0

    wiki.dspace.org/1uide2to2Developing2with2DSpace

    dspace-devel3lists.sourceforge.net