Commit Graph
87 Commits
Author SHA1 Message Date
Nicolas Malin 4bcb3aab15 Fixed: Warning in console logs related to entity definitions
(OFBIZ-10540)
Improve the previous fix at r183834 where an error has been introduce with the entity WorkEffortContactMech who is different than OrderContactMech (no purpose but fromDate, thruDate) where at the beginning I thinking, wrongly, that they was the same pattern.
I completed the generic function *getEntityContactMechValueMaps* to analyze on the fly what element have the entityview. To complete, I added unit test for WorkEffortContactMech.

Thanks to Deepak Nigam for the control.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1840296 13f79535-47bb-0310-9956-ffa450edef68
2018-09-07 13:11:01 +00:00
Nicolas Malin 31b32ff2e1 Fixed: Warning in console logs related to entity definitions
(OFBIZ-10540)
I introduced two waring on log with the commit OFBIZ-10514 (Refactoring ContactMechWorker.get[Entity]ContactMechValueMap)
Thanks to Deepak Nigam to raise and correct it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839965 13f79535-47bb-0310-9956-ffa450edef68
2018-09-03 14:18:30 +00:00
Nicolas Malin ea9844a6c4 Improved: Refactoring ContactMechWorker.get[Entity]ContactMechValueMaps function to improve processing speed
(OFBIZ-10514)
ContactMechWorker.get[Entity]ContactMechValueMaps are old historic functions that resolve all contact mech context related to an Entity (Party, Facility, Order, WorkEffort).
The problem that they create too many db call during their execution that decrease OFBiz performance when the contactMech history grow.

A solution use to improve the process speed was replace all db call through *GenericValue.getRelated* function by *Delegator.makeValidValue* to instanciate each GenericValue needed after an unique search call on a viewEntity. For the four entities : Party, Facility, Order and WorkEffort, I use the same view structure with a sub view entity on ContactMechDetail. This offer more genericity and permit to slim code.

This commit introduce a regression on genericValue resolved for ContactMechType and ContactMechPurposeType that currently lost their description, it's actually not awkward because theses genericValue use the function .get("description", locale) to resolve the description so call directly the label system.

For Order and WorkEffort, I merged the resolving process in one function, that can be extend later easily for some other entity like Invoice or Quote.
The new FtpAddress wasn't managed by this worker so I introduce it to keep the coherence.

Last improvement, I use 
   getPartyContactMechValueMaps(Delegator delegator, String partyId, Timestamp date, String contactMechTypeId) 
instead of
   getPartyContactMechValueMaps(Delegator delegator, String partyId, boolean showOld, String contactMechTypeId) 
to offert also more possibility to resolve at date instead just use now or all.

icing on the cake, I added groovy test to control this worker

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838349 13f79535-47bb-0310-9956-ffa450edef68
2018-08-18 21:23:31 +00:00
Nicolas Malin 8aaadfd41f Fixed: No functional change, indent correctly the xml file workeffort/entitydef/entitymodel_view.xml and set self-closing tag on empty element
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837999 13f79535-47bb-0310-9956-ffa450edef68
2018-08-14 08:58:11 +00:00
Deepak Dixit b15d57c11a Improved: Removed deprecated entities. (OFBIZ-9327)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792176 13f79535-47bb-0310-9956-ffa450edef68
2017-04-21 10:31:59 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Jacopo Cappellato 85b2008053 OFBIZ-6760: Moved all entity definitions from the applications components into a new component named "datamodel".
This is a first step to refactor application components into independent parts that can be deployed when needed.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720413 13f79535-47bb-0310-9956-ffa450edef68
2015-12-16 18:37:22 +00:00
Arun Patidar 3865ff485d [OFBIZ-6171] Applied patch from Pierre Smits for replacing 'Open for Business' references with 'Apache OFBiz'.Thanks Pierre for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706589 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:15:21 +00:00
Jacopo Cappellato 99b7f462f2 Refactoring of Visit/Visitor/ServerHit* (and related) entities in order to be able to maintain them in a database separate from the main transactional database:
1) removed foreign key relationship from/to this group of entities and the other entities of the OFBiz data model; the fields are still available but they are not enforced by a foreign key constraint
2) removed one view entitiy joining Visit with Party entities and refactored the code that was using it in order to provide the same behavior
3) added a new entity group ("org.ofbiz.stats") for the Visit/Visitor/ServerHit* (and related) entities; for now the group is not active so that the entities are still in the same database as before; however assigning them to a different database is now a matter of uncommenting the group file definition in framework/webapp/ofbiz-component.xml and provide the new datasource definition
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647271 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 09:19:33 +00:00
Andrew Zeneski 7fa3382f21 fixed a few entities missing index names for foreign keys
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073943 13f79535-47bb-0310-9956-ffa450edef68
2011-02-23 20:55:16 +00:00
Hans Bakker e1ce7ee8c7 move the WorkEffortAndTimeEntry from asset maint to workeffort because can be used in other specialized components
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1004527 13f79535-47bb-0310-9956-ffa450edef68
2010-10-05 05:36:03 +00:00
Jacques Le Roux 05559fc0e5 Changes floating.point to fixed.point for fields used as BigDecimal in Java code. Reported by Cimballi almost a year ago, stumbled upon it while cleaning my old messages.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998557 13f79535-47bb-0310-9956-ffa450edef68
2010-09-18 22:02:55 +00:00
Scott Gray c2dd8319ba Fixed startup warnings regarding some view entity definitions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@992688 13f79535-47bb-0310-9956-ffa450edef68
2010-09-04 21:43:50 +00:00
Scott Gray 446c2e0f83 Remove commented view definition because the same definition is present elsewhere in the file anyway.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@992687 13f79535-47bb-0310-9956-ffa450edef68
2010-09-04 21:43:23 +00:00
Jacques Le Roux 6193dd4e53 <author>None</author> is totally useless and we don't need an author OOTB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949101 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:41:23 +00:00
Jacques Le Roux 63fd94e778 Not sure why, but my regexp S/R in the commit r948846 boke some formatting. I also removed some useless other stuff in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:45:59 +00:00
Jacques Le Roux 2a1a5aee14 We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00
Jacopo Cappellato 77b0231262 New automated test for a complete quick execution of a production run.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908984 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 14:16:32 +00:00
Andrew Zeneski 4e81216ff8 implemented new view entity for WorkEffort + WorkEffortGoodStandard + Product
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905785 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 20:39:04 +00:00
Andrew Zeneski 40f3732d82 added UomGroup entity; fixed bad relationship ID on workeffort purpose type
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899365 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 19:24:32 +00:00
Andrew Zeneski ef9159db62 added parentId to WorkEffortPurposeType for grouping
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899360 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 19:14:32 +00:00
Andrew Zeneski b2cf1aac0c added WorkEffortAssocFromView (reverse of the existing WorkEffortAssocToView)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892936 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 19:17:06 +00:00
Andrew Zeneski 5e4445a9b9 added uomId to WorkEffortAndInventoryAssign view
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892340 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 18:37:10 +00:00
Hans Bakker 42d33f26d6 added the mailinglist function to a project. Initially to show the svn updates to the project. Also added from/to date to the WorkeffortContactmechId, including upgrade service. Also extended the storeEmail service to receive emails for a workeffort
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@827914 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 08:02:53 +00:00
Hans Bakker 3f591f80d6 calendar not showing public events as reported in the mailing list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@799200 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 08:31:54 +00:00
Adrian Crum 224eeb67c7 Fixed Work Effort Find screen that didn't work. Cleaned up layout and labels.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@794327 13f79535-47bb-0310-9956-ffa450edef68
2009-07-15 17:12:46 +00:00
Hans Bakker 90f751fd74 foreign key name too long
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788046 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 15:04:21 +00:00
Adrian Crum 39e79cd3c7 Improved Work Effort iCalendar support:
1. Improved work effort field-to-iCalendar property mapping.
2. Work efforts can be updated from 3rd party calendar clients.
3. The publish point scope controls calendar access
4. Some iCalendar WebDAV servlet operations use services - so the iCalendar integration can be modified or enhanced.

TODO: I'm not an expert on SSL - the request handler needs more work to enforce SSL. Allow third party calendar programs to create new work efforts. Implement a subset of CalDAV. Authentication is done with URL parameters - that needs to be improved.

I replaced the work effort aatribute services I set up earlier. The attributes were too limited.

I will create a Wiki page soon to explain all of this.

Many thanks to David Jones for his advice, and to Hans Bakker for his calendar demo data.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787927 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 06:58:54 +00:00
Adrian Crum d6b3e13448 Added partyId to work effort event reminders. Popup reminders (alarms) can be assigned to specific parties.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@786529 13f79535-47bb-0310-9956-ffa450edef68
2009-06-19 14:58:35 +00:00
Adrian Crum d1776fcbc4 Improved iCalendar integration:
1. Work effort tasks are now converted to VTODO.
2. Event reminders can be a popup alarm
3. Fixed invalid iCalendar creation

Tested with Mozilla Sunbird. Sunbird has some annoying bugs when using read-only calendars - which they are aware of but haven't fixed. Someday I'll make the iCalendar read/write.

This commit includes a migration service for anyone who was using this feature previously.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@784195 13f79535-47bb-0310-9956-ffa450edef68
2009-06-12 17:03:42 +00:00
Adrian Crum 29d4a85502 Removed the partially-implemented popup event reminders. I don't plan on finishing it because popup event reminders can be handled by third-party calendar programs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@781414 13f79535-47bb-0310-9956-ffa450edef68
2009-06-03 14:55:34 +00:00
Jacques Le Roux 058d6aed57 A patch from Ashish Vijaywargiya "Change Copyright Year" (https://issues.apache.org/jira/browse/OFBIZ-2346) - OFBIZ-2346
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772936 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 10:56:14 +00:00
Hans Bakker f85af49a34 correct reference error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770048 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 03:24:11 +00:00
Ashish Vijaywargiya 0230c2240c Applied patch from JIRA issue Survey Implementation for testing scenarios of ecommerce application (OFBIZ-2100).
Initial work is done by Harsha Chadhar (data preperation, service, form, screens) with the help of Pranay Pandey.Thanks to both & special thanks to Anil Patel for providing useful details in b/w Implementation. Then I took the charge as there were some issues here and there.
(Two points are covered in this patch and remaining will be covered soon. So be patient for the complete availability of the feature :-) ) 

After completion of this work we should provide the Document on confluence to use this feature.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@767400 13f79535-47bb-0310-9956-ffa450edef68
2009-04-22 08:00:22 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Jacques Le Roux a5042291f7 1st part of an effort to remove trailing spaces
" +/> => "/>
Should be easier when dealing with Eclipse S/R regexp

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762648 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 08:27:15 +00:00
Hans Bakker 80272dd65f missed file in last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@729730 13f79535-47bb-0310-9956-ffa450edef68
2008-12-28 13:13:49 +00:00
Hans Bakker 7ec1fb6789 Rate refactoring, now can have a base rate with diffrent currencies which can be overridden on a party or workeffort level. see OFBIZ-2037 for more info
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@728894 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 07:26:55 +00:00
Adrian Crum fc32f9e7d8 A rudimentary iCalendar integration implementation. Work efforts can be published in iCalendar format. The published calendar is read-only.
Run ant run-install, then navigate to:

https://localhost:8443/iCalendar/CALENDAR_PUB_DEMO/MyCalendar.ics

for a demonstration.

I will continue to build this out as I have time.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718684 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 18:56:11 +00:00
Adrian Crum 3b788f4b95 New feature - work effort event reminders. Only works with email for now.
Internationalization note: this commit contains new UI labels.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708620 13f79535-47bb-0310-9956-ffa450edef68
2008-10-28 17:52:00 +00:00
Adrian Crum fbb85e937e WorkEffortServices.java getWorkEffortEventsByPeriod(...) method fixed to return assigned fixed assets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703701 13f79535-47bb-0310-9956-ffa450edef68
2008-10-11 18:05:58 +00:00
Adrian Crum 3278802755 New Work Effort view entity and some field deprecations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703600 13f79535-47bb-0310-9956-ffa450edef68
2008-10-10 23:15:40 +00:00
Adrian Crum 5c6f02adc9 Work Effort improvements: added fixed asset assignment. Added availability (transparency) to party and fixed asset assignments.
Internationalization note: this commit contains new UI labels.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@701868 13f79535-47bb-0310-9956-ffa450edef68
2008-10-05 19:29:40 +00:00
Adrian Crum 9a20f1e76a Added Temporal Expression support to Work Effort. Recurring work efforts appear in the calendar.
Notes:

1. The work effort estimated start time and estimated end time must span the recurrence.
2. Until we have a way of tracking event duration, the recurring event duration is set to the requested time period.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@700661 13f79535-47bb-0310-9956-ffa450edef68
2008-10-01 02:37:07 +00:00
Adrian Crum 9be5b83849 Fixed wrong package name in work effort view entity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@696363 13f79535-47bb-0310-9956-ffa450edef68
2008-09-17 16:29:57 +00:00
Hans Bakker f52e106163 implemented a more generic view for projectAndPhase which can also be used for PhaseAndTask: WorkEffortAndChild
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@693691 13f79535-47bb-0310-9956-ffa450edef68
2008-09-10 03:38:03 +00:00
Hans Bakker ed5e69706f OFBIZ-1927: add currency to partyRate entity. because this is relatively small entity, export the content add the currency to the exported file, drop the table, restart the system, and import the export file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688741 13f79535-47bb-0310-9956-ffa450edef68
2008-08-25 14:54:27 +00:00
Hans Bakker 8f71d571b6 add the WorkEffortAndContentDataResource view to be able to list all content for a workeffort, updated the createWorkeffort service to automatically make a link to the customerrequest(if provided) and copy the content links from attached requestcommunicationevents to the workeffortcontent list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684391 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 01:13:14 +00:00
Jacques Le Roux 641ff10050 Update Copyright to 2008
A real replace in files feature was one of the reasons I use Eclipse 3.4 for near a year now (I even helped to test, a real must have :o)
Not sure previous commit was sent partially or not at all (I needed to update)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677685 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 18:56:25 +00:00
Jacopo Cappellato 77e8636cf1 Added description for field workEffortParentId based on information provided by David Jones in the ml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677193 13f79535-47bb-0310-9956-ffa450edef68
2008-07-16 08:33:59 +00:00