Permalink
Commits on Apr 19, 2017
  1. Bug 515400 - Generated getETag methods in AdaptorManager do not match...

    Generate an ETag method in adaptorManager for each creationFactory that
    manage more than 1 resource! 
    
    Change-Id: Id8626e4d376daf309ec92055274feb88436692a0
    Signed-off-by: Jad <jad@kth.se>
    jadelkhoury committed with jadelkhoury Apr 18, 2017
Commits on Apr 13, 2017
  1. Bug 512991 - Switch artifact v. to 2.2.0-SNAPSHOT

    Change-Id: I2710e7bac54fae07566d7b15d15ea7be64fe5339
    Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
    berezovskyi committed Apr 13, 2017
  2. Bug 513841 - Pick patches from 2.1.2

    Included:
    
    Bug 512997 - disable doclint for aggregate javadoc
    Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
    
    Bug 512051 - fix aggregate javadoc build problems
    Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
    
    Bug 512769 - set Java 1.8 via maven properties
    Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
    
    Change-Id: I82508e2d73f82ce0d49279ff3d5ace772d3fcb9a
    Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
    berezovskyi committed Apr 13, 2017
Commits on Jan 16, 2017
  1. Bug 509770 - ServiceProviderRegistryURIs class ignores web application

    domain
    
    Consistently construct the Catalog URI based on the same methods used to
    construct all oslc resources. 
    
    
    Change-Id: I3c4d621fa85c6717b94726b7751bf8f05483380f
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Jan 16, 2017
Commits on Dec 29, 2016
  1. Bug 509767 - Generate flexible URL configuration

    Change-Id: I1d5562cf651b3799f48234e6fe017292197b1a53
    Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
    berezovskyi committed Dec 29, 2016
Commits on Dec 18, 2016
  1. Bug 509395 - Normalise formatting in the generator templates

    Change-Id: I47c021d590dbf8520e84bac5f12d7d8e946f58a6
    Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
    berezovskyi committed with berezovskyi Dec 17, 2016
  2. Bug 509394 - Move JSP, HTML, and JS MTL files

    Change-Id: I6c6daa58442dd76806e3e2b05d96d21621b9d998
    Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
    berezovskyi committed Dec 18, 2016
  3. Bug 509392 - TODO markers cannot be removed

    * moved all developer-related TODOs under protected blocks
    
    Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
    Change-Id: I6c3ef4c5a55dca8e8e1b000bfbe544a90de79faa
    berezovskyi committed Dec 18, 2016
Commits on Dec 7, 2016
  1. Bug 508290 - The generator does not have a stable ordering of types ...

    Ordering is fixed. 
    In principle, we first list the directly defined properties - as ordered
    by the modeller in the model. 
    Then, we list the properties of the extended classes. 
    Then, we list the properties of the interfaced classes.
    
    Change-Id: I0a9d62452b0ea6282e4cb2b0f9252ea63c8e7260
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Dec 7, 2016
  2. Bug 508785 - Refactor generate.mtl & GenerateResource.mtl templates to

    allow for project extensions
    
    Code refactored, with no changes in functionality.
    
    Change-Id: I0b42578cb2994859cee8500f2ac9306593e720ec
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Dec 7, 2016
Commits on Nov 26, 2016
  1. Bug 503317 - Space in resource names not treated properly

    Spaces in resource names are not a problem. Fixed however spaces (and
    other special characters) in adaptorInterface and domainSpecifications
    names.
    
    Change-Id: I2b5cf0c33abf4da6131d672b0444759f5d8fe4ab
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Nov 26, 2016
Commits on Sep 20, 2016
  1. Bug 501661 - Generator: Extend the adaptor model to specify certain code

    templates
    
    Model extended with properties that specify code templates for the
    following methods in the AdaptorManager class (where connection to the
    backend tool is performed.)
    * class methods
    * servletListener Initialize & Destroy
    * getServiceProviders
    
    Change-Id: I9bbbc68598f0d8dc24b9275ce81ac5cadff91e00
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Sep 18, 2016
Commits on Jul 5, 2016
  1. Bug 497300 - Code Generator: Provide a better updated description of the

    adaptor model
    
    The "class diagram like" representation is now commited as part of this
    project.
    
    wiki page updated
    https://wiki.eclipse.org/Lyo/AdaptorCodeGeneratorWorkshop
    
    Change-Id: I7b8d5e71ef4479991ef62b233a8a29ca8ef548d2
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Jul 5, 2016
Commits on Jul 4, 2016
  1. Merge "Bug 497012 - fill HTML title with resource.toString(false)"

    jadelkhoury committed with Gerrit Code Review @ Eclipse.org Jul 4, 2016
Commits on Jun 29, 2016
  1. Bug 497012 - fill HTML title with resource.toString(false)

    Instead of resource.toHtml()
    
    Change-Id: Iaa1fe15e8339888cab33c9e85e11bcf35f744df3
    Signed-off-by: Andrii Berezovskyi <andriib@kth.se>
    berezovskyi committed Jun 29, 2016
  2. Bug 496583 - Add a protected block for Application imports

    Otherwise, cannot reference another class in ctor protected block.
    
    Change-Id: I4eca772b645b8b4299b0cb5572252fa481f4125b
    Signed-off-by: Andrii Berezovskyi <andriib@kth.se>
    berezovskyi committed Jun 29, 2016
Commits on Jun 23, 2016
  1. Bug 496583 - Add protected block for custom resource classes

    Allows custom resource classes to be registered in the generated static
    constructors of the Application class.
    
    Change-Id: I03b69647d75140bfadff0c0a3e0e6a72f8040ecb
    Signed-off-by: Andrii Berezovskyi <andriib@kth.se>
    berezovskyi committed Jun 23, 2016
Commits on Jun 22, 2016
  1. Bug 496381 - eleminate duplicate next() iterator calls

    Instead of using an iterator directly, for loop was used.
    Code was reformatted to produce cleaner output.
    
    Change-Id: Ifac5a38d35da8e8e8f4a370fbd67ea7075c9e45b
    Signed-off-by: Andrii Berezovskyi <andriib@kth.se>
    berezovskyi committed Jun 20, 2016
Commits on Jun 9, 2016
  1. Generate sample clients for delegated UIs

    Contains:
    
    - new JSP pages with iframe & JS message handlers
    - sample clients for Creation and Selection Dialogs
    - links from the Service Provider Catalog to test dialogs
    
    Change-Id: I80ebc75b8495068a6b8b6092ebd4b18894f57ec0
    Signed-off-by: Andrii Berezovskyi <andriib@kth.se>
    berezovskyi committed May 30, 2016
Commits on May 27, 2016
  1. Bug 494300 – Generator: creation & selection dialogs code broken

    Scope:
    
    - AJAX creation form submission
    - replace unsecure JS eval with JSON.parse
    - use oslc:results JSON format everywhere
    - allow customising resource label before returning JSON
    - convert occasional space indents into tabs
    
    Change-Id: I3ff0502cb6e655bb7932deb9a108bef9c98b700a
    Signed-off-by: Andrii Berezovskyi <andriib@kth.se>
    berezovskyi committed May 27, 2016
Commits on May 1, 2016
  1. Bug 492724 - generator: Allow for user-specific code in the POJO classes

    of resources
    
    add placeholders in various parts of the POJO to allow user-specific
    code to be inserted.
    
    Change-Id: Ifdf4f5c2e038c1967373a1540b0e2821bfe90654
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed May 1, 2016
Commits on Apr 13, 2016
  1. Bug 491590 - Generator: provide a graphical modelling interface to model

    adaptors, as well as complete toolchains.
    
    Added a model of a tool-chain, as well as correspondign genmodel files
    from which EMF classes can be generated.
    
    Change-Id: I37ca83793e138baca008c4946ca84796ea4df8c9
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Apr 13, 2016
Commits on Mar 22, 2016
  1. Bug 490124 - Generator: for resource/property names containing other

    than letters and digits, the resulting java names are not valid. 
    
    Fixed so that only valid java names are created for
    resources/properties, irrespective of how the resource name is defined
    in the model.
    
    Change-Id: Id176486554f71c5c93b87fa82db2e3bfd3911c8e
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Mar 22, 2016
Commits on Mar 20, 2016
  1. Bug 490030 - Generator: the backend code templates need to handle

    function parameters in their patterns.
    
    The template now takes the additional 5 keywords  [Parameter1/] …
    [Parameter5/] which will correspond to the parameters in the
    query/get/create/update in the AdaptorManager class.
    
    
    Change-Id: I471a9a9466a60c590655e60e56b3f123b5361887
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Mar 20, 2016
  2. Bug 489703 - Generator: support the definition and generation of client

    code
    
    Basic support for the generation of client code implemented.
    To define a client, the modeller can either
    (a) reference another AdaptorInterface model
    (a) define a client as a set of resources for which access functions
    need to be defined.
    
    Currently, only the basic functions to GET the ServiceProviderCatalog
    and each serviced resources are generated.
    
    Change-Id: I7e0427949d03331a7d126421b2bda86c5fb2a9af
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Mar 20, 2016
Commits on Mar 11, 2016
  1. Bug 444239 - Extend the code generator to allow the designer to specify

    exactly which of the CRUD methods to be generated. 
    
    Designer can now enable/disable Read/Update/Delete functions under
    BasicCapability.
    By default, only Read is enabled.
    
    
    Change-Id: Ic0d79a43368b4dcee0716d5f21db8d315e2dc427
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Mar 11, 2016
Commits on Feb 19, 2016
  1. Bug 488091 - Code generator wrongly defines an interface as well as

    superclass for the same parent exenting class
    
    Redefined the set of interface resources to exclude the set of
    parentResources.
    
    Change-Id: If3a91e6a88b2a07c5c45b4339172db4c4e0b3ad6
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Feb 19, 2016
Commits on Feb 6, 2016
  1. Bug 487347 - Adaptor generator case sensitve

    The resource types are no longer made lower case. They maintain the same
    format as the resource name - as entered in the model.
    
    Also, improved the tab formatting of the AdaptorConstants java file. 
    
    Change-Id: I296b2bb8df78a3d9191c9d216e4c2d1714034626
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Feb 6, 2016
Commits on Jan 25, 2016
  1. Bug 486512 - The code generator hangs in endless loop for the Autosar

    model with 800+ resources.
    
    An intermediate solution is introduced that works fine.
    It is not 100% clear why the recursive query hangs, but code is
    introduced to break the recursion once it has reached a deep enough
    search.
    
    
    Change-Id: I2b4939e992da1c651ef48acba564efebccb9dcec
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Jan 25, 2016
Commits on Jan 14, 2016
  1. Bug 485838 - code generator does not consistently handle the path

    parameters for java & jsp files locations
    
    The generator correctly handles the three model parameters
    javaFilesBasePath, jspFilesBasePath & javascriptFilesBasePath in any
    combination of starting and/or trailing "/".
    
    Change-Id: Id076a37d93aab3f383dd519eb2a82ac44c49f3e5
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Jan 14, 2016
  2. Bug 485827 - The code generator fails to generate if the optional

    Publisher information is not defined.
    
    The generated code now only generates information about publisher if
    this optional information is available in the model.
    The code still works fine if no such information is given.
    
    Change-Id: I8234693b59c4e3acef0b3278839292c514def75a
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Jan 14, 2016
Commits on Dec 14, 2015
  1. Bug 484356 - The EMF model used in code generator has problematic syntax

    Updated the EMF model to remove the problematic "n/a".
    Also, reconfigured the org.eclipse.lyo.oslc4j.adaptormodel project to be
    more suitable as an Eclipse plugin.
    
    Change-Id: Idd7636612b99a4ecfa41c1d71e65b38c7cfbfdb2
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Dec 14, 2015
Commits on Oct 19, 2015
  1. Bug 468590 - Generator: Service provider needs to support enumeration

    attributes 
    
    Extended the resource annotations to support the following:
    
    1. oslc:AllowedValue - a set of Strings can be specified
    2. oslc:isMemberProperty - a Boolean
    3. oslc:range - cardinality is changed from (0...1) to the expected
    (0...*).
    
    Change-Id: If8658785c6cedf3b89988f34f526e71e824a809f
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Oct 19, 2015
Commits on Sep 30, 2015
  1. Merge "Bug 474928 - Code Generator: code generator does not work unde…

    …r Luna."
    Michael Fiedler committed with Gerrit Code Review @ Eclipse.org Sep 30, 2015
Commits on Sep 25, 2015
  1. Bug 473115 - Generator: Support for multiple ServiceProviders

    Support for the definition and generation of 1+ SPs is now possible. 
    This lead to a change on how the OSLC-services are generated. Each
    OSLC-Service now corresponds to a JAX-RS Resource.
    
    Change-Id: I6b2a3293f02d0a7aee4e5fb55c082a31a2ee4f84
    Signed-off-by: Jad El-khoury <jad@kth.se>
    jadelkhoury committed Jul 28, 2015