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.auth; 019 020import java.net.URI; 021import java.util.Set; 022 023/** 024 * @author whikloj 025 * @author acoburn 026 * @since 2015-08-25 027 */ 028public interface WebACAuthorization { 029 030 /** 031 * Get the set of acl:agents, empty set if none. 032 * 033 * @return set of acl:agents 034 */ 035 Set<String> getAgents(); 036 037 /** 038 * Get the set of acl:agentClasses, empty set if none. 039 * 040 * @return set of acl:agentClasses 041 */ 042 Set<String> getAgentClasses(); 043 044 /** 045 * Get the set of acl:modes, empty set if none. 046 * 047 * @return set of acl:modes 048 */ 049 Set<URI> getModes(); 050 051 /** 052 * Get the set of strings directly linked from this ACL, empty set if none. 053 * 054 * @return set of String 055 */ 056 Set<String> getAccessToURIs(); 057 058 /** 059 * Get the set of strings describing the rdf:types for this ACL, empty set if none. 060 * 061 * @return set of Strings 062 */ 063 Set<String> getAccessToClassURIs(); 064 065 /** 066 * Get the set of strings describing the agent groups for this ACL, empty set if none. 067 * 068 * @return set of Strings 069 */ 070 Set<String> getAgentGroups(); 071 072 /** 073 * Get the set of strings describing the defaults for this ACL, empty set if none. 074 * 075 * @return set of Strings 076 */ 077 Set<String> getDefaults(); 078}