added getDescr(). and ditched getListView() as it's redundant with
authormh <mh>
Wed, 27 Mar 2002 13:40:14 +0000 (13:40 +0000)
committermh <mh>
Wed, 27 Mar 2002 13:40:14 +0000 (13:40 +0000)
getBigIcon(). list view openposting, etc.. list templates are now more
flexible. sorry about the previous empty log messages, my bad. consider
this the log.

source/mir/media/MirMedia.java

index 646cd0f..e9535d2 100755 (executable)
@@ -119,22 +119,6 @@ public interface  MirMedia{
     throws MirMediaException;
 
        /**
-   * gets the summary representation for the media
-   * in the form of a URL (String). Usually the URL points
-   * to some sort of an icon that previews what kind of
-   * media an article will contain.
-   * It should use the helper functions in the StringUtil class to
-   * build URL's safely, eliminating any *illegal* user input.
-   * @param ent, an Entity holding the media MetaData
-   * @param mediaTypeEnt, an Entity holding the media_table entry
-   * @return String, the url.
-   * @see mir.entity.Entity
-   * @see mir.misc.StringUtil
-   */
-  public abstract String getListView (Entity ent, Entity mediaTypeEnt)
-    throws MirMediaException;
-
-       /**
    * Returns the absolute filesystem path to where the media
    * content should be stored. This path is usually defined
    * in the configuration wich is accessible through the MirConfig
@@ -200,23 +184,30 @@ public interface  MirMedia{
   public abstract String getIconAlt ();
 
        /**
-   * your all smart enough to figure it out.
+   * your can all figure it out.
    * @return boolean.
    */
   public abstract boolean isVideo ();
 
        /**
-   * your all smart enough to figure it out.
+   * you can all figure it out.
    * @return boolean.
    */
   public abstract boolean isAudio ();
 
        /**
-   * your all smart enough to figure it out.
+   * you can all figure it out.
    * @return boolean.
    */
   public abstract boolean isImage ();
 
+  /**
+   * returns a brief text dscription of what this
+   * media type is.
+   * @return String
+   */
+  public abstract String getDescr ();
+
 }