Skip to content

Commit

Permalink
Merge branch 'release/7.3.4.0.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
gabibeyo committed Oct 9, 2019
2 parents 0140a6e + 31eeed7 commit 03ec3d9
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ DDC is a Maven project (binaries are deployed in Maven Central) so you can impor
<dependency>
<artifactId>ddc-core</artifactId>
<groupId>com.imperva.ddc</groupId>
<version>7.3.3.0.0.0</version>
<version>7.3.4.0.0.0</version>
</dependency>
<!--To work with ddc service wrapper add the following dependency-->
<dependency>
<artifactId>ddc-service</artifactId>
<groupId>com.imperva.ddc</groupId>
<version>7.3.3.0.0.0</version>
<version>7.3.4.0.0.0</version>
</dependency>
~~~
Expand Down
2 changes: 1 addition & 1 deletion source/ddc-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.imperva.ddc</groupId>
<artifactId>domain-directory-controller</artifactId>
<version>7.3.3.0.0.1-SNAPSHOT</version>
<version>7.3.4.0.0.0</version>
</parent>

<artifactId>ddc-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ public QueryAssembler addPhrase(FieldType fieldType, PhraseOperator phraseOperat
return this;
}

public QueryAssembler addPhrase(String fieldName, PhraseOperator phraseOperator, String value) {
Phrase phrase = new Phrase();
phrase.setValue(value);
phrase.setPhraseOperator(phraseOperator);
this.addPhrase(fieldName, phrase);
return this;
}

/**
* Adds a Phrase to the LDAP query
* @param fieldType {@link FieldType} One of the available query attributes
Expand All @@ -44,12 +52,21 @@ public QueryAssembler addPhrase(FieldType fieldType, Phrase phrase) {
return this;
}


public QueryAssembler addPhrase(String fieldName, Phrase phrase) {
Field field = new Field();
field.setName(fieldName);
phrase.setAttribute(field);
searchPhrases.add(phrase);
return this;
}

/**
* Adds a Sentence to the LDAP query
* @param sentence {@link Sentence} The Sentence to add
* @return {@link QueryAssembler} Fluent API
*/
public QueryAssembler addSentence(Sentence sentence){
public QueryAssembler addSentence(Sentence sentence){
searchPhrases.add(sentence);
return this;
}
Expand Down
4 changes: 2 additions & 2 deletions source/ddc-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.imperva.ddc</groupId>
<artifactId>domain-directory-controller</artifactId>
<version>7.3.3.0.0.1-SNAPSHOT</version>
<version>7.3.4.0.0.0</version>
</parent>

<artifactId>ddc-service</artifactId>
Expand All @@ -14,7 +14,7 @@
<dependency>
<groupId>com.imperva.ddc</groupId>
<artifactId>ddc-core</artifactId>
<version>7.3.3.0.0.1-SNAPSHOT</version>
<version>7.3.4.0.0.0</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion source/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<packaging>pom</packaging>
<groupId>com.imperva.ddc</groupId>
<artifactId>domain-directory-controller</artifactId>
<version>7.3.3.0.0.1-SNAPSHOT</version>
<version>7.3.4.0.0.0</version>
<name>Domain Directory Controller</name>
<description>
DDC is an Active Directory Java SDK designed to simplify AD interaction for small, medium and large projects.
Expand Down

0 comments on commit 03ec3d9

Please sign in to comment.