com.caucho.portal.generic
Class Constraint

java.lang.Object
  extended by com.caucho.portal.generic.Constraint

public abstract class Constraint
extends java.lang.Object


Field Summary
static int SC_EXCLUDE
          Return value for check(), indicates that the request cannot proceed for the current portlet but other portlets can continue to be processed.
static int SC_FAIL
          Return value for check(), indicates that the request cannot proceed for the current portlet.
static int SC_FORBIDDEN
          Return value for check(), indicates that the client is not authorized for the current portlet.
static int SC_PASS
          Return value for check(), indicates that the request can proceed
 
Constructor Summary
Constraint()
           
 
Method Summary
abstract  int check(PortletRequest request, PortletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SC_PASS

public static final int SC_PASS
Return value for check(), indicates that the request can proceed

See Also:
Constant Field Values

SC_EXCLUDE

public static final int SC_EXCLUDE
Return value for check(), indicates that the request cannot proceed for the current portlet but other portlets can continue to be processed.

See Also:
Constant Field Values

SC_FAIL

public static final int SC_FAIL
Return value for check(), indicates that the request cannot proceed for the current portlet. The constraint is passed to Window#handleConstraint(ConstraintFailureEvent).

See Also:
Constant Field Values

SC_FORBIDDEN

public static final int SC_FORBIDDEN
Return value for check(), indicates that the client is not authorized for the current portlet. The constraint is passed to Window#handleConstraint(ConstraintFailureEvent).

See Also:
Constant Field Values
Constructor Detail

Constraint

public Constraint()
Method Detail

check

public abstract int check(PortletRequest request,
                          PortletResponse response)