10 Apr, 2015

8 commits

  • * IndexPanel.java
    ** Reformat
    ** Add final keyword
    ** Use list as declarative type
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12078 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • * NewBaseDNPanel.java
    ** validateAutomaticallyGenerated(final Set<LocalizableMessage> errors)
    *** Extract local constants
    *** Add final keyword
    
    * StatusGenericPanel.java
    ** checkIntValue(Collection<LocalizableMessage> errors, String stringValue,int minValue, int maxValue, LocalizableMessage errMsg)
    *** Now return a boolean to allow client code to use conditionnal code after call
    *** Don't throw runtime exception anymore (Thanks Jean-Noël for refactoring advices!)
    
    * ExportLDIFPanel.java
    ** okClicked()
    ** Consequences of checkIntValue changes
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12077 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • * NewBaseDNPanel.java
    ** refactor okClicked()
    *** Reformat
    *** Add final keyword
    *** Extract local NEW_BACKEND_TEXT constant
    *** Extracted methods
    **** resetLabelAsValid()
    **** validateBackendName(final Set<BackendDescriptor> existingBackends, final Set<LocalizableMessage> errors)
    **** validateBaseDN(final String backendName, final Set<BackendDescriptor> existingBackends, final Set<LocalizableMessage> errors)
    **** validateImportLDIFFilePath(final Set<LocalizableMessage> errors)
    **** validateAutomaticallyGenerated(final Set<LocalizableMessage> errors)
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12076 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • * opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/NewBaseDNPanel.java
    ** Reformat
    ** Removes unecessary javadocs
    ** Use interface List declarative type instead of ArrayList
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12075 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • git-svn-id: https://svn.forgerock.org/opendj/trunk@12074 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • git-svn-id: https://svn.forgerock.org/opendj/trunk@12073 41b1ffd8-f28e-4786-ab96-9950f0a78031
    ian.packer
     
  • Problem was due to multiple threads sharing the same Persistit exchanges. Generally speaking DBs do not like mixing transactions and threads.
    By using transactions for each DB access, the problem disappears.
    Are we losing any performance by using full fledged transactions? Could we somehow do these operations in a thread safe manner without the need to use transactions?
    
    Importer.java:
    Use transactions for read/write operations on DN cache.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12072 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • Added generics
    Ignored javadocs warnings
    etc.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12071 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

09 Apr, 2015

7 commits


08 Apr, 2015

8 commits

  • Removed unnecessary declaration of toString() in an interface.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12063 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • * Installer.java
    ** Minor refactorings in method updateUserDataForNewSuffixOptionsPanel(QuickSetup)
    *** Fix minor UI bug with invalid/valid fields
    *** Reformat
    *** Add final keyword
    *** Replace hardcoded line separator by constant
    *** Extracted methods:
    **** checkProvidedBaseDn(QuickSetup, List<String>, List<LocalizableMessage>)
    **** checkImportLDIFFile(QuickSetup, List, boolean, List)
    **** checkImportGeneratedData(QuickSetup, List, boolean, List)
    **** checkImportData(QuickSetup, List, boolean, List)
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12062 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • Protect against accidental changes.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12061 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • Removed more duplicated code.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12060 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • git-svn-id: https://svn.forgerock.org/opendj/trunk@12059 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • AttributeIndex.java:
    Removed extensibleIndexesMapping field + getter getExtensibleIndexes() + computeExtensibleIndexesMapping() and isDefaultIndex().
    Removed getDefaultNameToIndexes(), superseded by getNameToIndexes()
    
    Importer.java:
    Removed extensibleIndexMap, superseded by indexMap.
    Removed one fillIndexMap(), superseded by the other fillIndexMap()
    Removed processExtensibleIndexes().
    
    VerifyJob.java:
    Consequence of removing AttributeIndex.getDefaultNameToIndexes().
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12058 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • git-svn-id: https://svn.forgerock.org/opendj/trunk@12057 41b1ffd8-f28e-4786-ab96-9950f0a78031
    matthew
     
  • This patch prevents generated man pages
    from using the default host name of the build system.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12056 41b1ffd8-f28e-4786-ab96-9950f0a78031
    mark
     

07 Apr, 2015

17 commits

  • Partial revert of r11027 for entriesSent and referencesSent fields going from AtomicInteger to int (as pointed out by Ludo).
    
    
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12055 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • This patch moves long document strings out of properties files,
    replacing them with XIncluded files.
    
    Tested with a manual doc build and visual check.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12054 41b1ffd8-f28e-4786-ab96-9950f0a78031
    mark
     
  • * Utils.java
    ** Refactor getSetupEquivalentCommandLine(UserData) method:
    *** Reformat
    *** Add final keyword
    *** Change return type to List<?> instead of ArrayList<?>
    *** Extract addSecurityOptionSetupEquivalentCmdLine(List<String>, UserData) to make the code more readable
    
    * InstallDS.java
    ** Consequences of changes in Utils.java
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12053 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • Progressively getting rid of getExtensibleIndexes(), replaced by getNameToIndexes() wherever possible.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12052 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • In buildIndexes(), "fix" the code even though it always works today (because MatchingRule.getIndexers() only ever return singleton lists).
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12051 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • git-svn-id: https://svn.forgerock.org/opendj/trunk@12050 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • AttributeIndex.java:
    Inlined getAllIndexes().
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12049 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • Code review: Matthew Swift
    
    
    AttributeIndex.java:
    Removed getEqualityIndex(), getApproximateIndex(), getOrderingIndex(), getSubstringIndex(), getPresenceIndex() and getIndexById() methods, all replaced with the new getNameToIndexes() and getDefaultNameToIndexes() methods.
    
    Importer.java, IndexQueryFactoryImpl.java, Suffix.java, VerifyJob.java:
    Consequence of the change to AttributeIndex + added toImportIndexType(String IndexID)
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12048 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     
  • * InstallReviewPanel
    ** Use Constants.LINE_SEPARATOR instead of redefined it
    
    * Utils.java
    ** Refactor getDataDisplayString() method:
    *** Reformat
    *** Add final keyword
    *** ** Use Constants.LINE_SEPARATOR instead of hardcoded "\n"
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12047 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • This patch demonstrates how to change
    more than one JSON field in a REST resource.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12046 41b1ffd8-f28e-4786-ab96-9950f0a78031
    mark
     
  • * InstallReviewPanel
    ** Remove unecessary String.valueOf()
    ** Update formatting
    ** Add final keyword
    ** Remove unecessary javadocs
    ** Fix imports
    ** imports static from Utils class
    ** replace ArrayList<?> declarative types by List<?>
    
    * Utils.java
    ** Replace declarative ArrayList<?> variable by List<?>
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12045 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • This patch speeds up a basic clean install
    by moving doc generation out of the common path into a profile.
    
    This patch requires that both native package builds and also doc builds
    now use -Pman-pages to build the man pages.
    
    Otherwise the build breaks with a message:
    Man pages not found. You must build with -P man-pages.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12044 41b1ffd8-f28e-4786-ab96-9950f0a78031
    mark
     
  • * Installer.java
    ** Enforce default backend type if UI is used to setup the server
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12042 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • * BackendTypeHelper.java
    ** Create class to manage backend type utilities.
    
    * ConfigureDS, InstallDS
    ** Consequences of the change
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12041 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • git-svn-id: https://svn.forgerock.org/opendj/trunk@12040 41b1ffd8-f28e-4786-ab96-9950f0a78031
    gaetan
     
  • This patch updates the documentation to account for
    the default base DN provided during interactive command-line setup.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12039 41b1ffd8-f28e-4786-ab96-9950f0a78031
    mark
     
  • * DatabaseContainer / Index
        - now interfaces providing minimal set of methods
    * NullIndex
        - implements Index interface and forces us to override new interface methods when they are added
    * AbstractDatabaseContainer
        - common base class for all indexes (was DatabaseContainer)
    * DefaultIndex
        - implementation of id2children, id2subtree, and base implementation for attribute indexes
    * AttributeIndex
        - includes MatchingRuleIndex inner class which is used for all matching rule based indexes and presence indexing (presence is now implemented using a specialized Indexer)
        - pushed down all attribute index specific logic from Index API to AttributeIndex/MatchingRuleIndex
    * IndexBuffer
        - remove feature envy between this class and Index
        - used consistent method/field/paramet names throughout.
    
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@12038 41b1ffd8-f28e-4786-ab96-9950f0a78031
    matthew