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 Jasper 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 JasperImageUpdate
36 extends AbstractFileUpdate
37 {
38
39 /**
40 * Default constructor to initialize this Jasper report image update
41 * instance for given <code>_url</code>.
42 *
43 * @param _url URL of the file
44 */
45 public JasperImageUpdate(final URL _url)
46 {
47 super(_url, "Admin_Program_JasperImage");
48 }
49
50 /**
51 * Creates new instance of class
52 * {@link JasperImageUpdate.JasperImageDefinition}.
53 *
54 * @return new definition instance
55 * @see JasperImageUpdate.JasperImageDefinition
56 */
57 @Override
58 protected AbstractDefinition newDefinition()
59 {
60 return new JasperImageDefinition();
61 }
62
63 /**
64 * Definition for a Jasper Image.
65 */
66 protected class JasperImageDefinition
67 extends AbstractFileDefinition
68 {
69 }
70 }