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

net.anotheria.anosite.guard.ConditionalGuard Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package net.anotheria.anosite.guard;

import net.anotheria.asg.data.DataObject;
import net.anotheria.asg.exception.ASGRuntimeException;

import jakarta.servlet.http.HttpServletRequest;

/**
 * A conditional guard guards any object and returns true only if the predefined condition is true in the objects context. ContentPageServlet and other CMS classes ignore 
 * objects which are guarded by not fulfilled guards. This is an easy but powerful mechanism to switch off objects in some cases. Guards are stateless, there will usually exists only one instance of a given guard
 * at the same time.
 * @author another
 *
 */
public interface ConditionalGuard {

	/**
	 * Returns true if the condition is fullfilled.
	 * @param object  TODO dummy comment for javadoc.
	 * @param req TODO dummy comment for javadoc.
	 * @return TODO dummy comment for javadoc.
	 * @throws ASGRuntimeException  TODO dummy comment for javadoc.
	 */
	boolean isConditionFullfilled(DataObject object, HttpServletRequest req) throws ASGRuntimeException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy