NIHVIVO-2299 Rename Actions.EMPTY to Actions.AUTHORIZED, for consistency.
This commit is contained in:
parent
e72604c727
commit
69dd3019a7
4 changed files with 5 additions and 5 deletions
|
@ -31,12 +31,12 @@ import edu.cornell.mannlib.vitro.webapp.auth.requestedAction.ifaces.RequestedAct
|
|||
public class Actions {
|
||||
private static final Log log = LogFactory.getLog(Actions.class);
|
||||
|
||||
public static final Actions EMPTY = new Actions();
|
||||
public static final Actions AUTHORIZED = new Actions();
|
||||
public static final Actions UNAUTHORIZED = new Actions(
|
||||
new UnauthorizedAction());
|
||||
|
||||
public static Actions notNull(Actions actions) {
|
||||
return (actions == null) ? EMPTY : actions;
|
||||
return (actions == null) ? AUTHORIZED : actions;
|
||||
}
|
||||
|
||||
private final List<Set<RequestedAction>> clauseList;
|
||||
|
|
|
@ -67,7 +67,7 @@ public abstract class VitroAjaxController extends HttpServlet {
|
|||
*/
|
||||
@SuppressWarnings("unused")
|
||||
protected Actions requiredActions(VitroRequest vreq) {
|
||||
return Actions.EMPTY;
|
||||
return Actions.AUTHORIZED;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -39,7 +39,7 @@ public class AdminLoginController extends FreemarkerHttpServlet {
|
|||
|
||||
@Override
|
||||
protected Actions requiredActions(VitroRequest vreq) {
|
||||
return Actions.EMPTY; // No requirements to use this page.
|
||||
return Actions.AUTHORIZED; // No requirements to use this page.
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -121,7 +121,7 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
|
|||
*/
|
||||
@SuppressWarnings("unused")
|
||||
protected Actions requiredActions(VitroRequest vreq) {
|
||||
return Actions.EMPTY;
|
||||
return Actions.AUTHORIZED;
|
||||
}
|
||||
|
||||
// Subclasses will override
|
||||
|
|
Loading…
Add table
Reference in a new issue