net.anotheria.anosite.photoserver.api.access.DefaultAccessProvider Maven / Gradle / Ivy
The newest version!
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
* @version $Id: $Id
*/
public class DefaultAccessProvider implements AccessProvider {
/** {@inheritDoc} */
@Override
public ViewAccessResponse isViewAllowed(final long photoId, final Map parameters) {
return DeliveryConfig.getInstance().getDefaultViewAccessResponse();
}
/** {@inheritDoc} */
@Override
public ViewAccessResponse isViewAllowed(final PhotoVO photo, final Map parameters) {
return DeliveryConfig.getInstance().getDefaultViewAccessResponse();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy