
org.fcrepo.auth.webac.ACLHandleImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fcrepo-auth-webac Show documentation
Show all versions of fcrepo-auth-webac Show documentation
An authorization module for the Fedora Commons Repository framework, implementing the
RDF-based WebAccessControl authorization mechanism, as proposed by the W3C. This makes
it possible to define fine-grained repository access controls on individual resources or
classes of resources to specific users and/or groups.
/*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree.
*/
package org.fcrepo.auth.webac;
import java.util.List;
import org.fcrepo.kernel.api.auth.ACLHandle;
import org.fcrepo.kernel.api.auth.WebACAuthorization;
import org.fcrepo.kernel.api.models.FedoraResource;
/**
* A simple class connecting an URI pointing to an ACL to a {@link FedoraResource} that points to that ACL.
*
* @author ajs6f
*/
public class ACLHandleImpl implements ACLHandle {
private final FedoraResource resource;
private final List authorizations;
/**
* Default constructor.
*
* @param resource the requested FedoraResource
* @param authorizations any authorizations associated with the uri
*/
public ACLHandleImpl(final FedoraResource resource, final List authorizations) {
this.resource = resource;
this.authorizations = authorizations;
}
@Override
public FedoraResource getResource() {
return resource;
}
@Override
public List getAuthorizations() {
return authorizations;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy