org.modeshape.jcr.ModeShapeLexicon Maven / Gradle / Ivy
/*
* ModeShape (http://www.modeshape.org)
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* ModeShape is free software. Unless otherwise indicated, all code in ModeShape
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* ModeShape is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.modeshape.jcr;
import javax.jcr.Node;
import org.modeshape.common.annotation.Immutable;
import org.modeshape.jcr.value.Name;
import org.modeshape.jcr.value.basic.BasicName;
/**
* A lexicon of names used within ModeShape.
*/
@Immutable
public class ModeShapeLexicon {
public static class Namespace {
public static final String URI = "http://www.modeshape.org/1.0";
public static final String PREFIX = "mode";
}
public static final Name UUID = new BasicName(Namespace.URI, "uuid");
public static final Name MERGE_PLAN = new BasicName(Namespace.URI, "mergePlan");
public static final Name CLASSNAME = new BasicName(Namespace.URI, "classname");
public static final Name CLASSPATH = new BasicName(Namespace.URI, "classpath");
public static final Name NAMESPACES = new BasicName(Namespace.URI, "namespaces");
public static final Name PROJECTION_RULES = new BasicName(Namespace.URI, "projectionRules");
public static final Name READ_ONLY = new BasicName(Namespace.URI, "readOnly");
public static final Name RESOURCE = new BasicName(Namespace.URI, "resource");
public static final Name ROOT = new BasicName(Namespace.URI, "root");
public static final Name TIME_TO_EXPIRE = new BasicName(Namespace.URI, "timeToExpire");
public static final Name URI = new BasicName(Namespace.URI, "uri");
public static final Name GENERATED = new BasicName(Namespace.URI, "generated");
/**
* @deprecated Use {@link #URI} instead.
*/
@Deprecated
public static final Name NAMESPACE_URI = URI;
public static final Name WORKSPACES = new BasicName(Namespace.URI, "workspaces");
public static final Name SOURCE_NAME = new BasicName(Namespace.URI, "source");
public static final Name WORKSPACE_NAME = new BasicName(Namespace.URI, "workspaceName");
public static final Name DEFAULT_WORKSPACE_NAME = new BasicName(Namespace.URI, "defaultWorkspaceName");
public static final Name PROJECTIONS = new BasicName(Namespace.URI, "projections");
public static final Name HASHED = new BasicName(Namespace.URI, "hashed");
public static final Name SHA1 = new BasicName(Namespace.URI, "sha1");
public static final Name BASE = new BasicName(Namespace.URI, "base");
public static final Name EXPIRATION_DATE = new BasicName(Namespace.URI, "expirationDate");
public static final Name IS_HELD_BY_SESSION = new BasicName(Namespace.URI, "isHeldBySession");
public static final Name IS_SESSION_SCOPED = new BasicName(Namespace.URI, "isSessionScoped");
public static final Name LOCK = new BasicName(Namespace.URI, "lock");
public static final Name LOCK_TOKEN = new BasicName(Namespace.URI, "lockToken");
public static final Name LOCKED_KEY = new BasicName(Namespace.URI, "lockedKey");
public static final Name LOCKING_SESSION = new BasicName(Namespace.URI, "lockingSession");
public static final Name LOCKS = new BasicName(Namespace.URI, "locks");
public static final Name NAMESPACE = new BasicName(Namespace.URI, "namespace");
public static final Name NODE_TYPES = new BasicName(Namespace.URI, "nodeTypes");
public static final Name REPOSITORIES = new BasicName(Namespace.URI, "repositories");
public static final Name AUTHENTICATION_PROVIDERS = new BasicName(Namespace.URI, "authenticationProviders");
public static final Name AUTHENTICATION_PROVIDER = new BasicName(Namespace.URI, "authenticationProvider");
public static final Name SYSTEM = new BasicName(Namespace.URI, "system");
public static final Name VERSION_STORAGE = new BasicName(Namespace.URI, "versionStorage");
public static final Name VERSION_HISTORY_FOLDER = new BasicName(Namespace.URI, "versionHistoryFolder");
public static final Name WORKSPACE = new BasicName(Namespace.URI, "workspace");
/**
* The name of the "mode:share" node type, used as the primary type on nodes that are proxies for the original node. The
* "mode:share" node type defines a single "{@link #SHARED_UUID mode:shared}" REFERENCE property pointing to the original
* node.
*
* With the way that ModeShape's JCR layer is implemented, JCR clients should never see {@link Node}s of this type. Instead,
* the JCR layer transparently creates a JcrSharedNode that will mirror the original.
*
*/
public static final Name SHARE = new BasicName(Namespace.URI, "share");
/**
* The REFERENCE property on the "mode:share" node type. This property references the original node for which this node is a
* proxy.
*/
public static final Name SHARED_UUID = new BasicName(Namespace.URI, "sharedUuid");
public static final Name DEPTH = new BasicName(Namespace.URI, "depth");
public static final Name LOCALNAME = new BasicName(Namespace.URI, "localName");
/**
* The name of the post initialization node which is used to synchronize a cluster of repositories
*/
public static final Name REPOSITORY= new BasicName(Namespace.URI, "repository");
public static final Name INITIALIZATION_STATE = new BasicName(Namespace.URI, "initializationState");
/**
* Federation related items
*/
public static final Name FEDERATION = new BasicName(Namespace.URI, "federation");
public static final Name PROJECTION = new BasicName(Namespace.URI, "projection");
public static final Name EXTERNAL_NODE_KEY = new BasicName(Namespace.URI, "externalNodeKey");
public static final Name PROJECTED_NODE_KEY = new BasicName(Namespace.URI, "projectedNodeKey");
public static final Name PROJECTION_ALIAS = new BasicName(Namespace.URI, "alias");
public enum InitializationState {
STARTED, FINISHED
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy