Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 5516 #533

Merged
merged 8 commits into from Jul 1, 2014
Merged

Feature 5516 #533

merged 8 commits into from Jul 1, 2014

Commits on Jun 27, 2014

  1. feature #5516 : The access to a file managed by Silverpeas and locate…

    …d in the filesystem is now performed through the SilverpeasFile and SilverpeasFileFactory classes. SilverpeasFile represents now a file in Silverpeas whereas SilverpeasFileFactory wraps the way to access them according to some business rules (attachment, file serving, ...). These new classes are now used by the following servlets: FileServer and any subclasses of AbstractFileSender class
    mmoqui committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    a11db7e View commit details
    Browse the repository at this point in the history
  2. feature #5516 : Rename SilverpeasFileFactory to SilverpeasFileProvide…

    …r. SilverpeasFileProvider supports now pre and post processing when fetching a file in silverpeas. The pre processors are executed against the file path whereas the post processors are executed against the retrieved file itself. To processors are defined: one to resize an image from its path and another one to check the existance of the asked file. The image resizing processor resizes an image if the asked file is an image and its path contains as information the targeted size (for example: a path such as /display/avatar/108x140/myavatar.jpg).
    mmoqui committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    10aa0d4 View commit details
    Browse the repository at this point in the history
  3. feature #5516 : Add a new JSTL tag to render an image by taking into …

    …account size parameter. This size parameter is then taken at service side to resize dynamically the image if not already done. Update the JSPs to take into account this new tag when rendering the avatar. The image displayer of a XML form uses the new functionality of the dynamic resizing of images.
    mmoqui committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    973a566 View commit details
    Browse the repository at this point in the history
  4. feature #5516 : Take into account the on-demand image resizing for th…

    …e users' avatar, for the image in a XML form
    mmoqui committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    64507ef View commit details
    Browse the repository at this point in the history
  5. feature #5516 : Now the resized image in the cache is updated whether…

    … the original image is also updated. No deletion occurs currently in the cache.
    mmoqui committed Jun 27, 2014
    Configuration menu
    Copy the full SHA
    5b83361 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2014

  1. feature #5516 : Fix a bug discovered in Windows with the image resizi…

    …ng by its height only.
    mmoqui committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    65c3d9e View commit details
    Browse the repository at this point in the history
  2. feature #5516 : Now SilverpeasFileProvider becomes the low-level API …

    …to manage files in Silverpeas. It provides currently methods to write, to delete and to move a file. This new API is yet used by ImageProfil (it manages the avatar) and ThumbnailController (it manages the vignettes and thumbnails of some contributions like the publications). ImageResizingProcessor that is hooked to SilverpeasFileProvider takes advantage of this to manages the cache of resized images when their original image is either deleted or updated. Beside that, a ResizedImageCleaner is introduced to clean up resized images of non existing original images; it is scheduled by a cron instruction in the org.silverpeas.lookAndFeel.generalLook.properties bundle.
    mmoqui committed Jun 30, 2014
    Configuration menu
    Copy the full SHA
    775b77f View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2014

  1. feature #5516 : Fix some problems coming from the renaming of SimpleD…

    …ocument#file to SimpleDocument#attachment
    mmoqui committed Jul 1, 2014
    Configuration menu
    Copy the full SHA
    8cdd651 View commit details
    Browse the repository at this point in the history