ofbiz-component.xml

Clone Tools
  • last updated 11 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.(OFBIZ-5426) (#44)

* Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.

(OFBIZ-5426)

The problem is in the entity model. An email address should not be used in the primary key - mainly because an email address is case-insensitive. A better design would be to use the email address contact mechanism ID in the primary key.

Done Following:

1. Changed Entity Name from ProductPromoCodeEmail to ProductPromoCodeContMech

2. Related Changes for the entity name change

3. Migration service to migrate old data

Thanks, Leon for the report and Adrian Crum, Jacques Le Roux, Ingo Wolfmayr, Deepak Dixit, Pierre Smits and Gil Portenseigne for the discussion and review.

* Improved: Added new line in service definition file and lincence in MigrationServices file.

(OFBIZ-5426)

Thanks, Jacopo for the review.

  1. … 9 more files in changeset.
Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.(OFBIZ-5426) (#44)

* Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.

(OFBIZ-5426)

The problem is in the entity model. An email address should not be used in the primary key - mainly because an email address is case-insensitive. A better design would be to use the email address contact mechanism ID in the primary key.

Done Following:

1. Changed Entity Name from ProductPromoCodeEmail to ProductPromoCodeContMech

2. Related Changes for the entity name change

3. Migration service to migrate old data

Thanks, Leon for the report and Adrian Crum, Jacques Le Roux, Ingo Wolfmayr, Deepak Dixit, Pierre Smits and Gil Portenseigne for the discussion and review.

* Improved: Added new line in service definition file and lincence in MigrationServices file.

(OFBIZ-5426)

Thanks, Jacopo for the review.

  1. … 9 more files in changeset.
Reverted: "Improved: Use ‘depends-on’ attribute instead of “component-load.xml”" (OFBIZ-11296)

This reverts commit eeabe69813a1d9f42911dec70a912574046ef49b.

  1. … 24 more files in changeset.
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.

  1. … 24 more files in changeset.
Improved: PicklistStatusHistory doesn't follow history entity status pattern (OFBIZ-11182) The entity PicklistStatusHistory record each status change realized on picklist.

It can't be convert to entity-auto easily because PicklistStatusHistory's fields pattern

doesn't follow same entities like ShipmentStatus and PartyStatus.

To solve this issue, I deprecate PicklistStatusHistory and move it to OldPicklistStatusHistory

and replace it by new entity PicklistStatus that can use natively with entityauto.

I added a new migration service migrateOldPicklistStatusHistoryToPickListStatus to forward all

picklist status history to new entity.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866558 13f79535-47bb-0310-9956-ffa450edef68

  1. … 6 more files in changeset.
Improved: Migrate product promotion condition and action rule on SOA (OFBIZ-10370)

Currently promotion rule engine works with :

entities ProductPromoCond et ProductPromoAction

java linear function ProductPromoWorker.checkCondition() (ProductPromoWorker:910) and ProductPromoWorker.performAction (ProductPromoWorker:1423)

Enumeration list to indicate on java function what piece of code to activate the control or action

The problem with this structure is when you want to create a new case of condition or action, you need to modify the framework code base.

We convert the 2 big java leaner function to service representation with one service by case. To realize it we introduce a relation with CustomMethod :

ProductPromoRule --> ProductPromoCond -> CustomMethod

-> ProductPromoAction -> CustomMethod

Each functions's case are converted to service with a related CustomMethod.

With this pattern now you can write your own condition rule and action rule on your plugin and link it on the promo engine

For backward compatibility purpose, current "PPIP" enumeration entries receive in enumCode data the new corresponding customMethodId reference, to ensure that old data works fine with the new engine

on EntityData

<CustomMethod customMethodId="PPC_PRODUCT_AMOUNT" customMethodTypeId="PRODUCT_PROMO_COND" customMethodName="productPromoCondProductAmount" description="Product amount"/>

<Enumeration enumId="PPIP_PRODUCT_AMOUNT" enumCode="PPC_PRODUCT_AMOUNT"/><!--link enumeration with customMethod for backward compatibility-->

on Java

//for backward compatibility resolve customMethodId from enumCode

GenericValue condEnum = EntityQuery.use(delegator).from("Enumeration").where("enumId", inputParamEnumId).cache().queryOne();

if (condEnum != null) {

customMethod = EntityQuery.use(delegator).from("CustomMethod").where("customMethodId", condEnum.get("enumCode")).cache().queryOne();

if (customMethod == null) {

Debug.logWarning("The oldest enumeration " + inputParamEnumId + " for promo " + productPromoCond.getPkShortValueString() + " haven't the new customMethod to use, please check your data or load seed data", module);

return false;

}

serviceName = customMethod.getString("customMethodName");

}

Many thanks to Ziri Khalifa and Leila Mekika for their helping work

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831783 13f79535-47bb-0310-9956-ffa450edef68

  1. … 14 more files in changeset.
Improved: Move all data in applications to the datamodel component. Moved demo data from accounting, commonext, content, humanres, manufacturing, marketing, order, party, product, workeffort components to datamodel component. Done changes in related data files and do entries accordingly. (OFBIZ-9501) Thanks to Sourabh Jain for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1823177 13f79535-47bb-0310-9956-ffa450edef68

  1. … 69 more files in changeset.
Improved: Move all data in applications to the datamodel component. (OFBIZ-9501) Move selected seed data for Product, Accounting and Manufacturing component. Thanks to Taher and Jacques for finalizing the data set.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816948 13f79535-47bb-0310-9956-ffa450edef68

  1. … 11 more files in changeset.
Improved: Removed old data migration services. (OFBIZ-9327)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792788 13f79535-47bb-0310-9956-ffa450edef68

  1. … 8 more files in changeset.
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

  1. … 10 more files in changeset.
Improved: Added generic permission service for following - facility - marketting - return - entitysync Also moved the permission check from implementation level to service defination level

(OFBIZ-8673)(OFBIZ-8673)(OFBIZ-8674)(OFBIZ-8739)(OFBIZ-8823)(OFBIZ-8825)(OFBIZ-8827)(OFBIZ-8850)(OFBIZ-8876)(OFBIZ-8875)(OFBIZ-8824)(OFBIZ-8826)(OFBIZ-8851)

Thanks Nameet Jain for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768188 13f79535-47bb-0310-9956-ffa450edef68

  1. … 32 more files in changeset.
New Feature: Introduce a quick way for adding Sales Price agreements with customers for any specific product from Catalog

(OFBIZ-7713)

Thanks: Swapnil Shah for suggesting this new featuer and Mohammad Kathawala for giving the patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768174 13f79535-47bb-0310-9956-ffa450edef68

  1. … 6 more files in changeset.
Improved: Added unit test case for following product related services - createProduct, updateProduct - duplicateProduct - quickAddVariant - deleteProductKeywords - discontinueProductSales - createProductReview - updateProductReview - findProductById - createProductPrice, updateProductPrice, deleteProductPrice - createProductCategory (OFBIZ-8412)(OFBIZ-8506)(OFBIZ-8571)(OFBIZ-8654)(OFBIZ-8572)(OFBIZ-8573)(OFBIZ-8574) (OFBIZ-8656)(OFBIZ-8575)(OFBIZ-8576)(OFBIZ-8577)(OFBIZ-8578)(OFBIZ-8655)

Thanks Akash Jain and Yash Sharma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767977 13f79535-47bb-0310-9956-ffa450edef68

  1. … 3 more files in changeset.
Implemented: Added CRUD services for QuoteTypeAttr, RejectionReason, ReorderGuideline, RequirementAttribute, RequirementBudgetAllocation, RequirementType, RequirementTypeAttr, RespondingParty, ReturnAdjustmentType and ReturnHeaderType entities.

(OFBIZ-8306) (OFBIZ-8308) (OFBIZ-8309) (OFBIZ-8310) (OFBIZ-8311) (OFBIZ-8314) (OFBIZ-8325) (OFBIZ-8326) (OFBIZ-8327) (OFBIZ-8328)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1763306 13f79535-47bb-0310-9956-ffa450edef68

  1. … 6 more files in changeset.
Implemented: Added CRUD services for InvoiceTypeAttr, MrpEventType, OrderAdjustmentAttribute, OrderAdjustmentType, OrderAttribute, OrderBlacklist, OrderBlacklistType, QuantityBreakType, QuoteTermAttribute and QuoteType entities.

(OFBIZ-8271) (OFBIZ-8277) (OFBIZ-8281) (OFBIZ-8283) (OFBIZ-8285) (OFBIZ-8286) (OFBIZ-8287) (OFBIZ-8303) (OFBIZ-8304) (OFBIZ-8305)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1763298 13f79535-47bb-0310-9956-ffa450edef68

  1. … 6 more files in changeset.
Implemented: Added CRUD services for InvoiceItemAttribute, InvoiceTermAttribute, EmploymentAppSourceType, FacilityType, InventoryItemTempRes, EnumerationType, EntityGroup, EntityGroupEntry, EntitySyncIncludeGroup and InventoryItemAttribute entity. (OFBIZ-8167) (OFBIZ-8168) (OFBIZ-8169) (OFBIZ-8170) (OFBIZ-8171) (OFBIZ-8208)(OFBIZ-8246)(OFBIZ-8247)(OFBIZ-8259)(OFBIZ-8269)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761231 13f79535-47bb-0310-9956-ffa450edef68

  1. … 9 more files in changeset.
Implemented: Added CRUD services for EmplPositionClassType, ConfigOptionProductOption and Component entity. (OFBIZ-8049) (OFBIZ-8058)(OFBIZ-8059)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761175 13f79535-47bb-0310-9956-ffa450edef68

  1. … 5 more files in changeset.
Fixes "Remove warnings regarding missing component lib folders" - https://issues.apache.org/jira/browse/OFBIZ-7776 - by cleaning/clearing the references to non existent/empty dirs.

Notes:

* Also removes empty framework/base/lib/scripting and useless applications\content\lib\uno\README (miss doc in wiki)

* When jpim-0.1.jar will be (hopefully) replaced we can drop lib ref in framework/base/ofbiz-component.xml

* I wonder if we should let the geronimo component alone with only 2 classes, could we not put that in entity or entityext?

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755306 13f79535-47bb-0310-9956-ffa450edef68

  1. … 45 more files in changeset.
Modified patches from Pierre Smits for "Have configuration options for catalog webapp" https://issues.apache.org/jira/browse/OFBIZ-6192

These patches address the integration of CatalogSystemPropertyData.xml in the ofbiz-component.xml of the Product component, this is for the catalog webapp (based on catalog.properties)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1739967 13f79535-47bb-0310-9956-ffa450edef68

  1. … 1 more file in changeset.
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

  1. … 30 more files in changeset.
Moved the "bi" component from the framework to the specialpurpose folder; moved all the dependencies (client code) on the "bi" component from applications components to the "bi" component itself. Now the "bi" component contains all the dimensions/facts/star schemas and all the logic to populate them and can be easily enabled/disabled.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642027 13f79535-47bb-0310-9956-ffa450edef68

  1. … 78 more files in changeset.
split up securitypermissions as seed data and securitygroups as demo data with a single exception: the creation of a super security group which has general access to the system and which is used with the 'ant create-admin-user-login' command.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1352431 13f79535-47bb-0310-9956-ffa450edef68

  1. … 126 more files in changeset.
reverted recent security file changes revisions: 1350847,1350843,1350840,1348534,1347908,1347213,1346264, need more investigation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1351206 13f79535-47bb-0310-9956-ffa450edef68

  1. … 42 more files in changeset.
split security for catalog and facility over 2 files

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1347908 13f79535-47bb-0310-9956-ffa450edef68

  1. … 2 more files in changeset.
introduced a new data-reader : 'security'

Security is now by default not loaded because not part of seed anymore this will make all component hidden and not accessible .

It is still loaded as part of the reader 'demo'

to load the security files:

./ant load-readers -Ddata-readers=security

Now it is possible to load only a selection of the security files in your hot-deploy component as follows:

<entity-resource type=data reader-name=seed loader=main location=../../framework/security/data/SecurityData.xml/>

<entity-resource type=data reader-name=seed loader=main location=../../framework/webtools/data/WebtoolsSecurityData.xml/>

<entity-resource type=data reader-name=seed loader=main location=../../applications/party/data/PartySecurityData.xml/>

This will enable only standard groups, the party and the webtools application.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1346255 13f79535-47bb-0310-9956-ffa450edef68

  1. … 34 more files in changeset.
OFBIZ-4643 - Add description for Component, only complete existing functionality - a patch from Olivier Heintz

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1226954 13f79535-47bb-0310-9956-ffa450edef68

  1. … 3 more files in changeset.
- Fix 2 log warnings when checking the entity definitions. - Using iterate for each keyword type forms. - Create a screen for display when the tags is created. - Create junit test for product tag.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1224689 13f79535-47bb-0310-9956-ffa450edef68

  1. … 9 more files in changeset.
first version of the implementation of group orders

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1204805 13f79535-47bb-0310-9956-ffa450edef68

  1. … 11 more files in changeset.
Cleanup, re-organize Catalog function in catalog, for consistancy reasons added a catalog option showing always a list (most installations only have one or a few) add a 'create seo urls's for products and categories' tab. remove contentid from webabalytics demo data

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1128799 13f79535-47bb-0310-9956-ffa450edef68

  1. … 10 more files in changeset.
the first version of a product image management system to upload/approve and manupulate product images, see catalog -> image management

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052521 13f79535-47bb-0310-9956-ffa450edef68

  1. … 60 more files in changeset.