FilterCriterion fc = new PropertyEquality
("managerName", managerNameFilter);
if (processFilter == null) {
processFilter = fc;
} else {
processFilter = new AndOperation(processFilter, fc);
}
}
if (processKeyFilter.length() > 0) {
FilterCriterion fc
= new PropertyEquality ("key", processKeyFilter);
if (processFilter == null) {
processFilter = fc;
} else {
processFilter = new AndOperation(processFilter, fc);
}
}
if (contextVariable.length() > 0) {
FilterCriterion fc
= new ContextVariableEquality
(contextVariable, contextValue);
if (processFilter == null) {
processFilter = fc;
} else {
processFilter = new AndOperation(processFilter, fc);
}
}
FacesContext fc = FacesContext.getCurrentInstance();
PortletEnvironment portletEnv = (PortletEnvironment)
fc.getApplication().getVariableResolver().resolveVariable