1   /*
2    * Copyright 2003 - 2013 The eFaps Team
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   * Revision:        $Rev$
17   * Last Changed:    $Date$
18   * Last Changed By: $Author$
19   */
20  
21  package org.efaps.update.schema.program;
22  
23  import java.net.URL;
24  
25  import org.efaps.update.schema.AbstractFileUpdate;
26  
27  /**
28   * Handles the import / update of wiki Images for eFaps read from a XML
29   * configuration item file (for the meta data) and the image itself as binary
30   * file.
31   *
32   * @author The eFaps Team
33   * @version $Id$
34   */
35  public class WikiImageUpdate
36      extends AbstractFileUpdate
37  {
38      /**
39       * Default constructor to initialize this Jasper report image update
40       * instance for given <code>_url</code>.
41       *
42       * @param _url URL of the file
43       */
44      public WikiImageUpdate(final URL _url)
45      {
46          super(_url, "Admin_Program_WikiImage");
47      }
48  
49      /**
50       * Creates new instance of class
51       * {@link WikiImageUpdate.WikiImageDefinition}.
52       *
53       * @return new definition instance
54       * @see WikiImageUpdate.JasperImageDefinition
55       */
56      @Override
57      protected AbstractDefinition newDefinition()
58      {
59          return new WikiImageDefinition();
60      }
61  
62      /**
63       * Definition for a Wiki Image.
64       *
65       */
66      private class WikiImageDefinition
67          extends AbstractFileDefinition
68      {
69      }
70  }