writeElement(writer, Element.ALLOW_LANGUAGE, permission.getAllowLanguage().toString()); if (permission.getCondition() != null) { if (permission.getConstraint() != null) { writeElement(writer, Element.CONDITION, permission.getCondition(), new String[] {Element.CONSTRAINT.getLocalName(), String.valueOf(permission.getCondition())}); } else { writeElement(writer, Element.CONDITION, permission.getCondition());
writeElement(writer, Element.ALLOW_LANGUAGE, permission.getAllowLanguage().toString()); if (permission.getCondition() != null) { if (permission.getConstraint() != null) { writeElement(writer, Element.CONDITION, permission.getCondition(), new String[] {Element.CONSTRAINT.getLocalName(), String.valueOf(permission.getCondition())}); } else { writeElement(writer, Element.CONDITION, permission.getCondition());
if (dp.getCondition() != null) { p.setCondition(dp.getCondition(), dp.getConstraint());
assertEquals("col1 = user()", p.getCondition()); assertFalse(p.getConstraint());
if (dp.getCondition() != null) { p.setCondition(dp.getCondition(), dp.getConstraint());
if (dp.getCondition() != null) { p.setCondition(dp.getCondition(), dp.getConstraint());