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.integration;
22
23 import java.net.URL;
24 import java.util.HashSet;
25 import java.util.List;
26 import java.util.Map;
27 import java.util.Set;
28
29 import org.efaps.update.AbstractUpdate;
30 import org.efaps.util.EFapsException;
31
32 /**
33 * @author The eFaps Team
34 * @version $Id$
35 * TODO: description
36 */
37 public class WebDAVUpdate
38 extends AbstractUpdate
39 {
40 /**
41 *
42 */
43 private static final Set<Link> ALLLINKS = new HashSet<Link>();
44 /*{
45
46 * ALLLINKS.add(LINK2ACCESSTYPE); ALLLINKS.add(LINK2DATAMODELTYPE);
47 * ALLLINKS.add(LINK2PERSON); ALLLINKS.add(LINK2ROLE);
48 * ALLLINKS.add(LINK2GROUP);
49 }*/
50
51 /**
52 *
53 * @param _url URL of the file
54 */
55 public WebDAVUpdate(final URL _url)
56 {
57 super(_url, "Admin_Integration_WebDAV", WebDAVUpdate.ALLLINKS);
58 }
59
60 /**
61 * Creates new instance of class {@link Definition}.
62 *
63 * @return new definition instance
64 * @see Definition
65 */
66 @Override
67 protected AbstractDefinition newDefinition()
68 {
69 return new Definition();
70 }
71
72 /**
73 * TODO comment!
74 *
75 */
76 public class Definition
77 extends AbstractDefinition
78 {
79 @Override
80 public void readXML(final List<String> _tags,
81 final Map<String, String> _attributes,
82 final String _text)
83 throws EFapsException
84 {
85 final String value = _tags.get(0);
86 if ("path".equals(value)) {
87 addValue("Path", value);
88 } else {
89 super.readXML(_tags, _attributes, _text);
90 }
91 }
92 }
93 }