All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.anosite.photoserver.api.access.DefaultAccessProvider Maven / Gradle / Ivy

package net.anotheria.anosite.photoserver.api.access;

import net.anotheria.anosite.photoserver.presentation.delivery.DeliveryConfig;
import net.anotheria.anosite.photoserver.shared.vo.PhotoVO;

import java.util.Map;

/**
 * Default access provider.
 *
 * @author Alexandr Bolbat
 */
public class DefaultAccessProvider implements AccessProvider {

	@Override
	public ViewAccessResponse isViewAllowed(final long photoId, final Map parameters) {
		return DeliveryConfig.getInstance().getDefaultViewAccessResponse();
	}

	@Override
	public ViewAccessResponse isViewAllowed(final PhotoVO photo, final Map parameters) {
		return DeliveryConfig.getInstance().getDefaultViewAccessResponse();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy