@Override public boolean isReadOnly(ELContext context, Object base, Object property) { if (base == null) { String variable = (String) property; return !variableScope.hasVariable(variable); } return true; }
public boolean containsKey(Object key) { return variableScopeKey.equals(key) || KEYS.contains(key)|| variableScope.hasVariable((String) key); }
@Override public void setValue(ELContext context, Object base, Object property, Object value) { if (base == null) { String variable = (String) property; if (variableScope.hasVariable(variable)) { variableScope.setVariable(variable, value); } } }
public boolean hasVariable(String variableName) { if (hasVariableLocal(variableName)) { return true; } VariableScope parentScope = getParentVariableScope(); if (parentScope != null) { return parentScope.hasVariable(variableName); } return false; }
return Authentication.getAuthenticatedUserId(); } else { if (variableScope.hasVariable(variable)) { context.setPropertyResolved(true); // if not set, the next
public boolean isReadOnly(ELContext context, Object base, Object property) { if (base == null) { String variable = (String) property; return !variableScope.hasVariable(variable); } return true; }
public boolean isReadOnly(ELContext context, Object base, Object property) { if (base == null) { String variable = (String) property; return !variableScope.hasVariable(variable); } return true; }
public boolean containsKey(Object key) { return variableScopeKey.equals(key) || variableScope.hasVariable((String) key); }
public boolean containsKey(Object key) { return variableScopeKey.equals(key) || KEYS.contains(key)|| variableScope.hasVariable((String) key); }
public void setValue(ELContext context, Object base, Object property, Object value) { if (base == null) { String variable = (String) property; if (variableScope.hasVariable(variable)) { variableScope.setVariable(variable, value); } } }
public void setValue(ELContext context, Object base, Object property, Object value) { if (base == null) { String variable = (String) property; if (variableScope.hasVariable(variable)) { variableScope.setVariable(variable, value); } } }
public boolean hasVariable(String variableName) { if (hasVariableLocal(variableName)) { return true; } VariableScope parentScope = getParentVariableScope(); if (parentScope!=null) { return parentScope.hasVariable(variableName); } return false; }
public boolean hasVariable(String variableName) { if (hasVariableLocal(variableName)) { return true; } VariableScope parentScope = getParentVariableScope(); if (parentScope!=null) { return parentScope.hasVariable(variableName); } return false; }
public boolean hasVariable(String variableName) { if (hasVariableLocal(variableName)) { return true; } VariableScope parentScope = getParentVariableScope(); if (parentScope != null) { return parentScope.hasVariable(variableName); } return false; }
public Object getValue(ELContext context, Object base, Object property) { if (base == null) { String variable = (String) property; // according to javadoc, can only be a String if ((EXECUTION_KEY.equals(property) && variableScope instanceof ExecutionEntity) || (TASK_KEY.equals(property) && variableScope instanceof TaskEntity)) { context.setPropertyResolved(true); return variableScope; } else if (EXECUTION_KEY.equals(property) && variableScope instanceof TaskEntity) { context.setPropertyResolved(true); return ((TaskEntity) variableScope).getExecution(); } else if (LOGGED_IN_USER_KEY.equals(property)) { context.setPropertyResolved(true); return Authentication.getAuthenticatedUserId(); } else { if (variableScope.hasVariable(variable)) { context.setPropertyResolved(true); // if not set, the next elResolver in the CompositeElResolver will be called return variableScope.getVariable(variable); } } } // property resolution (eg. bean.value) will be done by the // BeanElResolver (part of the CompositeElResolver) // It will use the bean resolved in this resolver as base. return null; }
public Object getValue(ELContext context, Object base, Object property) { if (base == null) { String variable = (String) property; // according to javadoc, can only be a String if( (EXECUTION_KEY.equals(property) && variableScope instanceof ExecutionEntity) || (TASK_KEY.equals(property) && variableScope instanceof TaskEntity) ) { context.setPropertyResolved(true); return variableScope; } else if (EXECUTION_KEY.equals(property) && variableScope instanceof TaskEntity) { context.setPropertyResolved(true); return ((TaskEntity) variableScope).getExecution(); } else if(LOGGED_IN_USER_KEY.equals(property)){ context.setPropertyResolved(true); return Authentication.getAuthenticatedUserId(); } else { if (variableScope.hasVariable(variable)) { context.setPropertyResolved(true); // if not set, the next elResolver in the CompositeElResolver will be called return variableScope.getVariable(variable); } } } // property resolution (eg. bean.value) will be done by the BeanElResolver (part of the CompositeElResolver) // It will use the bean resolved in this resolver as base. return null; }