return super.canAccess(workspaceName);
}
private boolean sanityCheck() throws RepositoryException {
if (this.accessManagerPlugin == null) {
AccessManagerPluginFactory factory = this.accessManagerFactoryTracker.getFactory(this);
if (factory == null) {
if ( pluginWarning == 0 ) {
pluginWarning++;
log.warn("No pluggable AccessManager available, falling back to DefaultAccessManager");
} else {
log.debug("No pluggable AccessManager available, falling back to DefaultAccessManager");
}
return false;
}
this.accessManagerPlugin = factory.getAccessManager();
try {
this.accessManagerPlugin.init(this.subject, this.session);
} catch (Exception e) {
throw new RepositoryException(e);
}