@Test public void testBasicEquals() { SolarisFilterTranslator sft = new SolarisFilterTranslator(ObjectClass.ACCOUNT); final String username = "foobar"; final String connectorAttrName = Name.NAME; Node result = sft.createEqualsExpression(new EqualsFilter(AttributeBuilder.build( connectorAttrName, username)), false); assertNotNull(result); assertTrue(result instanceof EqualsNode); EqualsNode eq = (EqualsNode) result; assertEquals(AccountAttribute.forAttributeName(connectorAttrName).getNative(), eq .getAttributeName()); assertEquals(username, eq.getSingleValue()); }
@Override protected Node createEqualsExpression(EqualsFilter filter, boolean not) { return new EqualsNode(translateFromConnectorAttribute(filter.getName()), not, filter .getAttribute().getValue()); }
SolarisFilterTranslator extends AbstractFilterTranslator<Node> { @Override protected Node createEqualsExpression(EqualsFilter filter, boolean not) { return new EqualsNode(translateFromConnectorAttribute(filter.getName()), not, filter .getAttribute().getValue()); } }
SolarisFilterTranslator extends AbstractFilterTranslator<Node> { @Override protected Node createEqualsExpression(EqualsFilter filter, boolean not) { return new EqualsNode(translateFromConnectorAttribute(filter.getName()), not, filter .getAttribute().getValue()); } SolarisFilterTranslator(ObjectClass oclass); }
SolarisFilterTranslator extends AbstractFilterTranslator<Node> { @Override protected Node createEqualsExpression(EqualsFilter filter, boolean not) { return new EqualsNode(translateFromConnectorAttribute(filter.getName()), not, filter .getAttribute().getValue()); } SolarisFilterTranslator(ObjectClass oclass);  }
SolarisFilterTranslator extends AbstractFilterTranslator<Node> { @Override protected Node createEqualsExpression(EqualsFilter filter, boolean not) { return new EqualsNode(translateFromConnectorAttribute(filter.getName()), not, filter .getAttribute().getValue()); } SolarisFilterTranslator(ObjectClass oclass);   }