1.1 restoration
[mir.git] / source / mircoders / localizer / MirAdminInterfaceLocalizer.java
index a322cc3..5dfaa15 100755 (executable)
  */
 package mircoders.localizer;
 
+import mir.entity.adapter.EntityAdapter;
+import mir.generator.Generator;
+
 import java.util.List;
 import java.util.Map;
 
-import mir.entity.adapter.EntityAdapter;
-
 /**
+ * Interface to allow for localized changed to the workings of the admin system
  *
- * <p>Title: Interface to allow for localized changed to the workings of the admin system</p>
  * @author Zapata
- * @version 1.0
  */
 
 public interface MirAdminInterfaceLocalizer {
@@ -70,17 +70,33 @@ public interface MirAdminInterfaceLocalizer {
    * @param aDefault The default generator
    * @return
    */
-  public String getAdminPageGenerator(String aPage, Map aTemplateData, EntityAdapter aUser, String aDefault);
+  public String getAdminPageGenerator(String aPage, Map aTemplateData, EntityAdapter aUser, String aDefault) throws MirLocalizerExc;
 
   /**
+   * Prepares an article preview
    *
-   * @return
+   * @param aPreviewPage there may be different preview pages for a single article.
+   *     (i.e. the same article may lead to different pages) this parameter selects one
+   *      of those versions. See also {@link #getPreviewPages}.
+   * @param anArticle the article to be previewed
+   * @param aContext the context to be supplied to the generator
+   * @return the generator to be used to generate the preview
+   */
+  public Generator prepareArticlePreview(String aPreviewPage, EntityAdapter anArticle, Map aContext)
+      throws MirLocalizerExc, MirLocalizerFailure;
+
+  /**
+   * Return the available preview variations of one article
+   */
+  public List getPreviewPages(EntityAdapter anArticle) throws MirLocalizerExc, MirLocalizerFailure;
+
+  /**
+   * Get the {@link List} of {@link MirSimpleEntityOperation}s available for comments
    */
   public List simpleCommentOperations();
 
   /**
-   *
-   * @return
+   * Get the {@link List} of {@link MirSimpleEntityOperation}s available for articles
    */
   public List simpleArticleOperations();