Mon, 24 Feb 2014 13:10:53 +0100[Tree Extension] Takes into account ROOT_NODE_DB in the moveNode method
Augusto Mauch <augusto.mauch@openbravo.com> [Mon, 24 Feb 2014 13:10:53 +0100] rev 22557
[Tree Extension] Takes into account ROOT_NODE_DB in the moveNode method

Now that the ROOT_NODE_CLIENT property is equals to -1, if a node is moved to the root, its parentId will be -1 in the moveNode method. Depending of whether the tree is the org tree or not, this parentId will have to be converted to ROOT_NODE_DB or to null.

Mon, 24 Feb 2014 13:03:26 +0100[Tree Extension] Menu tree is ordered
Augusto Mauch <augusto.mauch@openbravo.com> [Mon, 24 Feb 2014 13:03:26 +0100] rev 22556
[Tree Extension] Menu tree is ordered

Mon, 24 Feb 2014 12:35:31 +0100[Tree Extension] Improves Java Doc in ADTreeDatasourceService
Augusto Mauch <augusto.mauch@openbravo.com> [Mon, 24 Feb 2014 12:35:31 +0100] rev 22555
[Tree Extension] Improves Java Doc in ADTreeDatasourceService

Mon, 24 Feb 2014 12:33:42 +0100[Tree Extension] Defines ROOT_NODE_DB and ROOT_NODE_CLIENT
Augusto Mauch <augusto.mauch@openbravo.com> [Mon, 24 Feb 2014 12:33:42 +0100] rev 22554
[Tree Extension] Defines ROOT_NODE_DB and ROOT_NODE_CLIENT

The ROOT_NODE constant, defined in TreeDatasourceService, was used to set the parent_id of the root nodes (being root nodes, they actually don't have a parent). It was not possible to use '0' as ROOT_NODE in the client, because the AD_ORG table has a root node (* organization) with nodeId = '0'. The parent_id of this node would have to be '0', which results in a loop.

Therefore, '-1' is going to be used to represent the parent of root nodes in the client (ROOT_NODE_CLIENT), while '0' is still going to be used to represent the parent_id of root nodes in the database (ROOT_NODE_DB).

Mon, 24 Feb 2014 11:20:12 +0100[Tree Extension] Removes reference to SelectorConstants in FKTreeUIDefinition
Augusto Mauch <augusto.mauch@openbravo.com> [Mon, 24 Feb 2014 11:20:12 +0100] rev 22553
[Tree Extension] Removes reference to SelectorConstants in FKTreeUIDefinition

Mon, 24 Feb 2014 11:09:59 +0100[Tree Extension] Trees with treetype NEW are not handled in WindowTreeUtility
Augusto Mauch <augusto.mauch@openbravo.com> [Mon, 24 Feb 2014 11:09:59 +0100] rev 22552
[Tree Extension] Trees with treetype NEW are not handled in WindowTreeUtility

Mon, 24 Feb 2014 11:01:43 +0100[Tree Extension] Is it safe to assume that a table has at most one ADTree
Augusto Mauch <augusto.mauch@openbravo.com> [Mon, 24 Feb 2014 11:01:43 +0100] rev 22551
[Tree Extension] Is it safe to assume that a table has at most one ADTree

Tables can define several trees, but only one of them can use the ADTree tree structure. This has been applied to WindowTree. Also, a restriction to use the current client has been added to the criteria used to obtain an ADTree

Mon, 24 Feb 2014 10:32:11 +0100[Tree Extension] Removes not needed oncreatedefault from ad_ref_tree_field
Augusto Mauch <augusto.mauch@openbravo.com> [Mon, 24 Feb 2014 10:32:11 +0100] rev 22550
[Tree Extension] Removes not needed oncreatedefault from ad_ref_tree_field

Mon, 24 Feb 2014 09:52:55 +0100[Tree Extension] Adds on delete cascade to AD_REF_TREE and AD_TABLE_TREE
Augusto Mauch <augusto.mauch@openbravo.com> [Mon, 24 Feb 2014 09:52:55 +0100] rev 22549
[Tree Extension] Adds on delete cascade to AD_REF_TREE and AD_TABLE_TREE

Mon, 24 Feb 2014 09:32:37 +0100[Tree Extension] HQL Where clause is not included in the tree selector ftl
Augusto Mauch <augusto.mauch@openbravo.com> [Mon, 24 Feb 2014 09:32:37 +0100] rev 22548
[Tree Extension] HQL Where clause is not included in the tree selector ftl

Sun, 23 Feb 2014 21:46:35 +0100[Tree Extension] Adds IsMainTree column to AD_TABLE_TREE
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 21:46:35 +0100] rev 22547
[Tree Extension] Adds IsMainTree column to AD_TABLE_TREE

A table can define several trees, but only one of them can be the main tree. The main tree is used when a node is added to the tree or removed from it. The add or remove methods of the datasource of the main tree will be executed when the node is created or deleted.

If one of the trees of a table uses the ADTree tree structure, that must be the main tree.

Sun, 23 Feb 2014 21:43:11 +0100[Tree Extension] Adds missing parameter to OBQuery
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 21:43:11 +0100] rev 22546
[Tree Extension] Adds missing parameter to OBQuery

Sun, 23 Feb 2014 20:35:20 +0100[Tree Extension] The parentId of a root node can be null in db
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 20:35:20 +0100] rev 22545
[Tree Extension] The parentId of a root node can be null in db

Sun, 23 Feb 2014 20:21:04 +0100[Tree Extension] Changes on ADTreeDatasourceService
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 20:21:04 +0100] rev 22544
[Tree Extension] Changes on ADTreeDatasourceService

- Do not filter on readable organization
- If the fetchNodeChildren is called from the tree selector, the tab parameter is not provided

Sun, 23 Feb 2014 20:13:43 +0100[Tree Extension] Root node constant changed from '0' to '-1'
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 20:13:43 +0100] rev 22543
[Tree Extension] Root node constant changed from '0' to '-1'

'0' could not be used as the root node constant as it is as a valid nodeId. A root node with nodeId '0' would have a parentId '0', which is not allowed since it creates a loop

Sun, 23 Feb 2014 19:25:16 +0100[Tree Extension] Remove getParentColumns method from ADTreeDatasourceService
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 19:25:16 +0100] rev 22542
[Tree Extension] Remove getParentColumns method from ADTreeDatasourceService

The ID of the record selected in the parent tab is no longer stored in ADTree, so the getParentColumns method is not needed

Sun, 23 Feb 2014 19:24:00 +0100[Tree Extension] Fixes typo in LinkToParentTreeDatasourceService
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 19:24:00 +0100] rev 22541
[Tree Extension] Fixes typo in LinkToParentTreeDatasourceService

Sun, 23 Feb 2014 19:23:18 +0100[Tree Extension] ROOT_NODE constant must be protected in TreeDatasourceService
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 19:23:18 +0100] rev 22540
[Tree Extension] ROOT_NODE constant must be protected in TreeDatasourceService

Sun, 23 Feb 2014 19:10:24 +0100[Tree Extension] Code review changes in LinkToParentTreeDatasourceService
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 19:10:24 +0100] rev 22539
[Tree Extension] Code review changes in LinkToParentTreeDatasourceService

- Logger and constants are private static final
- Avoided SQL Injection for nodeId parameter

Sun, 23 Feb 2014 19:09:09 +0100[Tree Extension] Constants and logger are private static final in TreeDatasourceService
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 19:09:09 +0100] rev 22538
[Tree Extension] Constants and logger are private static final in TreeDatasourceService

Sun, 23 Feb 2014 19:07:58 +0100[Tree Extension] Code review changes on ADTreeDatasourceService
Augusto Mauch <augusto.mauch@openbravo.com> [Sun, 23 Feb 2014 19:07:58 +0100] rev 22537
[Tree Extension] Code review changes on ADTreeDatasourceService

- Logger and constants are private static final
- Improved Javadoc
- Avoided SQL injection for nodeId parameter
- The treetype of the new adtrees will be the table name, instead of 'NEW'

Fri, 21 Feb 2014 18:13:05 +0100[Tree Extension] Simplifies OBTreeGridComponent.getComponentTemplate
Augusto Mauch <augusto.mauch@openbravo.com> [Fri, 21 Feb 2014 18:13:05 +0100] rev 22536
[Tree Extension] Simplifies OBTreeGridComponent.getComponentTemplate

Fri, 21 Feb 2014 17:36:28 +0100[Tree Extension] Uses slf4j in OBTreeReferenceComponent
Augusto Mauch <augusto.mauch@openbravo.com> [Fri, 21 Feb 2014 17:36:28 +0100] rev 22535
[Tree Extension] Uses slf4j in OBTreeReferenceComponent

Fri, 21 Feb 2014 17:35:23 +0100[Tree Extension] Removes unused function getComponentTemplate in OBTreeGridComponent
Augusto Mauch <augusto.mauch@openbravo.com> [Fri, 21 Feb 2014 17:35:23 +0100] rev 22534
[Tree Extension] Removes unused function getComponentTemplate in OBTreeGridComponent

Fri, 21 Feb 2014 17:34:46 +0100[Tree Extension] Fixes Javadoc in FKTreeUIDefinition
Augusto Mauch <augusto.mauch@openbravo.com> [Fri, 21 Feb 2014 17:34:46 +0100] rev 22533
[Tree Extension] Fixes Javadoc in FKTreeUIDefinition

Fri, 21 Feb 2014 17:34:11 +0100[Tree Extension] Logger and fromBobToJSONObject should be private
Augusto Mauch <augusto.mauch@openbravo.com> [Fri, 21 Feb 2014 17:34:11 +0100] rev 22532
[Tree Extension] Logger and fromBobToJSONObject should be private

Fri, 21 Feb 2014 17:33:24 +0100[Tree Extension] Removes unused logger
Augusto Mauch <augusto.mauch@openbravo.com> [Fri, 21 Feb 2014 17:33:24 +0100] rev 22531
[Tree Extension] Removes unused logger

Fri, 21 Feb 2014 14:05:09 +0100[Tree Extension] Removes PARENT_RECORD_ID from ADTree, it is no longer used
Augusto Mauch <augusto.mauch@openbravo.com> [Fri, 21 Feb 2014 14:05:09 +0100] rev 22530
[Tree Extension] Removes PARENT_RECORD_ID from ADTree, it is no longer used

Fri, 21 Feb 2014 13:00:14 +0100[Tree Extension] treetype column of ad_table and ad_tree is now a String
Augusto Mauch <augusto.mauch@openbravo.com> [Fri, 21 Feb 2014 13:00:14 +0100] rev 22529
[Tree Extension] treetype column of ad_table and ad_tree is now a String

The ADTree list reference is no longer used, so that the treetype column of ad_table and ad_tree must be a string now.

Thu, 20 Feb 2014 19:02:01 +0100[Tree Extension] Adds AD_TABLE_TREE.xml file
Augusto Mauch <augusto.mauch@openbravo.com> [Thu, 20 Feb 2014 19:02:01 +0100] rev 22528
[Tree Extension] Adds AD_TABLE_TREE.xml file