Visits a {@code RESOURCE_VARIABLE} variable element by calling
{@code defaultAction}.

@param e {@inheritDoc}
@param p {@inheritDoc}
@return  the result of {@code defaultAction}
354884
@Override
    public R visitVariableAsResourceVariable(VariableElement e, P p) {
        return defaultAction(e, p);
    }
151177
public R visitArray(List<? extends AnnotationValue> vals, P p) {
        return defaultAction(vals, p);
    }
198702
@Override
    public R visitVariable(VariableElement e, P p) {
        return scan(e.getEnclosedElements(), p);
    }
1349265
@Override
    public R visitUnion(UnionType t, P p) {
        return defaultAction(t, p);
    }
18418
public static Object get(PageContext pc, Object coll, int[] types, Key[] keys, Object[][] args, Object defaultValue) throws PageException {
	if (coll == null) return defaultValue;
	int to = keys.length - 1;
	VariableUtilImpl vu = (VariableUtilImpl) pc.getVariableUtil();
	for (int i = 0; i <= to; i++) {
	    switch (types[i]) {
	    case TYPE_DATA:
		coll = vu.getCollection(pc, coll, keys[i], Null.NULL);
		break;
	    case TYPE_UDF_ARGS:
		coll = vu.callFunctionWithoutNamedValues(pc, coll, keys[i], args[i], false, Null.NULL);
		break;
	    case TYPE_UDF_NAMED_ARGS:
		coll = vu.callFunctionWithNamedValues(pc, coll, keys[i], args[i], false, Null.NULL);
		break;
	    case TYPE_BIF:
		coll = null;// TODO
		break;
	    }

	    if (coll == Null.NULL || (coll == null && i < to)) return defaultValue;
	}
	return coll;
    }
1035203
public boolean doPreAction() {

        String resourceName = getParamResource();
        try {
            boolean preActionDone = Boolean.valueOf(getParamPreActionDone()).booleanValue();
            if (!preActionDone) {
                // pre editor action not executed yet now check if a pre action class is given for the resource type
                CmsResource resource = getCms().readResource(resourceName, CmsResourceFilter.ALL);
                I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(resource.getTypeId());
                I_CmsPreEditorActionDefinition preAction = OpenCms.getWorkplaceManager().getPreEditorConditionDefinition(
                    type);
                if (preAction != null) {
                    return preAction.doPreAction(resource, this, getOriginalParams());
                }
            }
        } catch (Exception e) {
            // log error
            if (LOG.isErrorEnabled()) {
                LOG.error(e.getLocalizedMessage(), e);
            }
        }
        // nothing to be done as pre action, open the editor
        return false;
    }
1299641
@Override
    public R visitUses(UsesTree node, P p) {
        return defaultAction(node, p);
    }
1033272
@Override
    public R visitVersion(VersionTree node, P p) {
        return defaultAction(node, p);
    }
1090304
@Override
    public R visitUnknownBlockTag(UnknownBlockTagTree node, P p) {
        return defaultAction(node, p);
    }
1065213
@SuppressWarnings("deprecation")
    public void visitPubapi(Element e) {

        // Skip anonymous classes for now
        if (e == null)
            return;

        PubapiVisitor v = new PubapiVisitor();
        v.visit(e);
        publicApiPerClass.put((ClassSymbol) e, v.getCollectedPubApi());
    }
584667
public static void displayAction(
        CmsContainerElementBean element,
        I_CmsFormatterBean formatter,
        PageContext context,
        ServletRequest request,
        ServletResponse response) {

        displayAction(element, formatter, false, false, false, null, null, context, request, response);
    }
1188763
@Override
    public R visitReturn(ReturnTree node, P p) {
        return defaultAction(node, p);
    }
65746
@Override
    public R visitSince(SinceTree node, P p) {
        return defaultAction(node, p);
    }
339703
public int evaluate(Model mo, Class<? extends Action> a, Element e) throws SchedulerException {
        ActionDurationEvaluator<Element> ev = durations.get(a);
        if (ev == null) {
            throw new SchedulerModelingException(null, "Unable to estimate the duration of action '" + a.getSimpleName() + "' related to '" + e + "'");
        }
        int d = ev.evaluate(mo, e);
        if (d <= 0) {
            throw new SchedulerModelingException(null, "The duration for action " + a.getSimpleName() + " over '" + e + "' has been evaluated to a negative value (" + d + "). Unsupported");
        }
        return d;
    }
801717
@Override
    public R visitPackage(PackageElement e, P p) {
        assert e.getKind() == PACKAGE: "Bad kind on PackageElement";
        return defaultAction(e, p);
    }
1310969
protected Map<String, List<Object>> getReleasedByDefaultAttributes(final Principal p, final Map<String, List<Object>> attributes) {
        val ctx = ApplicationContextProvider.getApplicationContext();
        if (ctx != null) {
            LOGGER.trace("Located application context. Retrieving default attributes for release, if any");
            val props = ctx.getAutowireCapableBeanFactory().getBean(CasConfigurationProperties.class);
            val defaultAttrs = props.getAuthn().getAttributeRepository().getDefaultAttributesToRelease();
            LOGGER.debug("Default attributes for release are: [{}]", defaultAttrs);
            val defaultAttributesToRelease = new TreeMap<String, List<Object>>(String.CASE_INSENSITIVE_ORDER);
            defaultAttrs.forEach(key -> {
                if (attributes.containsKey(key)) {
                    LOGGER.debug("Found and added default attribute for release: [{}]", key);
                    defaultAttributesToRelease.put(key, attributes.get(key));
                }
            });
            return defaultAttributesToRelease;
        }
        return new TreeMap<>();
    }
122957
@Override
    public R visitErroneous(ErroneousTree node, P p) {
        return defaultAction(node, p);
    }