Jacques Le Roux
62e657f3a7
Documented: Comment out the SOAP and HTTP engines (OFBIZ-12212)
...
Documents that the EntitySync feature is no longer available OOTB.
You need first to re allow the HTTP engine
2021-03-30 13:04:35 +02:00
Suraj Khurana
97b1688b0d
Improved: Make data members of class as private and added accessor methods for the same, also corrected occurences of the same in framework component.
...
(OFBIZ-11963)
Also made some related checkstyle code enhancements. Thanks Jacques for review.
2020-09-12 12:05:16 +05:30
Suraj Khurana
bc5e945ded
Improved: Corrected line is longer than 150 characters checkstyle issues in framework component.
...
(OFBIZ-11921)
Also fixed some other extra space and naming related checkstyle issues observed.
Thanks Jacques for review.
2020-09-04 12:25:12 +05:30
Akash Jain
66a76ffd5a
Improved: Fix Literals comparisons with variable to avoid NPE (OFBIZ-11929)
...
Thanks, Devanshu Vyas for your contribution.
2020-08-30 17:20:23 +05:30
Suraj Khurana
f98f5ebb86
Improved: Added missing Javadocs for some methods, this is required for all classes which looks like designed for extension (can be subclassed).
...
(OFBIZ-11947)
Also fixed some other checkstyle issues that requires re-factoring.
Thanks Jacques for review.
2020-08-28 16:54:15 +05:30
Pawan Verma
6cb67c1a40
Improved: Replace .size() == 0 with isEmpty() in Java files(OFBIZ-11944)
...
Thanks, priya for the report and patch and jacques for the review.
2020-08-22 19:17:10 +05:30
Suraj Khurana
9689201b84
Improved: Make data members of class as private and added accessor methods for the same, also corrected occurences of the same in framework component.
...
(OFBIZ-11963)
Also made some related checkstyle code enhancements.
Thanks jacques for finalizing Javadoc pattern during this effort.
2020-08-22 13:20:39 +05:30
Suraj Khurana
8c10d4ae72
Improved: Added missing Javadocs for some methods, this is required for all classes which looks like designed for extension (can be subclassed).
...
(OFBIZ-11947)
This is done for framework component. Also corrected some variables as per naming convention best practices.
Thanks Jacques for review.
2020-08-17 12:30:26 +05:30
Suraj Khurana
33f05c1684
Improved: Corrected all redundant modifiers occurences in framework component. Also, fixed some other checkstyle line formatting and spacing issues.
...
(OFBIZ-11925)
2020-08-06 18:53:13 +05:30
Suraj Khurana
7d82b17c72
Improved: Corrected some line is longer than 150 characters checkstyle issues in framework component. Also fixed some extra spaces and naming conventions related checkstyle issues.
...
(OFBIZ-11921)
2020-08-03 10:11:40 +05:30
Suraj Khurana
d374019465
Improved: Corrected all incorrect indentation level issues in framework component, also fixed some case indentation checkstyle issues.
...
(OFBIZ-11922)
2020-07-26 21:04:41 +05:30
Suraj Khurana
7b251e43d9
Improved: Corrected some single line statements to fix checkstyle issues, also removed some remaining extra spaces from code to avoid checkstyle erros in framework component.
...
(OFBIZ-11886)
2020-07-21 12:25:20 +05:30
Suraj Khurana
8b1e0dbd85
Improved: Corrected all checkstyle formatting issues: 'typecast' is not followed by whitespace in framework component.
...
(OFBIZ-11887)
2020-07-18 12:26:42 +05:30
Suraj Khurana
0c37e80036
Improved: Corrected all checkstyle formatting issues: Line has trailing spaces in framework component.
...
(OFBIZ-11880)
Thanks Jacques for review.
2020-07-13 14:18:24 +05:30
Suraj Khurana
dd4da77d76
Improved: Corrected checkstyle formatting issues, 'is preceded/not preceded with whitespace' for framework component.
...
(OFBIZ-11874)
This fixes following checkstyle issues:
'{' is not preceded with whitespace.
'{' is not followed by whitespace.
'}' is not followed by whitespace.
'}' is not preceded with whitespace.
'typecast' is not followed by whitespace.
'try' is not followed by whitespace.
';' is preceded with whitespace.
2020-07-11 14:33:47 +05:30
Suraj Khurana
3bb22302c7
Improved: Corrected all checkstyle issues related to succeeding space for comma in framework directory.
...
(OFBIZ-11805)
Thanks Jacques and Ritesh Kumar for review.
2020-07-09 12:07:29 +05:30
Suraj Khurana
4f53828bea
Improved: Corrected all 'if is not followed by whitespace' checkstyle errors. Also corrected few ', is not followed by whitespace' checkstyle errors in framework component.
...
(OFBIZ-11805)
Thanks Jacques Le Roux and Ritesh Kumar for review.
2020-07-06 15:29:58 +05:30
Pawan Verma
e19b12eae9
Improved: Replace explicit type argument with diamond operator(OFBIZ-11828)
...
Since Java 1.7, when defining generic types it is unnecessary to redefine those types in the constructor when it is already done in the declared type.
2020-06-28 01:04:51 +05:30
Pawan Verma
f0af2894e5
Improved: Merge identical catch blocks in single catch block(OFBIZ-11827)
...
In Java SE 7 and later, a single catch block can handle more than one type of exception. This feature can reduce code duplication and lessen the temptation to catch an overly broad exception.
Thanks: Jacques for the review.
2020-06-27 11:23:12 +05:30
Pawan Verma
18f5dadd93
Improved: Replace single method call lambda with method reference(OFBIZ-11835)
...
Thanks: Jacques for the review.
2020-06-22 20:59:44 +05:30
Pawan Verma
43747764bc
Improved: Change resources with proper naming convention in framework(OFBIZ-11834)
...
Also, modified checkstyleMain.maxErrors to 26735(-24)
Thanks: Jacques and Suraj for review.
2020-06-18 15:30:00 +05:30
holivier
192059e3da
Improvement: Help link using asciidoc files via generated html
...
(OFBIZ-11693)
Change release for all asciidoc files, now there area 3 publish site,
one per release
* site/trunk
* site/next currently for the 18.12
* site/stable currently for the 17.12
2020-06-04 17:56:54 +02:00
Suraj Khurana
abc7836dde
Improved: Made MODULE as private data member of class instead of public in all framework components.
...
(OFBIZ-11739)
This will reduce checkstlye issues. Thanks Jacques for review.
2020-05-29 13:20:46 +05:30
Suraj Khurana
f637e3c5fe
Improved: Converted all EntitySyncInclude services from simple to entity-auto ( #84 )
...
* Improved: Converted all EntitySyncInclude services from simple to entity-auto
(OFBIZ-11613)
2020-04-30 13:14:26 +05:30
Jacques Le Roux
ddb8f4273a
Improved: replaces module by MODULE everywhere
2020-04-05 19:46:34 +02:00
Jacques Le Roux
28b658e260
Improved: Equivalent of svn:auto-props properties on the server
...
(OFBIZ-OFBIZ-11279)
As explained at https://s.apache.org/i86ht
This is needed after b424d2683e
2019-12-19 13:19:59 +01:00
Mathieu Lirzin
aae1c8a8f5
Reverted: "Improved: Use ‘depends-on’ attribute instead of “component-load.xml”"
...
(OFBIZ-11296)
This reverts commit eeabe69813 .
2019-12-18 12:09:20 +01:00
Mathieu Lirzin
eeabe69813
Improved: Use ‘depends-on’ attribute instead of “component-load.xml” (OFBIZ-11296)
...
We currently have two ways to define component loading order. Either
by using ‘depends-on’ attribute in “component-config.xml” or by adding
a “component-load.xml” file at the root of a component directory.
“depends-on” is more flexible because it handles partial ordering when
“component-load.xml” defines a total order which is not necessarily
meaningful, so it is better to rely only “depends-on”.
This removes the usage of “component-load.xml” to use ‘depends-on’
instead. The dependency declarations correspond to the total ordering
previously defined but will need to be refined in the future to relax
unnecessary dependency declarations.
Only “framework/base/config/component-load.xml” which defines the
top-level directories order (framework, applications, themes and
plugins) is kept.
2019-11-25 15:28:54 +01:00
Mathieu Lirzin
2c686c4655
Improved: Avoid unecessary breakage in ‘ContainerConfig’
...
(OFBIZ-11256)
This restores ‘public’ modifiers on fields and move the ‘Property’
inner class back to ‘Configuration’ to avoid breakage of client code
extending the ‘Container’ interface.
In order to smooth the transition towards using getters instead of
direct field accesss, the public modifiers on fields are now marked as
deprecated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868628 13f79535-47bb-0310-9956-ffa450edef68
2019-10-19 14:27:01 +00:00
Mathieu Lirzin
7e7ccba7b3
Improved: Refactor ‘ContainerConfig’ class
...
(OFBIZ-11256)
This removes some code duplication, make things immutable and add some javadoc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868601 13f79535-47bb-0310-9956-ffa450edef68
2019-10-18 19:46:32 +00:00
Mathieu Lirzin
60f7041c3d
Improved: Use ‘Path’ for component config ‘rootLocation’ attribute
...
(OFBIZ-11192)
The method ‘ComponentConfig#getRootLocation’ has been removed
and replaced by ‘ComponentConfig#rootLocation’.
The callers have been adapted.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868028 13f79535-47bb-0310-9956-ffa450edef68
2019-10-05 16:20:32 +00:00
Mathieu Lirzin
1b34cf7982
Improved: Inline ‘UtilValidate#areEqual’
...
(OFBIZ-11172)
‘Objects#equals’ is already providing the same functionality of ‘null’
safe equality check.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1865843 13f79535-47bb-0310-9956-ffa450edef68
2019-08-24 12:52:12 +00:00
Mathieu Lirzin
7999e3adc1
Improved: Remove useless imports
...
(OFBIZ-11142)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1863507 13f79535-47bb-0310-9956-ffa450edef68
2019-07-20 18:45:21 +00:00
Mathieu Lirzin
fc6f9023d2
Improved: Use ‘StandardCharsets.UTF_8’
...
(OFBIZ-11142)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1863505 13f79535-47bb-0310-9956-ffa450edef68
2019-07-20 18:41:37 +00:00
Mathieu Lirzin
e9a56a78e5
Improved: Inline ‘UtilGenerics#checkList’
...
(OFBIZ-11141)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1863501 13f79535-47bb-0310-9956-ffa450edef68
2019-07-20 16:35:13 +00:00
Mathieu Lirzin
c2e2c3fb15
Improved: Make ‘UtilGenerics#checkCollection(Object, Class)’ more generic
...
(OFBIZ-11141)
Remove ‘checkList’, ‘checkSet’ and ‘checkStack’ by using
‘checkCollection’ instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1863489 13f79535-47bb-0310-9956-ffa450edef68
2019-07-20 16:18:23 +00:00
Mathieu Lirzin
16ee111ec3
Improved: Deprecate ‘ContainerConfig#getConfiguration(String, String)’
...
(OFBIZ-11100)
Since there is no global container configuration file anymore this
method should not be used. It has been superseded by an overload
which do not require to pass the file name of the configuration file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1863020 13f79535-47bb-0310-9956-ffa450edef68
2019-07-13 21:38:51 +00:00
Mathieu Lirzin
e2c85737e4
Improved: Add static modifiers in ‘EntityDataLoadContainer’
...
(OFBIZ-11070)
When no reference to ‘this’ is made, it is better to declare methods
as static.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860838 13f79535-47bb-0310-9956-ffa450edef68
2019-06-08 14:59:02 +00:00
Mathieu Lirzin
8b2de5fae2
Improved: Rewrite ‘EntityDataLoadContainer#isDataReadersEnabled’
...
(OFBIZ-11070)
Use a boolean expression instead of a conditional.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860837 13f79535-47bb-0310-9956-ffa450edef68
2019-06-08 14:57:08 +00:00
Mathieu Lirzin
0a465fa748
Improved: Rewrite ‘EntityDataLoadContainer#isPropertySet’
...
(OFBIZ-11070)
Use a boolean expression instead of a conditional.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860836 13f79535-47bb-0310-9956-ffa450edef68
2019-06-08 14:54:38 +00:00
Jacques Le Roux
87fc949af8
Reverted: Refactor EntityDataLoadContainer
...
(OFBIZ-11070)
There is something wrong with Mathieu's changes, reverting all for now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860113 13f79535-47bb-0310-9956-ffa450edef68
2019-05-27 09:29:28 +00:00
Mathieu Lirzin
07406d341d
Improved: Add static modifiers in ‘EntityDataLoadContainer’
...
(OFBIZ-11070)
When no reference to ‘this’ is made, it is better to declare methods
as static.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860064 13f79535-47bb-0310-9956-ffa450edef68
2019-05-26 12:40:21 +00:00
Mathieu Lirzin
655f19c2fa
Improved: Inline ‘EntityDataLoadContainer#getLoadFiles’
...
(OFBIZ-11070)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860063 13f79535-47bb-0310-9956-ffa450edef68
2019-05-26 12:35:13 +00:00
Mathieu Lirzin
b71cd98911
Improved: Rewrite ‘EntityDataLoadContainer#isDataReadersEnabled’
...
(OFBIZ-11070)
Use a boolean expression instead of a conditional.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860062 13f79535-47bb-0310-9956-ffa450edef68
2019-05-26 12:33:13 +00:00
Mathieu Lirzin
388f4c8b52
Improved: Rewrite ‘EntityDataLoadContainer#isPropertySet’
...
(OFBIZ-11070)
Use a boolean expression instead of a conditional.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860061 13f79535-47bb-0310-9956-ffa450edef68
2019-05-26 12:31:19 +00:00
Mathieu Lirzin
b37e315aef
Improved: Use the ‘@Override’ annotation
...
(OFBIZ-10939)
The ‘@Override’ annotation helps readers understand that the method at
hand is overriding a super class or implementing an interface.
Additionally it allows the compiler to check if the methods annotated
with ‘@Override’ are actually implementing an abstract method.
Using that annotation makes ‘@see foo.bar.ParentClass#myMethod’
comments useless, so those they have been removed for the newly
annotated methods.
Thanks Jacques Le Roux and Swapnil M Mane for acknowledging the commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858295 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 19:34:25 +00:00
Mathieu Lirzin
5982be8161
Improved: Remove unnecessary declared exceptions for ‘ContainerException’
...
(OFBIZ-10938)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857913 13f79535-47bb-0310-9956-ffa450edef68
2019-04-21 14:22:36 +00:00
Mathieu Lirzin
990c8a3aab
Improved: Remove redundant specification of type arguments
...
(OFBIZ-10937)
Since Java 1.7, when defining generic types it is unnecessary to
redefine those types in the constructor when it is done in the
declared type.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857906 13f79535-47bb-0310-9956-ffa450edef68
2019-04-21 12:49:52 +00:00
Arun Patidar
8ef6a2b7ac
Fixed: Services of EntitySync Push and Pull functionalities
...
(OFBIZ-10818)
Set transaction timeout of 2hrs for the actual data transmission services.
Removed unwanted service updateEntitySyncRunning
Called the tracking and status update services in new transaction so that record can be maintain after current transaction rollback
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1852587 13f79535-47bb-0310-9956-ffa450edef68
2019-01-31 11:54:45 +00:00
Arun Patidar
6ae8fe69b8
Fixed: EntitySync Push and Pull functionalities
...
(OFBIZ-10818)
Removed unneccessary service implementation and used entity-auto
Fixed some create/update code block in the flow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1851805 13f79535-47bb-0310-9956-ffa450edef68
2019-01-22 11:51:46 +00:00