This project has retired. For details please refer to its Attic page.
CmisAtomPubConstants xref

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.chemistry.opencmis.client.bindings.spi.atompub;
20  
21  import javax.xml.bind.annotation.XmlType;
22  
23  import org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeDocumentDefinitionType;
24  import org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeFolderDefinitionType;
25  import org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypePolicyDefinitionType;
26  import org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeRelationshipDefinitionType;
27  
28  /**
29   * Constants for AtomPub.
30   */
31  public final class CmisAtomPubConstants {
32  
33      private CmisAtomPubConstants() {
34      }
35  
36      // service doc
37      public static final String TAG_SERVICE = "service";
38      public static final String TAG_WORKSPACE = "workspace";
39      public static final String TAG_REPOSITORY_INFO = "repositoryInfo";
40      public static final String TAG_COLLECTION = "collection";
41      public static final String TAG_COLLECTION_TYPE = "collectionType";
42      public static final String TAG_URI_TEMPLATE = "uritemplate";
43      public static final String TAG_TEMPLATE_TEMPLATE = "template";
44      public static final String TAG_TEMPLATE_TYPE = "type";
45      public static final String TAG_LINK = "link";
46  
47      // atom
48      public static final String TAG_ATOM_ID = "id";
49      public static final String TAG_ATOM_TITLE = "title";
50      public static final String TAG_ATOM_UPDATED = "updated";
51  
52      // feed
53      public static final String TAG_FEED = "feed";
54  
55      // entry
56      public static final String TAG_ENTRY = "entry";
57      public static final String TAG_OBJECT = "object";
58      public static final String TAG_NUM_ITEMS = "numItems";
59      public static final String TAG_PATH_SEGMENT = "pathSegment";
60      public static final String TAG_RELATIVE_PATH_SEGMENT = "relativePathSegment";
61      public static final String TAG_TYPE = "type";
62      public static final String TAG_CHILDREN = "children";
63      public static final String TAG_CONTENT = "content";
64      public static final String TAG_CONTENT_MEDIATYPE = "mediatype";
65      public static final String TAG_CONTENT_BASE64 = "base64";
66  
67      public static final String ATTR_DOCUMENT_TYPE = CmisTypeDocumentDefinitionType.class.getAnnotation(XmlType.class).name();
68      public static final String ATTR_FOLDER_TYPE = CmisTypeFolderDefinitionType.class.getAnnotation(XmlType.class).name();
69      public static final String ATTR_RELATIONSHIP_TYPE = CmisTypeRelationshipDefinitionType.class.getAnnotation(XmlType.class).name();
70      public static final String ATTR_POLICY_TYPE = CmisTypePolicyDefinitionType.class.getAnnotation(XmlType.class).name();
71  
72      // allowable actions
73      public static final String TAG_ALLOWABLEACTIONS = "allowableActions";
74  
75      // ACL
76      public static final String TAG_ACL = "acl";
77  
78      // links
79      public static final String LINK_REL = "rel";
80      public static final String LINK_HREF = "href";
81      public static final String LINK_TYPE = "type";
82      public static final String CONTENT_SRC = "src";
83  
84  }