001/*
002 * (C) Copyright 2006-2011 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     btatar
018 *
019 * $Id: ExportConstants.java 29029 2008-01-14 18:38:14Z ldoguin $
020 */
021
022package org.nuxeo.ecm.core.io;
023
024/**
025 * Constants that provide the types for which the reader are for.
026 *
027 * @author <a href="mailto:bt@nuxeo.com">Bogdan Tatar</a>
028 */
029public final class ExportConstants {
030
031    // All these constants are actually used. This is Good.
032
033    public static final String ZIP_HEADER = "=========== Nuxeo ECM Archive v. 1.0.0 ===========\r\n";
034
035    public static final String MARKER_FILE = ".nuxeo-archive";
036
037    public static final String DOCUMENT_FILE = "document.xml";
038
039    public static final String DOCUMENT_TAG = "document";
040
041    public static final String SYSTEM_TAG = "system";
042
043    public static final String REP_NAME = "repository";
044
045    public static final String ID_ATTR = "id";
046
047    public static final String PATH_TAG = "path";
048
049    public static final String TYPE_TAG = "type";
050
051    public static final String LIFECYCLE_STATE_TAG = "lifecycle-state";
052
053    public static final String LIFECYCLE_POLICY_TAG = "lifecycle-policy";
054
055    public static final String ACCESS_CONTROL_TAG = "access-control";
056
057    public static final String FACET_TAG = "facet";
058
059    public static final String SCHEMA_TAG = "schema";
060
061    public static final String ACE_TAG = "entry";
062
063    public static final String ACL_TAG = "acl";
064
065    public static final String PERMISSION_ATTR = "permission";
066
067    public static final String PRINCIPAL_ATTR = "principal";
068
069    public static final String NAME_ATTR = "name";
070
071    public static final String GRANT_ATTR = "grant";
072
073    public static final String CREATOR_ATTR = "creator";
074
075    public static final String BEGIN_ATTR = "begin";
076
077    public static final String END_ATTR = "end";
078
079    public static final String BLOB_DATA = "data";
080
081    public static final String EXTERNAL_BLOB_URI = "uri";
082
083    public static final String BLOB_MIME_TYPE = "mime-type";
084
085    public static final String BLOB_ENCODING = "encoding";
086
087    public static final String BLOB_FILENAME = "filename";
088
089    public static final String BLOB_DIGEST = "digest";
090
091    // Constant utility class.
092    private ExportConstants() {
093    }
094
095}