Interface RequiresActions


  • public interface RequiresActions
    Interface 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 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.