Commit Graph
66 Commits
Author SHA1 Message Date
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 2b726298eb OFBIZ-6068: patch by Rohit Koushal that fixes a series of ClassCastException happening since rev. 1553890 when accessing some blog fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660053 13f79535-47bb-0310-9956-ffa450edef68
2015-02-16 08:59:35 +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
Jacques Le Roux d1d0d3b61e A patch from Deepak Dixit for "The updation and deletion of content meta data tab is not working.Needs a change of entity ContentMetaData." https://issues.apache.org/jira/browse/OFBIZ-4927
MetaDataValue is changed from primary key to non primary key as the value can be updated.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633100 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 11:06:59 +00:00
Jacopo Cappellato 3928521b52 Applied fix by Deepak Dixit (OFBIZ-4493) to fix a class cast exception (after commit 1553890).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589601 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 06:29:37 +00:00
Adrian Crum e12fd283bb Removed duplicate relationship.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481519 13f79535-47bb-0310-9956-ffa450edef68
2013-05-12 10:58:32 +00:00
Jacques Le Roux 1e64fe94c7 A slightly modified patch from Nicolas Malin "change serviceName by customMethod on Content " https://issues.apache.org/jira/browse/OFBIZ-5020
When you used a content as template, the content.serviceName value used to call the context populate service before rendering.
I propose to replace serviceName field by customMethodId and use customMethod pattern for more flexibility.
serviceName field is kept for backward compatibility

Thanks to Scott and Adrian for support


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1379937 13f79535-47bb-0310-9956-ffa450edef68
2012-09-02 09:46:20 +00:00
Jacques Le Roux 7738f5a45c Revert r1379389 it was incomplete and need more work, see https://issues.apache.org/jira/browse/OFBIZ-5020#comment-13446639
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1379740 13f79535-47bb-0310-9956-ffa450edef68
2012-09-01 10:44:14 +00:00
Jacques Le Roux fa5824d1af A patch from Nicolas Malin "change serviceName by customMethod on Content " https://issues.apache.org/jira/browse/OFBIZ-5020
When you used a content as template, the content.serviceName value used to call the context populate service before rendering.
I propose to replace serviceName field by customMethodId and use customMethod pattern for more flexibility.
serviceName field is renamed to oldServiceName field for backward compatibility



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1379389 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 09:55:34 +00:00
Hans Bakker 7245203a92 simplify webanalytics entity and moved from product to content, this entity has nomally only a single record so a conversion program is not provided. After upgrade, save the content of the entitye web_analytics_config and drop it in webtools. Then restart and re-enter the saved record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1204455 13f79535-47bb-0310-9956-ffa450edef68
2011-11-21 11:34:32 +00:00
Hans Bakker 7a42a2892c add a keyword search function to the content component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1102554 13f79535-47bb-0310-9956-ffa450edef68
2011-05-13 03:20:58 +00:00
Erwan de Ferrieres f077d22e2d mime-type is now auto detected with Apache Tika when uploading a new file to a profile. I also had to change the mimeTypeId field to vlong, as there are now mimetypes with a length > 60 characters
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081848 13f79535-47bb-0310-9956-ffa450edef68
2011-03-15 16:43:09 +00:00
Erwan de Ferrieres fba839327f Adding a new field to portalPage helpContentId so we can associate a help screen to a portalPage
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1077932 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 13:26:46 +00:00
Jacques Le Roux 705583b334 Oops, looks like I forgot this file in trunk at r950866, R10.04 at r950867, R9.04 at r950868 (related to OFBIZ-3782)
Bother :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@951005 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 14:18:25 +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
Erwan de Ferrieres bf0d08ad2d Adding entityLabels for WebSiteContentType
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930205 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 09:35:49 +00:00
Scott Gray cc9f9c40fc Applied patch from Vivek Mishra, alters the recently added ContentAssocAndContentPurpose view entity to remove the warning at startup regarding a duplicated field alias name. Explicity defines the fields required rather than including all fields from both entities.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912081 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 06:59:27 +00:00
Ashish Vijaywargiya 62a47436c3 Applied patch from jira issue - OFBIZ-3487 - Improvement on CMS component.
1.  Adding sequenceNum field on ContentPurpose entity.
2. Adding ContentAssocAndContentPurpose view entity.
3. Fixed NPE issue on WebSiteCMSContent.ftl file.
4. Created ContentPurposeType data for "LANDING_PAGE_IMAGE".

Thanks Amit & Vivek for the contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911774 13f79535-47bb-0310-9956-ffa450edef68
2010-02-19 10:27:10 +00:00
Hans Bakker d34ad96ab6 extended the help template, moved help xmlfiles for easy editing into the file system, started to look at docbook for ofbiz documents
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@805338 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 10:01:45 +00:00
Hans Bakker 63a818ab65 extended the help system so that help pages can also be used from within the content component when available. If not found, the page within ofbiz.apache.org will be displayed. as is the case now. See the my portal component for an example. Still need to extend the <content tag so that an override template can be specified.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@803416 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 08:48:19 +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
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
Marco Risaliti bb6169883c Removed default-resource-name from Content and PartyClassificationGroup entity definition.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@748987 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 09:20:53 +00:00
Marco Risaliti b9601cfffb Some missing default-resource-name for entity labels.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@748683 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27 20:26:54 +00:00
David E. Jones f27b4eeaaa No functional changes, just reorganizing code: moved email services from content to the framework/common component except the CommunicationEvent related ones which are now in the party component along with other CommunicationEvent resources; changed framework components so that webapp no longer depends on common and common is higher level than the various tool components which was an odd dependency before; one new thing is in here and that is an entity called EmailTemplateSetting which is meant to be a generic version of the ProductStoreEmailSetting entity so we can have configurable email templates without depending on ProductStore, still need to write the service to send email from this (sendMailFromTemplateSetting)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@744727 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 19:34:49 +00:00
Jacques Le Roux 572b7683e0 All tabs to 4 spaces in *.groovy, *.java, *.xml : less problems in future with that aspect...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737003 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:08:47 +00:00
Hans Bakker b41ac9cc9b added website list to editcontent, added some sort statements
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731165 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 04:05:48 +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
David E. Jones 01ec60e1cd Removed entitygroup.xml files now that they are not needed, and I'm sure they won't be missed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672822 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 17:09:02 +00:00
David E. Jones ed0fd5e3f8 Added missing fk-names for DataResource, reported by Rashko Rejmer
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645557 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 15:13:03 +00:00
David E. Jones b6174f540a Some data model cleanups/fixes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@641640 13f79535-47bb-0310-9956-ffa450edef68
2008-03-26 23:27:48 +00:00
David E. Jones 179b5ff372 Reformat and repackage (move around) various entities to clean up as part of a review; no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@631868 13f79535-47bb-0310-9956-ffa450edef68
2008-02-28 06:37:12 +00:00
David E. Jones 3352c037d0 Added relationships between DataResource and Survey; uses a funny key so we warning messages, but that's how it's built right now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@631076 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 03:24:26 +00:00
David E. Jones cbd824b861 Moved CommEventContent entities to be with CommEvent instead of Content because Content is lower level and CommEvent stuff there doesn'ower level and comm event stuff there doesn't make any sense
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@631065 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 01:51:20 +00:00
Hans Bakker 13a03ba142 correction on last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@604087 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 02:30:25 +00:00
Hans Bakker 74c76837cd add 2 fields to the webUserPreference table
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@604086 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 02:05:26 +00:00
Andrew Zeneski a81553f655 implemented feature to allow setting default values for survey questions; response can be generated by setting v
alues (via a map) in the wrapper before rendering

implemented GEO and ENUMERATION types for Survey Questions; now ANY Geo Group or Enumeration Type can be listed
as survey option lists



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582539 13f79535-47bb-0310-9956-ffa450edef68
2007-10-06 22:25:35 +00:00
Adrian Crum 0c60962acf Fixed entitydef comments per David's suggestion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@569574 13f79535-47bb-0310-9956-ffa450edef68
2007-08-24 23:36:41 +00:00
Adrian Crum d6c7cdcd41 More fixes in the forum feature in the content component. I also added a few comments to indicate what different fields are used for.
The eCommerce component organized forum data one way, and the content component organized it another way. After discussion on the dev ml, I determined that the content component was storing data incorrectly.

This commit is not backwards compatible with existing forum messages. Existing forum messages will have to have the contents of ContentAssoc.contentId and ContentAssoc.contentIdTo swapped before updating to this revision.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@569568 13f79535-47bb-0310-9956-ffa450edef68
2007-08-24 23:16:18 +00:00
Alfred Maxwell Byers 0fcd14c6e3 I found that views the put a prefix on from/thruDate do not work with the simple language "filter-by-date" option.
Rather than mess with the code, I just added an alias for those two fields to ContentAssocViewFrom/To.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@546750 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 06:32:23 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
David E. Jones c3f2b9a4c7 Added a bunch of index definitions based on being annoyed by console log messages about slow queries
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@523013 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 17:44:11 +00:00
Andrew Zeneski 731c3378f5 updated facade/worker to support decorator content; added datamodel for decorator content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516516 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 19:23:12 +00:00
David E. Jones 399b958f7d Fixed extraneous relationship def
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514599 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 08:31:57 +00:00
Andrew Zeneski 1219c15c53 this was something I was playing with, but decided against; however it slipped in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@513986 13f79535-47bb-0310-9956-ffa450edef68
2007-03-02 22:04:25 +00:00
Andrew Zeneski 5f079c05b7 Big content rendering refactor; condensed methods used for rendering content into one, flagged to cache or not. This will make maintaining this much easier. Implemented new streaming event which will send all type of files not just images (deprecating the img event); added mime-type templates to remove the hard coded templates in DataResourceWorker; now supports additional types besides image/*; updated all code using the old methods; however left them in place (deprecated) until we are sure no BSH files use these old methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@513985 13f79535-47bb-0310-9956-ffa450edef68
2007-03-02 22:03:48 +00:00