X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=server%2Fruntime%2Forg.argeo.server.jcr%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fjcr%2FArgeoJcrConstants.java;h=0e23f8893c974faf3aee5e3ac8a3c4b8932257f9;hb=e499eba6852f5cc487ade0db65e6f9cfc4c5d45a;hp=4f12fa75a59fbe30f3559833fbb2fdce4aed3a18;hpb=a668345e948f3f6da7475279bbe330e129fb1841;p=lgpl%2Fargeo-commons.git diff --git a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/ArgeoJcrConstants.java b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/ArgeoJcrConstants.java index 4f12fa75a..0e23f8893 100644 --- a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/ArgeoJcrConstants.java +++ b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/ArgeoJcrConstants.java @@ -1,12 +1,11 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at + * Copyright (C) 2007-2012 Mathieu Baudier * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -16,291 +15,19 @@ */ package org.argeo.jcr; -/** - * Copied from org.apache.jackrabbit.JcrConstants v1.6.0 in order to avoid a - * dependency to Jackrabbit. - */ +/** Argeo model specific constants */ public interface ArgeoJcrConstants { - /** - * jcr:autoCreated - */ - public static final String JCR_AUTOCREATED = "jcr:autoCreated"; - /** - * jcr:baseVersion - */ - public static final String JCR_BASEVERSION = "jcr:baseVersion"; - /** - * jcr:child - */ - public static final String JCR_CHILD = "jcr:child"; - /** - * jcr:childNodeDefinition - */ - public static final String JCR_CHILDNODEDEFINITION = "jcr:childNodeDefinition"; - /** - * jcr:content - */ - public static final String JCR_CONTENT = "jcr:content"; - /** - * jcr:created - */ - public static final String JCR_CREATED = "jcr:created"; - /** - * jcr:data - */ - public static final String JCR_DATA = "jcr:data"; - /** - * jcr:defaultPrimaryType - */ - public static final String JCR_DEFAULTPRIMARYTYPE = "jcr:defaultPrimaryType"; - /** - * jcr:defaultValues - */ - public static final String JCR_DEFAULTVALUES = "jcr:defaultValues"; - /** - * jcr:encoding - */ - public static final String JCR_ENCODING = "jcr:encoding"; - /** - * jcr:frozenMixinTypes - */ - public static final String JCR_FROZENMIXINTYPES = "jcr:frozenMixinTypes"; - /** - * jcr:frozenNode - */ - public static final String JCR_FROZENNODE = "jcr:frozenNode"; - /** - * jcr:frozenPrimaryType - */ - public static final String JCR_FROZENPRIMARYTYPE = "jcr:frozenPrimaryType"; - /** - * jcr:frozenUuid - */ - public static final String JCR_FROZENUUID = "jcr:frozenUuid"; - /** - * jcr:hasOrderableChildNodes - */ - public static final String JCR_HASORDERABLECHILDNODES = "jcr:hasOrderableChildNodes"; - /** - * jcr:isCheckedOut - */ - public static final String JCR_ISCHECKEDOUT = "jcr:isCheckedOut"; - /** - * jcr:isMixin - */ - public static final String JCR_ISMIXIN = "jcr:isMixin"; - /** - * jcr:language - */ - public static final String JCR_LANGUAGE = "jcr:language"; - /** - * jcr:lastModified - */ - public static final String JCR_LASTMODIFIED = "jcr:lastModified"; - /** - * jcr:lockIsDeep - */ - public static final String JCR_LOCKISDEEP = "jcr:lockIsDeep"; - /** - * jcr:lockOwner - */ - public static final String JCR_LOCKOWNER = "jcr:lockOwner"; - /** - * jcr:mandatory - */ - public static final String JCR_MANDATORY = "jcr:mandatory"; - /** - * jcr:mergeFailed - */ - public static final String JCR_MERGEFAILED = "jcr:mergeFailed"; - /** - * jcr:mimeType - */ - public static final String JCR_MIMETYPE = "jcr:mimeType"; - /** - * jcr:mixinTypes - */ - public static final String JCR_MIXINTYPES = "jcr:mixinTypes"; - /** - * jcr:multiple - */ - public static final String JCR_MULTIPLE = "jcr:multiple"; - /** - * jcr:name - */ - public static final String JCR_NAME = "jcr:name"; - /** - * jcr:nodeTypeName - */ - public static final String JCR_NODETYPENAME = "jcr:nodeTypeName"; - /** - * jcr:onParentVersion - */ - public static final String JCR_ONPARENTVERSION = "jcr:onParentVersion"; - /** - * jcr:predecessors - */ - public static final String JCR_PREDECESSORS = "jcr:predecessors"; - /** - * jcr:primaryItemName - */ - public static final String JCR_PRIMARYITEMNAME = "jcr:primaryItemName"; - /** - * jcr:primaryType - */ - public static final String JCR_PRIMARYTYPE = "jcr:primaryType"; - /** - * jcr:propertyDefinition - */ - public static final String JCR_PROPERTYDEFINITION = "jcr:propertyDefinition"; - /** - * jcr:protected - */ - public static final String JCR_PROTECTED = "jcr:protected"; - /** - * jcr:requiredPrimaryTypes - */ - public static final String JCR_REQUIREDPRIMARYTYPES = "jcr:requiredPrimaryTypes"; - /** - * jcr:requiredType - */ - public static final String JCR_REQUIREDTYPE = "jcr:requiredType"; - /** - * jcr:rootVersion - */ - public static final String JCR_ROOTVERSION = "jcr:rootVersion"; - /** - * jcr:sameNameSiblings - */ - public static final String JCR_SAMENAMESIBLINGS = "jcr:sameNameSiblings"; - /** - * jcr:statement - */ - public static final String JCR_STATEMENT = "jcr:statement"; - /** - * jcr:successors - */ - public static final String JCR_SUCCESSORS = "jcr:successors"; - /** - * jcr:supertypes - */ - public static final String JCR_SUPERTYPES = "jcr:supertypes"; - /** - * jcr:system - */ - public static final String JCR_SYSTEM = "jcr:system"; - /** - * jcr:uuid - */ - public static final String JCR_UUID = "jcr:uuid"; - /** - * jcr:valueConstraints - */ - public static final String JCR_VALUECONSTRAINTS = "jcr:valueConstraints"; - /** - * jcr:versionHistory - */ - public static final String JCR_VERSIONHISTORY = "jcr:versionHistory"; - /** - * jcr:versionLabels - */ - public static final String JCR_VERSIONLABELS = "jcr:versionLabels"; - /** - * jcr:versionStorage - */ - public static final String JCR_VERSIONSTORAGE = "jcr:versionStorage"; - /** - * jcr:versionableUuid - */ - public static final String JCR_VERSIONABLEUUID = "jcr:versionableUuid"; + public final static String ARGEO_BASE_PATH = "/argeo:system"; + public final static String DATA_MODELS_BASE_PATH = ARGEO_BASE_PATH + + "/argeo:dataModels"; + public final static String PEOPLE_BASE_PATH = ARGEO_BASE_PATH + + "/argeo:people"; + + // parameters (typically for call to a RepositoryFactory) + public final static String JCR_REPOSITORY_ALIAS = "argeo.jcr.repository.alias"; + public final static String JCR_REPOSITORY_URI = "argeo.jcr.repository.uri"; - /** - * Pseudo property jcr:path used with query results - */ - public static final String JCR_PATH = "jcr:path"; - /** - * Pseudo property jcr:score used with query results - */ - public static final String JCR_SCORE = "jcr:score"; + // standard aliases + public final static String ALIAS_NODE = "node"; - /** - * mix:lockable - */ - public static final String MIX_LOCKABLE = "mix:lockable"; - /** - * mix:referenceable - */ - public static final String MIX_REFERENCEABLE = "mix:referenceable"; - /** - * mix:versionable - */ - public static final String MIX_VERSIONABLE = "mix:versionable"; - /** - * mix:shareable - */ - public static final String MIX_SHAREABLE = "mix:shareable"; - /** - * nt:base - */ - public static final String NT_BASE = "nt:base"; - /** - * nt:childNodeDefinition - */ - public static final String NT_CHILDNODEDEFINITION = "nt:childNodeDefinition"; - /** - * nt:file - */ - public static final String NT_FILE = "nt:file"; - /** - * nt:folder - */ - public static final String NT_FOLDER = "nt:folder"; - /** - * nt:frozenNode - */ - public static final String NT_FROZENNODE = "nt:frozenNode"; - /** - * nt:hierarchyNode - */ - public static final String NT_HIERARCHYNODE = "nt:hierarchyNode"; - /** - * nt:linkedFile - */ - public static final String NT_LINKEDFILE = "nt:linkedFile"; - /** - * nt:nodeType - */ - public static final String NT_NODETYPE = "nt:nodeType"; - /** - * nt:propertyDefinition - */ - public static final String NT_PROPERTYDEFINITION = "nt:propertyDefinition"; - /** - * nt:query - */ - public static final String NT_QUERY = "nt:query"; - /** - * nt:resource - */ - public static final String NT_RESOURCE = "nt:resource"; - /** - * nt:unstructured - */ - public static final String NT_UNSTRUCTURED = "nt:unstructured"; - /** - * nt:version - */ - public static final String NT_VERSION = "nt:version"; - /** - * nt:versionHistory - */ - public static final String NT_VERSIONHISTORY = "nt:versionHistory"; - /** - * nt:versionLabels - */ - public static final String NT_VERSIONLABELS = "nt:versionLabels"; - /** - * nt:versionedChild - */ - public static final String NT_VERSIONEDCHILD = "nt:versionedChild"; }