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.kernel.api.rdf; 019 020/** 021 * Kernel level API to hold the LdpPreferTag and internal logic decisions. 022 * @author whikloj 023 * @since 6.0.0 024 */ 025public interface LdpTriplePreferences { 026 027 /** 028 * What the prefer tag choice is. 029 */ 030 enum PreferChoice { 031 INCLUDE, 032 EXCLUDE, 033 SILENT 034 } 035 036 /** 037 * @return Whether to display user rdf based on this preference tag and internal defaults. 038 */ 039 boolean displayUserRdf(); 040 041 /** 042 * @return Whether to display membership triples based on this preference tag and internal defaults. 043 */ 044 boolean displayMembership(); 045 046 /** 047 * @return Whether to display containment triples based on this preference tag and internal defaults. 048 */ 049 boolean displayContainment(); 050 051 /** 052 * @return Whether to display inbound reference triples based on this preference tag and internal defaults. 053 */ 054 boolean displayReferences(); 055 056 /** 057 * @return Whether to display contained resources' triples based on this preference tag and internal defaults. 058 */ 059 boolean displayEmbed(); 060 061 /** 062 * @return Whether to display server managed triples based on this preference tag and internal defaults. 063 */ 064 boolean displayServerManaged(); 065 066}