java.lang.Object
overit.geocallapp.docshare.documents.bl.sharedresource.file.savingstrategy.SavingStrategy
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DateDirectoryStrategy, OneDirectoryStrategy

public abstract class SavingStrategy extends Object implements Serializable
Abstract class that defines naming strategies for physical storage of shared resources.
These strategies determine both the directory name and the file name that will be used when physically saving a shared resource.

The strategy defines:

  • The directory name where the shared resource will be physically stored
  • The physical filename that will be used to save the resource
Since:
14.0
See Also:
  • Constructor Details

    • SavingStrategy

      public SavingStrategy()
  • Method Details

    • getDirectory

      public abstract WebResource getDirectory(BOFile resource)
      Returns the name of directory where the file will be physically stored.
      Parameters:
      resource - the current file
      Returns:
      the name of the directory where the file will be physically stored
    • getName

      public abstract String getName(BOFile resource, WebResource directory)
      Returns the name that will be used to save the file.
      Parameters:
      resource - the current file
      directory - the web resource representing the directory in which the resource will be saved
      Returns:
      the name that will be used to save the file