Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
MODE-2561 Removes the Teiid sequencer from the ModeShape codebase

    • -156
    • +0
    ./lexicon/ModelExtensionDefinitionLexicon.java
    • -183
    • +0
    ./lexicon/RelationalLexicon.java
  1. … 129 more files in changeset.
MODE-2561 Removes the Teiid sequencer from the ModeShape codebase

    • -156
    • +0
    ./lexicon/ModelExtensionDefinitionLexicon.java
    • -183
    • +0
    ./lexicon/RelationalLexicon.java
  1. … 128 more files in changeset.
MODE-2445 Failed to import SalesForce Metadata The issue about parsing escaped single quotes had already been fixed since this issue was written. However, parsing this DDL revealed an issue with foreign key references. I've changed DdlSequencer to perform a second pass in order to resolve the forward-looking references.

  1. … 4 more files in changeset.
MODE-2476 Fixed the Teiid VDB & Model sequencer's holding on to stale nodes belonging to other sessions.

  1. … 4 more files in changeset.
MODE-2470: Fixes to DDL Sequencer

* Addition of TeiidDdl Option Constants to lexicon

* The addition of the TeiidDdl constants used for materialized table

options

* Throw exception if node reference is not available

* AlterOptionsParser

* Since a reference is mandatory for an AlterTable statement, a lack of

reference will result in a ConstraintViolationException. Better to

immediately throw an exception indicating a lack of reference rather

than leaving it as a debugging statement.

* Support vdb model properties

* A vdb model can set key/value properties. These need to be handled by

the teiid sequencer.

  1. … 2 more files in changeset.
MODE-2464: Ensures all input stream in Vdb Sequencers are closed

* VdbDynamicSequencer

* Closes the initial input stream taken from the inputProperty's

binaryValue

* VdbManifest

* Closes the XML StreamReader instance on completion of its reading

* Closing these ensures that the streams are closed and releases any locks

created on the original binary property value, avoiding the possibility

of future deadlocks when saving the property.

MODE-2394: Due to teiid vdb schema changes, update the sequencer accordingly

* Updates the Vdb Sequencer to reflect the changes made to the Teiid Vdb

cnd schema. In light of the changes made to the latter to reflect Teiid's

own latest Vdb schema, the sequencer will now observe the following:

** vdb connection type

** vdb name

** multiple model sources

** data role grant-all flag

** data role permission conditions and masks

** data role allow language permission

* Updates sequencer tests to test for the new changes

    • -3
    • +17
    ./model/CoreModelObjectHandler.java
  1. … 2 more files in changeset.
MODE-2394: Updates to the Vdb Sequencer in line with Teiid Schema

* Updates the Vdb sequencer's cnd model and lexicon to reflect the schema

included in the latest version of teiid.

  1. … 1 more file in changeset.
MODE-2373 Unable to publish VDB Corrected that creates and registers namespace prefixes related to Model Extension Definitions (MEDs). Added test that sequences the VDB attached to the issue.

    • -20
    • +13
    ./model/ModelExtensionDefinitionHelper.java
  1. … 2 more files in changeset.
MODE-2373 Unable to publish VDB Corrected that creates and registers namespace prefixes related to Model Extension Definitions (MEDs). Added test that sequences the VDB attached to the issue.

    • -20
    • +13
    ./model/ModelExtensionDefinitionHelper.java
  1. … 2 more files in changeset.
MODE-2368

* Extends vdb sequencer functionality to support the processing of

dynamic vdbs.

* The syntax of a dynamic vdb is identical to that of a container vdb's

manifest hence the extension of the VdbSequencer by the

VdbDynamicSequencer.

* Adds a twitter test that takes the declarative model as a dynamic vdb

and sequences it accordingly.

    • -0
    • +45
    ./VdbDynamicSequencer.java
  1. … 2 more files in changeset.
MODE-2362: Fixes resource path limitation in Teiid ModelSequencer

* Use of relative paths, ie. ../, fails when Teiid ModelSequencer is used

in an OSGI environment and resident in a jar archive.

MODE-2298 Updated the sequencers to only log warnings if an exception is raised and the repository has been shut down and also to use JDK 7 try-with-resources style.

  1. … 15 more files in changeset.
MODE-2081 Changed the remaining files over to the ASL 2.0 license

    • -18
    • +10
    ./lexicon/ModelExtensionDefinitionLexicon.java
  1. … 1036 more files in changeset.
MODE-2148 Added checkstyle to our build, and corrected numerous potential problems or issues in the code. Also removed lots of meaningless JavaDoc

  1. … 362 more files in changeset.
MODE-1344 Support the shredding of the new Model Extension properties being added to the Teiid Models Updated MED helper class to use new NamespaceRegistry methods.

    • -15
    • +9
    ./model/ModelExtensionDefinitionHelper.java
MODE-1344 Support the shredding of the new Model Extension properties being added to the Teiid Models The model sequencer has been modified to sequence model extension definitions (MEDs) found in a model file. For each MED, a namespace is registered in the namespace registry. Namespace prefix and/or URI collisions are accounted for. For each extended metaclass within a MED, a mixin is created and registered. Since Teiid Designer has changed the class names of some model objects, the sequencer had to handle that. The mixin includes a property for each property definition defined in the MED. For each model object that has explicit extension properties set, or just is of the type of an extended metaclass that has default properties, the mixin is added to the corresponding node.

ModelSequencer is now closing the binary input stream it requested from the Property parameter in the execute method. Not closing this

ended up causing deadlock issues in some tests.

    • -3
    • +4
    ./lexicon/ModelExtensionDefinitionLexicon.java
    • -252
    • +7
    ./model/CoreModelObjectHandler.java
    • -0
    • +744
    ./model/ModelExtensionDefinitionHelper.java
  1. … 7 more files in changeset.
MODE-1344 Support the shredding of the new Model Extension properties being added to the Teiid Models Modified the model sequencer to sequence Model Extension Definitions (MEDs) found. Each MED has there own namespace prefix and namespace URI which is added to the namespace registry. Added test to verify MED nodes are being created and MED extension properties exist on model objects.

    • -0
    • +125
    ./lexicon/ModelExtensionDefinitionLexicon.java
    • -39
    • +265
    ./model/CoreModelObjectHandler.java
  1. … 6 more files in changeset.
MODE-1487 Add support in the Teiid sequencer for VDB dependencies specified in its "vdb.xml" Cleaned up debug logging to make it consistent with the rest of ModeShape.

    • -26
    • +13
    ./model/CoreModelObjectHandler.java
    • -3
    • +3
    ./model/RelationalModelObjectHandler.java
    • -5
    • +5
    ./model/TransformationModelObjectHandler.java
  1. … 6 more files in changeset.
MODE-1487 Add support in the Teiid sequencer for VDB dependencies specified in its "vdb.xml" Cleaned up debug logging to make it consistent with the rest of ModeShape.

    • -26
    • +13
    ./model/CoreModelObjectHandler.java
    • -3
    • +3
    ./model/RelationalModelObjectHandler.java
    • -5
    • +5
    ./model/TransformationModelObjectHandler.java
  1. … 6 more files in changeset.
MODE-1487 Add support in the Teiid sequencer for VDB dependencies specified in its "vdb.xml" MODE-1700 Teiid Model Sequencer Throws Error When Model Import Has Annotation MODE-1702 Cleanup Corrupted Teiid Sequencer VDB Test Data Removed corrupted zip files from test data. Removed ignored tests that used those corrupted zip files. Added new VDBs to test data and added tests for those new VDBs. The new vdb.xml file XSD included VDB dependendencies and model metadata which uses DDL to define the model. Modified VDB sequencer and model sequencer to include these new VDB manifest features. Also added tests that test these new features. Fixed an error where the href of a model import was not being processed.

    • -2
    • +19
    ./model/CoreModelObjectHandler.java
  1. … 24 more files in changeset.
MODE-1487 Add support in the Teiid sequencer for VDB dependencies specified in its "vdb.xml" MODE-1700 Teiid Model Sequencer Throws Error When Model Import Has Annotation MODE-1702 Cleanup Corrupted Teiid Sequencer VDB Test Data Removed corrupted zip files from test data. Removed ignored tests that used those corrupted zip files. Added new VDBs to test data and added tests for those new VDBs. The new vdb.xml file XSD included VDB dependendencies and model metadata which uses DDL to define the model. Modified VDB sequencer and model sequencer to include these new VDB manifest features. Also added tests that test these new features. Fixed an error where the href of a model import was not being processed.

    • -2
    • +19
    ./model/CoreModelObjectHandler.java
  1. … 24 more files in changeset.
MODE-1609 - Fixed AS7 subsystem binary storage integration plus some issues which surfaced: * a bug inside ChunkInputStream * wrongful logging by the sequencers

  1. … 15 more files in changeset.
MODE-1639, MODE-1640, MODE-1634 Replaced the Aperture-based MIME type detector with a Tika-based one

This required quite a bit of dependency gymnastics, since Tika has quite a few more transitive

dependencies than the Aperture library (which we had successfully pared down several years ago).

Tika references about 25 dependencies (including transitive dependencies), but this was reduced

in 'modeshape-jcr' to about 8 for basic MIME type detection. Note that Tika usually includes

two BouncyCastle libraries in its dependencies (used for encrypted PDFs, among other things),

but ModeShape intentionally excludes these (as we don't want to ship or depend on any

security-related JARs).

Not only do we get Tika's substantial MIME type database, we've made it possible for users

to edit the 'org/modeshape/custom-mimetypes.xml' file and provide the updated one on the application

classpath. What goes in that file will overwrite all of the other sources (namely Tika's built-in

file and its customization file, both of which are to be found on the classpath), which means

it's easiest to simply provide an updated version of this file at 'org/modeshape/custom-mimetypes.xml'.

Be sure to not remove any of the (few) customizations that ModeShape includes - those are important.

As we upgrade Tika, we'll get updated versions of the media type data. This is far more preferable

than having a ModeShape-specific version.

The MIME type related interfaces in ModeShape's public API (e.g., 'modeshape-jcr-api') have been removed.

These were added sometime in one of the 3.0 releases, so removing them will not introduce compatibility

issues for users.

Instead, we've decided to get out of the MIME type detection framework business, and have decided

to switch to Tika for all MIME type detection. In fact, you can still write your own MIME type detector,

but you do that by implementing Tika's interface and reference the implementation class(es) in the

corresponding service loader file in your JAR. (See the TIKA documentation for details.)

However, internally we still have an abstraction. This is because it is possible to remove the Tika

(and transitive dependencies) from a ModeShape installation, as long as your applications will not

expect any kind of automatic MIME type detection. This is a perfectly valid use case: for example,

using a repository to store data and do not store files (and don't use sequencers).

The AS7 kits required a bit more modification. There is now a new AS7 module for 'org.apache.tika'

that contains all of the JARs, and this is used by the ModeShape module and by the Tika text extractor

module.

All unit and integration tests pass with these changes. Several new tests were added.

    • -2
    • +3
    ./model/TransformationModelObjectHandler.java
  1. … 70 more files in changeset.
MODE-1338 Convert Teiid sequencer to the new 3.0 sequencing API Modified the JDBC model object handler to explicitly handle types and properties. Also tried to clean up some issues surrounding multi-valued properties. Removed all but 2 TODOs which are reminders when work on sequencing Teiid's model extension definition occurs.

    • -22
    • +99
    ./model/JdbcModelObjectHandler.java
    • -19
    • +14
    ./model/RelationalModelObjectHandler.java
  1. … 1 more file in changeset.
MODE-1338 - Fixed various issues around the teiid sequencers: * integration with AS7 plus integration tests * removed slf4j dependencies * some minor code cleanup

    • -2
    • +0
    ./model/DiagramModelObjectHandler.java
  1. … 11 more files in changeset.
MODE-1338 Convert Teiid sequencer to the new 3.0 sequencing API Fixed a bug in the assert of a model object handler.

    • -8
    • +9
    ./model/RelationalModelObjectHandler.java
    • -1
    • +2
    ./model/TransformationModelObjectHandler.java
MODE-1338 Convert Teiid sequencer to the new 3.0 sequencing API Remove logical relationships from CND and model object handlers. Increased sequencer test time before failing.

    • -20
    • +19
    ./model/RelationalModelObjectHandler.java
    • -3
    • +3
    ./model/TransformationModelObjectHandler.java
  1. … 4 more files in changeset.
MODE-1338 Convert Teiid sequencer to the new 3.0 sequencing API Finished sequencer implementation. Mostly work done on processing model objects and resolving unresolved references.

    • -2
    • +2
    ./lexicon/ModelExtensionDefinitionLexicon.java
    • -45
    • +64
    ./lexicon/RelationalLexicon.java
  1. … 26 more files in changeset.
MODE-1338 Convert Teiid sequencer to the new 3.0 sequencing API MODE-1369 Update Teiid VDB sequencer to look for new contents in vdb.xml Both the Teiid VDB sequencer and the Teiid model sequencer have been converted to the 3.0 API. Also the VDB sequencer has been updated to sequence the latest vdb.xml file. Still need to change top-level POM to move this project out of the legacy profile. Also, the model sequencer still has work associated with references and types which will affect the model object handlers and the sequencer.

    • -4
    • +13
    ./lexicon/ModelExtensionDefinitionLexicon.java
    • -5
    • +148
    ./lexicon/RelationalLexicon.java
  1. … 43 more files in changeset.