001/*
002 * Licensed to DuraSpace under one or more contributor license agreements.
003 * See the NOTICE file distributed with this work for additional information
004 * regarding copyright ownership.
005 *
006 * DuraSpace licenses this file to you under the Apache License,
007 * Version 2.0 (the "License"); you may not use this file except in
008 * compliance with the License.  You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018package org.fcrepo.audit;
019
020import static org.fcrepo.audit.AuditNamespaces.REPOSITORY;
021import static org.fcrepo.audit.AuditNamespaces.AUDIT;
022import static org.fcrepo.audit.AuditNamespaces.PREMIS;
023import static org.fcrepo.audit.AuditNamespaces.PROV;
024import static org.fcrepo.audit.AuditNamespaces.EVENT_TYPE;
025import static org.fcrepo.kernel.api.RdfLexicon.EVENT_NAMESPACE;
026import static org.fcrepo.kernel.api.RdfLexicon.RDF_NAMESPACE;
027
028
029/**
030 * @author acoburn
031 * @since 2015-04-25
032 */
033public final class AuditProperties {
034
035    public static final String INTERNAL_EVENT = AUDIT + "InternalEvent";
036    public static final String PREMIS_EVENT = PREMIS + "Event";
037    public static final String PROV_EVENT = PROV + "InstantaneousEvent";
038
039    public static final String CONTENT_MOD = AUDIT + "contentModification";
040    public static final String CONTENT_REM = AUDIT + "contentRemoval";
041    public static final String METADATA_MOD = AUDIT + "metadataModification";
042
043    public static final String CONTENT_ADD = EVENT_TYPE + "ing";
044    public static final String OBJECT_ADD = EVENT_TYPE + "cre";
045    public static final String OBJECT_REM = EVENT_TYPE + "del";
046
047    public static final String PREMIS_TIME = PREMIS + "hasEventDateTime";
048    public static final String PREMIS_AGENT = PREMIS + "hasEventRelatedAgent";
049    public static final String PREMIS_TYPE = PREMIS + "hasEventType";
050
051    public static final String RDF_TYPE = RDF_NAMESPACE + "type";
052
053    public static final String BINARY_TYPE = REPOSITORY + "Binary";
054    public static final String RESOURCE_CREATION = EVENT_NAMESPACE + "ResourceCreation";
055    public static final String RESOURCE_DELETION = EVENT_NAMESPACE + "ResourceDeletion";
056    public static final String RESOURCE_MODIFICATION = EVENT_NAMESPACE + "ResourceModification";
057
058    private AuditProperties() {
059        // prevent instantiation
060    }
061}