001/** 002 * Copyright 2015 DuraSpace, Inc. 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 */ 016package org.fcrepo.kernel; 017 018/** 019 * Convenience class with constants for commonly used JCR types. 020 * 021 * @author ajs6f 022 * @since Apr 25, 2013 023 */ 024public interface FedoraJcrTypes { 025 026 String FEDORA_RESOURCE = "fedora:Resource"; 027 028 String FEDORA_NON_RDF_SOURCE_DESCRIPTION = "fedora:NonRdfSourceDescription"; 029 030 String FEDORA_BINARY = "fedora:Binary"; 031 032 String FEDORA_PAIRTREE = "fedora:Pairtree"; 033 034 String FEDORA_TOMBSTONE = "fedora:Tombstone"; 035 036 String FEDORA_BLANKNODE = "fedora:Blanknode"; 037 038 String FEDORA_CONTAINER = "fedora:Container"; 039 040 String LDP_BASIC_CONTAINER = "ldp:BasicContainer"; 041 042 String LDP_DIRECT_CONTAINER = "ldp:DirectContainer"; 043 044 String LDP_INDIRECT_CONTAINER = "ldp:IndirectContainer"; 045 046 String LDP_INSERTED_CONTENT_RELATION = "ldp:insertedContentRelation"; 047 048 String JCR_LASTMODIFIED = "jcr:lastModified"; 049 050 String JCR_CREATED = "jcr:created"; 051 052 String JCR_CREATEDBY = "jcr:createdBy"; 053 054 String PREMIS_FILE_NAME = "premis:hasOriginalName"; 055 056 String CONTENT_SIZE = "premis:hasSize"; 057 058 String CONTENT_DIGEST = "fedora:digest"; 059 060 String FCR_METADATA = "fcr:metadata"; 061 062 String FCR_VERSIONS = "fcr:versions"; 063 064 String ROOT = "mode:root"; 065 066 String FROZEN_NODE = "nt:frozenNode"; 067 068 String JCR_FROZEN_NODE = "jcr:frozenNode"; 069 070 String FROZEN_MIXIN_TYPES = "jcr:frozenMixinTypes"; 071 072 String JCR_UUID = "jcr:uuid"; 073 074 String JCR_PRIMARY_TYPE = "jcr:primaryType"; 075 076 String JCR_MIXIN_TYPES = "jcr:mixinTypes"; 077 078 String VERSIONABLE = "mix:versionable"; 079 080 String LDP_HAS_MEMBER_RELATION = "ldp:hasMemberRelation"; 081 String LDP_IS_MEMBER_OF_RELATION = "ldp:isMemberOfRelation"; 082 String LDP_MEMBER_RESOURCE = "ldp:membershipResource"; 083 084 String [] EXPOSED_PROTECTED_JCR_TYPES 085 = new String[] { JCR_UUID, JCR_LASTMODIFIED, JCR_CREATED, JCR_CREATEDBY, 086 JCR_PRIMARY_TYPE, JCR_MIXIN_TYPES }; 087}