07 Mar, 2014
2 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10498 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
* migrate opendj-config LDAP client support to SDK APIs * refactored unit tests to use SDK's memory backend. git-svn-id: https://svn.forgerock.org/opendj/trunk@10497 41b1ffd8-f28e-4786-ab96-9950f0a78031
06 Mar, 2014
7 commits
-
Code review: Matthew Swift MatchingRuleImpl.java, MatchingRule.java: Renamed getIndexer() to getIndexers() and made it return a Collection. *MatchingRuleImpl.java: Renamed getIndexer() to getIndexers() and made it return a Collection. Renamed the parameter of Assertion.matches() to normalizedAttributeValue. clirr-ignored-api-changes.xml: Ignored the method getIndexers() newly added to Assertion's interface. git-svn-id: https://svn.forgerock.org/opendj/trunk@10495 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Added the index query factory support code. This copies little piece of code from OpenDJ server code base, namely JE backend and makes it more abstract so it can be reused. Ensured file history is kept. Assertion.java: Added createIndexQuery(IndexQueryFactory). IndexQueryFactory.java, Indexer.java, IndexingOptions.java: ADDED MatchingRuleImpl.java: Added getIndexer() and isIndexingSupported(). MatchingRule.java: Added getIndexer(). AbstractMatchingRuleImpl.java: Added inner class DefaultIndexer. Implemented createIndexQuery() for inner classes DefaultAssertion, and anonymous inner class UNDEFINED_ASSERTION. Implemented isIndexingSupported(). AbstractApproximateMatchingRuleImpl.java, AbstractEqualityMatchingRuleImpl.java: Implemented getIndexer(). AbstractOrderingMatchingRuleImpl.java: Implemented getIndexer(). Implemented createIndexQuery() for anonymous inner classes. AbstractSubstringMatchingRuleImpl.java: Implemented getIndexer(). Implemented createIndexQuery() for inner class DefaultSubstringAssertion. Added SubstringIndexer inner class. Added javadocs. CertificateExactMatchingRuleImpl.java: Now extends AbstractEqualityMatchingRuleImpl. EqualLengthApproximateMatchingRuleImpl.java: Implemented createIndexQuery() for anonymous inner class. KeywordEqualityMatchingRuleImpl.java Implemented createIndexQuery() for anonymous inner class. Implemented getIndexer(). clirr-ignored-api-changes.xml: Ignored changes due to methods added to interfaces. git-svn-id: https://svn.forgerock.org/opendj/trunk@10494 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Added the index query factory support code. This copies little piece of code from OpenDJ server code base, namely JE backend and makes it more abstract so it can be reused. Ensured file history is kept. Assertion.java: Added createIndexQuery(IndexQueryFactory). IndexQueryFactory.java, Indexer.java, IndexingOptions.java: ADDED MatchingRuleImpl.java: Added getIndexer() and isIndexingSupported(). MatchingRule.java: Added getIndexer(). AbstractMatchingRuleImpl.java: Added inner class DefaultIndexer. Implemented createIndexQuery() for inner classes DefaultAssertion, and anonymous inner class UNDEFINED_ASSERTION. Implemented isIndexingSupported(). AbstractApproximateMatchingRuleImpl.java, AbstractEqualityMatchingRuleImpl.java: Implemented getIndexer(). AbstractOrderingMatchingRuleImpl.java: Implemented getIndexer(). Implemented createIndexQuery() for anonymous inner classes. AbstractSubstringMatchingRuleImpl.java: Implemented getIndexer(). Implemented createIndexQuery() for inner class DefaultSubstringAssertion. Added SubstringIndexer inner class. Added javadocs. CertificateExactMatchingRuleImpl.java: Now extends AbstractEqualityMatchingRuleImpl. EqualLengthApproximateMatchingRuleImpl.java: Implemented createIndexQuery() for anonymous inner class. KeywordEqualityMatchingRuleImpl.java Implemented createIndexQuery() for anonymous inner class. Implemented getIndexer(). clirr-ignored-api-changes.xml: Ignored changes due to methods added to interfaces. git-svn-id: https://svn.forgerock.org/opendj/trunk@10491 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Added the index query factory support code. This copies little piece of code from OpenDJ server code base, namely JE backend and makes it more abstract so it can be reused. Assertion.java: Added createIndexQuery(IndexQueryFactory). IndexQueryFactory.java, Indexer.java, IndexingOptions.java: ADDED MatchingRuleImpl.java: Added getIndexer() and isIndexingSupported(). MatchingRule.java: Added getIndexer(). AbstractMatchingRuleImpl.java: Added inner class DefaultIndexer. Implemented createIndexQuery() for inner classes DefaultAssertion, and anonymous inner class UNDEFINED_ASSERTION. Implemented isIndexingSupported(). AbstractApproximateMatchingRuleImpl.java, AbstractEqualityMatchingRuleImpl.java: Implemented getIndexer(). AbstractOrderingMatchingRuleImpl.java: Implemented getIndexer(). Implemented createIndexQuery() for anonymous inner classes. AbstractSubstringMatchingRuleImpl.java: Implemented getIndexer(). Implemented createIndexQuery() for inner class DefaultSubstringAssertion. Added SubstringIndexer inner class. Added javadocs. CertificateExactMatchingRuleImpl.java: Now extends AbstractEqualityMatchingRuleImpl. EqualLengthApproximateMatchingRuleImpl.java: Implemented createIndexQuery() for anonymous inner class. KeywordEqualityMatchingRuleImpl.java Implemented createIndexQuery() for anonymous inner class. Implemented getIndexer(). clirr-ignored-api-changes.xml: Ignored changes due to methods added to interfaces. git-svn-id: https://svn.forgerock.org/opendj/trunk@10489 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- Added static final readPassword() to ConsoleApplication. - Added messages. - Added to CliConstants GLOBAL_ADMIN_UID && DEFAULT_ADMINISTRATION_CONNECTOR_PORT git-svn-id: https://svn.forgerock.org/opendj/trunk@10488 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
in "tests" jar to allow usage by other modules * Handle property methods with booleans * Default to mockito behavior (default values) for non-property methods or property methods with no default value in configuration * Add more unit tests to ConfigurationMockTest class git-svn-id: https://svn.forgerock.org/opendj/trunk@10487 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
… an LDAP Password Modify extended operation git-svn-id: https://svn.forgerock.org/opendj/trunk@10486 41b1ffd8-f28e-4786-ab96-9950f0a78031
05 Mar, 2014
5 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10483 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Added ByteStringBuilder(ByteSequence) and setByte(int, byte). ByteStringBuilderTestCase.java: Added tests. git-svn-id: https://svn.forgerock.org/opendj/trunk@10481 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Preparation work for adding the index query factory support code. AbstractMatchingRuleImpl.java: Renamed DefaultEqualityAssertion to DefaultAssertion. Made DefaultAssertion ctor private. Added equality() and approximate() static methods + indexID field to DefaultAssertion. *.java: Consequence of this change. Some code cleanups. CertificateExactMatchingRuleImpl.java: Reworked the code a bit + extracted method normalizeDN(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10480 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10479 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10476 41b1ffd8-f28e-4786-ab96-9950f0a78031
04 Mar, 2014
2 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10475 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10471 41b1ffd8-f28e-4786-ab96-9950f0a78031
03 Mar, 2014
11 commits
-
…a schema that can be changed, leading to unexpected behavior * SchemaBuilder: use Reject for ensuring that matching rules and syntaxes have not already been validated when they are added to a schema builder * Syntax: inherit matching rules from default syntax * SyntaxTestCase: remove invalid testCreatesEmptySyntax() test, add two tests for default syntax substitution. git-svn-id: https://svn.forgerock.org/opendj/trunk@10468 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10467 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10466 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
that can be changed, leading to unexpected behavior * Duplicate syntaxes and matching rules when they are taken from another schema * Add new methods buildSyntax() and buildMatchingRule() to allow addition without lazy initialization * Add new method isValidated() to check if a syntax or a matching rule has been validated * Remove workarounds from unit tests git-svn-id: https://svn.forgerock.org/opendj/trunk@10465 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10462 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Removed unreachable code. Renamed trimConsecutiveSpacesInStringList() into trimUnnecessarySpacesInStringList(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10461 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Made code more readable by extracting method canMapToSpace(). In prepareUnicode(), extracted local variable 'b' earlier in the code. Inlined map() method. Code cleanup. SchemaUtils.java: Removed used of temporary LocalizableMessage variables + useless comments. SchemaUtilsTest.java: Added testNormalizeNumericString(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10460 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Added more tests. git-svn-id: https://svn.forgerock.org/opendj/trunk@10459 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Change visibility of ServerManagementContext constructor to public to enable instantiation from other package. git-svn-id: https://svn.forgerock.org/opendj/trunk@10458 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Add configuration for schema providers * SchemaProviderConfiguration : abstract definition of provider * CoreSchemaProviderConfiguration : provides the core schema, including core matching rules and syntaxes * RootConfiguration : includes one-to-many relation to schema providers git-svn-id: https://svn.forgerock.org/opendj/trunk@10456 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Tests fail randomly depending on order of tests run due to this issue. The workaround allow to ensure matching rules from the core schema are not corrupted. git-svn-id: https://svn.forgerock.org/opendj/trunk@10454 41b1ffd8-f28e-4786-ab96-9950f0a78031
02 Mar, 2014
1 commit
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10452 41b1ffd8-f28e-4786-ab96-9950f0a78031
28 Feb, 2014
7 commits
-
git-svn-id: https://svn.forgerock.org/opendj/trunk@10451 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Factorized duplicated code from org.forgerock.opendj.ldap.schema into SchemaUtils.java git-svn-id: https://svn.forgerock.org/opendj/trunk@10449 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Preparation work for removing org.opends.server.api.MatchingRule.normalizeAssertionValue(). Updated copyright for r10447. Assertion.java: In matches(), renamed attributeValue parameter to normalizedAttributeValue. MatchingRuleImpl.java: In getAssertion(), renamed value parameter to assertionValue. Fixed javadocs. AbstractApproximateMatchingRuleImpl.java, AbstractEqualityMatchingRuleImpl.java: ADDED Made the relevant approximate and equality matching rule classes subclass these new ones. AbstractMatchingRuleImpl.java: In getAssertion(), returned UNDEFINED_ASSERTION. Extracted method trimConsecutiveSpaces() here from several places in the code. WordEqualityMatchingRuleImpl.java: REMOVED Implementation was the same as KeywordEqualityMatchingRuleImpl so reused that class instead + updated CoreSchemaImpl. KeywordEqualityMatchingRuleImpl.java: Extracted method isAcceptable(). Removed useless calls to String.intern() on String literals. IntegerFirstComponentEqualityMatchingRuleImpl.java: In getAssertion(), used DefaultEqualityAssertion instead of custom built Assertion. EnumSyntaxTestCase.java: Made the code more readable. *.java: Simplified code by using ConditionResult.valueOf(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10448 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Preparation work for removing org.opends.server.api.MatchingRule.normalizeAssertionValue(). Assertion.java: In matches(), renamed attributeValue parameter to normalizedAttributeValue. MatchingRuleImpl.java: In getAssertion(), renamed value parameter to assertionValue. Fixed javadocs. AbstractApproximateMatchingRuleImpl.java, AbstractEqualityMatchingRuleImpl.java: ADDED Made the relevant approximate and equality matching rule classes subclass these new ones. AbstractMatchingRuleImpl.java: In getAssertion(), returned UNDEFINED_ASSERTION. Extracted method trimConsecutiveSpaces() here from several places in the code. WordEqualityMatchingRuleImpl.java: REMOVED Implementation was the same as KeywordEqualityMatchingRuleImpl so reused that class instead + updated CoreSchemaImpl. KeywordEqualityMatchingRuleImpl.java: Extracted method isAcceptable(). Removed useless calls to String.intern() on String literals. IntegerFirstComponentEqualityMatchingRuleImpl.java: In getAssertion(), used DefaultEqualityAssertion instead of custom built Assertion. EnumSyntaxTestCase.java: Made the code more readable. *.java: Simplified code by using ConditionResult.valueOf(). git-svn-id: https://svn.forgerock.org/opendj/trunk@10447 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
…erver() to match @BeforeClass git-svn-id: https://svn.forgerock.org/opendj/trunk@10446 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
add '/' to make the path absolute, to ensure manifest is found when using opendj-config as a jar dependency git-svn-id: https://svn.forgerock.org/opendj/trunk@10445 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
Fix build break: use older JDK6 socket option APIs. git-svn-id: https://svn.forgerock.org/opendj/trunk@10444 41b1ffd8-f28e-4786-ab96-9950f0a78031
27 Feb, 2014
4 commits
-
* throw a connect error when a connection attempt times out instead of a timeout error, as it seems more appropriate. git-svn-id: https://svn.forgerock.org/opendj/trunk@10441 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
* improve Javadoc for TimeoutEventListener.handleTimeout() git-svn-id: https://svn.forgerock.org/opendj/trunk@10440 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
* added support for setting connect timeout in LDAPOptions * added support for other common socket options: TCP nodelay, keepalive, linger, and reuseaddr git-svn-id: https://svn.forgerock.org/opendj/trunk@10439 41b1ffd8-f28e-4786-ab96-9950f0a78031
-
- Added CONFLICTING_ARGS to ReturnCode. - Added canWrite() to Utils + unit tests. - Replaced calls to org.opends.quicksetup.util.Utils.canWrite by com.forgerock.opendj.cli.Utils.canWrite. - Removed the TablePrinter classes from org.opends.server.util.table as they are now in the opendj-cli. - Minor code cleanup on DSConfig package. (reorganize imports). git-svn-id: https://svn.forgerock.org/opendj/trunk@10435 41b1ffd8-f28e-4786-ab96-9950f0a78031
26 Feb, 2014
1 commit
-
SDK DN class Purpose is to ease migration to OpenDJ 3 server by minimizing code that breaks. git-svn-id: https://svn.forgerock.org/opendj/trunk@10434 41b1ffd8-f28e-4786-ab96-9950f0a78031