Interface RequiresActions
-
public interface RequiresActionsInterface to objects that provide a list of Actions that are required for the object to be used. This is intended to provide a way to setup DataGetter objects to be used with the FreemarkerHttpServlet.requiredActions() method.- Author:
- bdc34
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorizationRequestrequiredActions(VitroRequest vreq)Returns Actions that are required to be authorized for the object to be used.
-
-
-
Method Detail
-
requiredActions
AuthorizationRequest requiredActions(VitroRequest vreq)
Returns Actions that are required to be authorized for the object to be used. The code that is calling this method could use methods from PolicyHelper to check if the request has authorization to do these Actions. The code calling this method would then have the ability to deny the action if it is not authorized.- Parameters:
vreq- Vitro request- Returns:
- Should not be null. Return Actions.AUTHORIZED if no authorization is required to do use the object.
-
-