Changes between Version 1 and Version 2 of Logos


Ignore:
Timestamp:
Mar 6, 2012, 2:23:21 AM (12 years ago)
Author:
jesseeichar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Logos

    v1 v2  
    2828== Motivations ==
    2929
    30 * Having the Logos be in the webapplication makes it more difficult to upgrade the war file and not lose logos, made more important since users can upload the logos through the web admin interface
     30 * Having the Logos be in the webapplication makes it more difficult to upgrade the war file and not lose logos, made more important since users can upload the logos through the web admin interface
    3131
    3232== Proposal ==
    3333
    34 In Geocat I have already done this work.  I have a new servlet filter that
     34In Geocat I have already done this work.  I have a new servlet filter that handles requests to images/logos and images/harvesters (we can define other easily as well in the future).
     35Upon receiving a request, the servlet filter will:
     36
     37 1.  look for the image in the defined logos directory
     38 2.  if it does not find the logo it then looks in the webapp (the default logos directory) for the logo.  If the logo is found there it will be copied to the logos directory and returned to browser
     39 3.  If no logo is found a default logo missing logo is returned.  (At the moment no error but that can easily be changed if we want). 
     40
     41There is a Logos class that contains methods for locating the logos directory (which is defined in the config.xml file or in a overrides file.)  The code application has been updated to use the Logos utility files for locating the logos directories.
     42
     43The current behavior works with out changes but now the logos can be located anywhere on the hard drive that the webapp has access.
    3544
    3645=== Backwards Compatibility Issues ===