Comparing ofBiz Hashed Passwords in .NET

2010-07-07 Thread CGrantAnderson

I am working on an application that wants to leverage the ofBiz user logins
to allow ofBiz users to automatically logon to another application developed
in .NET ASP.NET.  The ASP.NET application gets a login from the user and
then accesses a copy of the ofBiz user login table to compare passwords for
login validation.  I have the .NET code creating a SHA-1 password hash but
it does not compare properly to the encrypted passwords in ofBiz.  I wrote
some test Java code and determined that it's version of SHA-1 is the same as
the .NET version hash.  So it looks like a salt is being used but none of
the ofBiz developers where I work can point out how to find the salt value
or help me with this.  I have looked through the login code and it looks
like a straight SHA-1 hash using MessageDigest.  But then the hashed
passwords should match but they don't.

Can someone tell me what (and where) the salt value is that is being used? 
Or if I'm missing something here what it is?  And possibly point me to where
in the documentation this is covered (if it is)?

Thanks!

   - Grant
-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Comparing-ofBiz-Hashed-Passwords-in-NET-tp2280296p2280296.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


Comparing ofBiz Hashed Passwords in .NET

2010-07-07 Thread Grant Anderson
I am working on an application that wants to leverage the ofBiz user
logins to allow ofBiz users to automatically logon to another
application developed in .NET ASP.NET.  The ASP.NET application gets a
login from the user and then accesses a copy of the ofBiz user login
table to compare passwords for login validation.  I have the .NET code
creating a SHA-1 password hash but it does not compare properly to the
encrypted passwords in ofBiz.  I wrote some test Java code and
determined that it's version of SHA-1 is the same as the .NET version
hash.  So it looks like a salt is being used but none of the ofBiz
developers where I work can point out how to find the salt value or help
me with this.  I have looked through the login code and it looks like a
straight SHA-1 hash using MessageDigest.  But then the hashed passwords
should match but they don't. 

Can someone tell me what (and where) the salt value is that is being
used?  Or if I'm missing something here what it is?  And possibly point
me to where in the documentation this is covered (if it is)? 

Thanks! 

   - Grant



Re: Comparing ofBiz Hashed Passwords in .NET

2010-07-07 Thread Adam Heath
CGrantAnderson wrote:
 I am working on an application that wants to leverage the ofBiz user logins
 to allow ofBiz users to automatically logon to another application developed
 in .NET ASP.NET.  The ASP.NET application gets a login from the user and
 then accesses a copy of the ofBiz user login table to compare passwords for
 login validation.  I have the .NET code creating a SHA-1 password hash but
 it does not compare properly to the encrypted passwords in ofBiz.  I wrote
 some test Java code and determined that it's version of SHA-1 is the same as
 the .NET version hash.  So it looks like a salt is being used but none of
 the ofBiz developers where I work can point out how to find the salt value
 or help me with this.  I have looked through the login code and it looks
 like a straight SHA-1 hash using MessageDigest.  But then the hashed
 passwords should match but they don't.
 
 Can someone tell me what (and where) the salt value is that is being used? 
 Or if I'm missing something here what it is?  And possibly point me to where
 in the documentation this is covered (if it is)?

There is no salt in ofbiz passwords.

I have a patch that adds support for it, that is compatible with unix
crypt(3).



Re: Comparing ofBiz Hashed Passwords in .NET

2010-07-07 Thread Scott Gray
How old is the OFBiz instance?  The hex encoding was messy a few years back 
which resulted in unexpected results but that's been fixed for a while now.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 7/07/2010, at 10:55 AM, CGrantAnderson wrote:

 
 I am working on an application that wants to leverage the ofBiz user logins
 to allow ofBiz users to automatically logon to another application developed
 in .NET ASP.NET.  The ASP.NET application gets a login from the user and
 then accesses a copy of the ofBiz user login table to compare passwords for
 login validation.  I have the .NET code creating a SHA-1 password hash but
 it does not compare properly to the encrypted passwords in ofBiz.  I wrote
 some test Java code and determined that it's version of SHA-1 is the same as
 the .NET version hash.  So it looks like a salt is being used but none of
 the ofBiz developers where I work can point out how to find the salt value
 or help me with this.  I have looked through the login code and it looks
 like a straight SHA-1 hash using MessageDigest.  But then the hashed
 passwords should match but they don't.
 
 Can someone tell me what (and where) the salt value is that is being used? 
 Or if I'm missing something here what it is?  And possibly point me to where
 in the documentation this is covered (if it is)?
 
 Thanks!
 
   - Grant
 -- 
 View this message in context: 
 http://ofbiz.135035.n4.nabble.com/Comparing-ofBiz-Hashed-Passwords-in-NET-tp2280296p2280296.html
 Sent from the OFBiz - Dev mailing list archive at Nabble.com.



smime.p7s
Description: S/MIME cryptographic signature


[jira] Commented: (OFBIZ-3845) Multiple lookups target problem

2010-07-07 Thread Sascha Rodekamp (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-3845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12885880#action_12885880
 ] 

Sascha Rodekamp commented on OFBIZ-3845:


Hi Shubham,

i could reproduce the error. In my instance it's not the problems with the 
generated IDs (every lookup have a unique ID). The problem is the Request. I 
don't now why but the last Request which is used on the site for the last 
lookup will be used for every other lookup before. Freemarker renders the right 
Tag but the behavior of the .load method seems to be mysterious. I will have a 
look at this issue :-)

 Multiple lookups target problem
 ---

 Key: OFBIZ-3845
 URL: https://issues.apache.org/jira/browse/OFBIZ-3845
 Project: OFBiz
  Issue Type: Sub-task
  Components: ALL COMPONENTS
Affects Versions: jQuery
Reporter: Shubham Dubey
 Fix For: jQuery


 Steps:
 (1) Go to any page having more than one lookup.
 (2) Click on any lookup and find the corrosponding information and click on 
 tab to select the information.
  
 Any lookup we select, lookup for same lookupId is created, which is for the 
 last lookup.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-3830) jQuery Calendar Implementation

2010-07-07 Thread Sascha Rodekamp (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12885883#action_12885883
 ] 

Sascha Rodekamp commented on OFBIZ-3830:


OK Jacques good hint, i will keep it in mind, thanks. 

I wish you a good holiday, take you're time to relaxe a few days :-) 

Have a good day
Sascha

 jQuery Calendar Implementation
 --

 Key: OFBIZ-3830
 URL: https://issues.apache.org/jira/browse/OFBIZ-3830
 Project: OFBiz
  Issue Type: Sub-task
  Components: ALL APPLICATIONS
Affects Versions: jQuery
Reporter: Sascha Rodekamp
Assignee: Erwan de FERRIERES
 Fix For: jQuery

 Attachments: cal.gif, images.zip, jquery.zip, 
 OFBIZ-3814_calendar_fix.patch, OFBIZ-3830_calendar_update.patch, 
 OFBIZ-3830_CalendarLanguageFix.patch


 Hey, good morning,
 here a few changes from the WE. I try to implement a new jQuery calendar. 
 It's not totally done, yet. I didn't touch the FTLs were the calenar is 
 called. But all calendar calls over the Macro renderer work. 
 I used the jQuery User Interface [http://jqueryui.com/] Calendar (so no 
 licence problems) furthermore i added a plugin for the data pickin (GLP/MIT 
 Licence too :-) [http://trentrichardson.com/examples/timepicker/]). The 
 jQuery UI have some interessting widgets!!
 For commit please copy the folder from the jquery.zip in the images/jquery 
 folder. You should have images/jquery/ui and images/jquery/plugins.
 Furthermore there are themes for the jQuery UI widgets. Which i have copied 
 in the Theme CSS of ofbiz. The images.zip contains images which are needed by 
 the jQuery widegts, i placed them in the image folder of each ofbiz Theme.
 I think we have to decide if this is the right way to deal with th jQuery UI.
 Cheers, hava good day
 Sascha

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: PicklistOptions processing time

2010-07-07 Thread Jacques Le Roux

Hi Albert,

When you say better prepared SQL statements do you mean that you have not 
used the Entity Engine?

Jacques

From: mayo albertmay...@hotmail.com

Has anyone else noticed the amount of time it could take to load the
PicklistOptions view for larger batches of orders and a larger database
history?

I am noticing as our OFBiz database grows larger, it is taking the
PicklistOptions longer to load. Even for a batch as small as 50 orders it
can take up to a couple minutes to load.  300 orders can take upwards of
5-10 minutes.  My development system with much lesser hardware can get
through a hundred orders in seconds, so I have a feeling it has to do with
the process/code inefficiency.

I am using OFBiz 4.0. Has this already been fixed in the trunk version?  If
not, I have developed a faster picklist process for my copmany that makes
minimal hits to the database and utilizes better prepared SQL statements to
get the same result. It may be a nice foundation to a substantially improved
picklist process for the trunk version. Would anyone be interested in this
code?  If so, should I create a Jira ticket and attach the code?
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/PicklistOptions-processing-time-tp2280129p2280129.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.





[jira] Commented: (OFBIZ-3830) jQuery Calendar Implementation

2010-07-07 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12885892#action_12885892
 ] 

Jacques Le Roux commented on OFBIZ-3830:


Thanks Sascha,

I will follow your advice ;)

 jQuery Calendar Implementation
 --

 Key: OFBIZ-3830
 URL: https://issues.apache.org/jira/browse/OFBIZ-3830
 Project: OFBiz
  Issue Type: Sub-task
  Components: ALL APPLICATIONS
Affects Versions: jQuery
Reporter: Sascha Rodekamp
Assignee: Erwan de FERRIERES
 Fix For: jQuery

 Attachments: cal.gif, images.zip, jquery.zip, 
 OFBIZ-3814_calendar_fix.patch, OFBIZ-3830_calendar_update.patch, 
 OFBIZ-3830_CalendarLanguageFix.patch


 Hey, good morning,
 here a few changes from the WE. I try to implement a new jQuery calendar. 
 It's not totally done, yet. I didn't touch the FTLs were the calenar is 
 called. But all calendar calls over the Macro renderer work. 
 I used the jQuery User Interface [http://jqueryui.com/] Calendar (so no 
 licence problems) furthermore i added a plugin for the data pickin (GLP/MIT 
 Licence too :-) [http://trentrichardson.com/examples/timepicker/]). The 
 jQuery UI have some interessting widgets!!
 For commit please copy the folder from the jquery.zip in the images/jquery 
 folder. You should have images/jquery/ui and images/jquery/plugins.
 Furthermore there are themes for the jQuery UI widgets. Which i have copied 
 in the Theme CSS of ofbiz. The images.zip contains images which are needed by 
 the jQuery widegts, i placed them in the image folder of each ofbiz Theme.
 I think we have to decide if this is the right way to deal with th jQuery UI.
 Cheers, hava good day
 Sascha

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-3845) Multiple lookups target problem

2010-07-07 Thread Shubham Dubey (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-3845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12885901#action_12885901
 ] 

Shubham Dubey commented on OFBIZ-3845:
--

Hi Sascha

Yes there is a problem, and i did't said that lookUpId's are same for all the 
lookup's infact i mentioned Any lookup we select, lookup for same lookupId is 
created, which is for the last lookup.

If it is confusing,then i would like to clarify it. 
Please see the associated lookupId on title bar of the lookup, that targets to 
the last one.

Also i see a problem that sometimes lookup's are not displayed, that might be a 
instantaneous problem on my local instance,that i will look.

Thanks for reviewing it, i will also try to have closer look at this mysterious 
behaviour  :)



 Multiple lookups target problem
 ---

 Key: OFBIZ-3845
 URL: https://issues.apache.org/jira/browse/OFBIZ-3845
 Project: OFBiz
  Issue Type: Sub-task
  Components: ALL COMPONENTS
Affects Versions: jQuery
Reporter: Shubham Dubey
 Fix For: jQuery


 Steps:
 (1) Go to any page having more than one lookup.
 (2) Click on any lookup and find the corrosponding information and click on 
 tab to select the information.
  
 Any lookup we select, lookup for same lookupId is created, which is for the 
 last lookup.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Removing the ShoppingCart.containOnlyDigitalGoods

2010-07-07 Thread Jacopo Cappellato
What about removing the ShoppingCart.containOnlyDigitalGoods methods and use 
instead the

   public boolean shippingApplies()

?

(We will also need a new shippingApplies method that takes as input the 
shipgroup).

In fact the logic in shippingApplies is the one used in several other places to 
determine the shipping charges.

Kind regards,

Jacopo


Re: Removing the ShoppingCart.containOnlyDigitalGoods

2010-07-07 Thread Bilgin Ibryam
+ 1

Bilgin

On Wed, Jul 7, 2010 at 11:39 AM, Jacopo Cappellato 
jacopo.cappell...@hotwaxmedia.com wrote:

 What about removing the ShoppingCart.containOnlyDigitalGoods methods and
 use instead the

   public boolean shippingApplies()

 ?

 (We will also need a new shippingApplies method that takes as input the
 shipgroup).

 In fact the logic in shippingApplies is the one used in several other
 places to determine the shipping charges.

 Kind regards,

 Jacopo



Re: Removing the ShoppingCart.containOnlyDigitalGoods

2010-07-07 Thread Rishi Solanki
+1.
Rishi Solanki
Manager, Enterprise Software Development
HotWax Media Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxmedia.com


On Wed, Jul 7, 2010 at 5:24 PM, Bilgin Ibryam bibr...@gmail.com wrote:

 + 1

 Bilgin

 On Wed, Jul 7, 2010 at 11:39 AM, Jacopo Cappellato 
 jacopo.cappell...@hotwaxmedia.com wrote:

  What about removing the ShoppingCart.containOnlyDigitalGoods methods and
  use instead the
 
public boolean shippingApplies()
 
  ?
 
  (We will also need a new shippingApplies method that takes as input the
  shipgroup).
 
  In fact the logic in shippingApplies is the one used in several other
  places to determine the shipping charges.
 
  Kind regards,
 
  Jacopo
 



Re: Removing the ShoppingCart.containOnlyDigitalGoods

2010-07-07 Thread Mridul Pathak
+1

--
Thanks  Regards,
Mridul Pathak
Senior Manager
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com




On Jul 7, 2010, at 4:09 PM, Jacopo Cappellato wrote:

 What about removing the ShoppingCart.containOnlyDigitalGoods methods and use 
 instead the
 
   public boolean shippingApplies()
 
 ?
 
 (We will also need a new shippingApplies method that takes as input the 
 shipgroup).
 
 In fact the logic in shippingApplies is the one used in several other places 
 to determine the shipping charges.
 
 Kind regards,
 
 Jacopo



smime.p7s
Description: S/MIME cryptographic signature


Re: Adding agreementId to OrderHeader

2010-07-07 Thread Jacopo Cappellato
Thanks Scott,

the link was indeed useful.
I like the plan of creating the AgreementOrderAppl entity, because it will be 
definitely very flexible.
However the existing order code (ui and business logic) is based on the 
assumption that one agreement is associated to a cart/order, and I would like 
to fix this process asap before enhancing the data model with the 
AgreementOrderAppl entity.

So, what if I add the new field to the OrderHeader but instead of naming it 
agreementId we use primaryAgreementId?

Kind regards,

Jacopo


On Jul 3, 2010, at 9:36 AM, Scott Gray wrote:

 Hi Jacopo,
 
 Not sure if this is of any use to you: 
 http://ofbiz.135035.n4.nabble.com/orders-and-contracts-td2248364.html#a2248394
 
 Regards
 Scott
 
 HotWax Media
 http://www.hotwaxmedia.com
 
 On 3/07/2010, at 6:24 PM, Jacopo Cappellato wrote:
 
 yes, I will do.
 
 Jacopo
 
 On Jul 2, 2010, at 8:01 PM, Jacques Le Roux wrote:
 
 Pretty logical, I see. Maybe Jacopo will consider it?
 
 Thanks
 
 Jacques
 
 From: BJ Freeman bjf...@free-man.net
 never saw it as enhanced only following the Data model book.
 since most told me that features were not complete in ofbiz, I completed 
 them.
 Since most of my discussion were ignored I just made my own, using the 
 OOTB as a basis.
 I use what I can of the svn and add on top the way I see it.
 =
 BJ Freeman
 http://bjfreeman.elance.com
 Strategic Power Office with Supplier Automation  
 http://www.businessesnetwork.com/automation/viewforum.php?f=52
 Specialtymarket.com  http://www.specialtymarket.com/
 Systems Integrator-- Glad to Assist
 Chat  Y! messenger: bjfr33man
 Linkedin 
 http://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro
 Jacques Le Roux sent the following on 7/2/2010 10:26 AM:
 Interesting, so you enhanced the OOTB model and actions, right?
 
 Jacques
 
 From: BJ Freeman bjf...@free-man.net
 I used the model on page 146
 and the example agreementID 10002
 since the Agreement has the product agreement, the service matches the
 product agreement productID and updates the orderitem orderterms(page
 128) and table 4.9(page 129) . an SECA checks that the order terms can
 be accepted based on the order, like a promo may be disqualified based
 on the order terms.
 
 
 
 =
 BJ Freeman
 http://bjfreeman.elance.com
 Strategic Power Office with Supplier Automation
 http://www.businessesnetwork.com/automation/viewforum.php?f=52
 Specialtymarket.com http://www.specialtymarket.com/
 
 Systems Integrator-- Glad to Assist
 
 Chat Y! messenger: bjfr33man
 Linkedin
 http://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro
 
 
 
 Jacopo Cappellato sent the following on 7/2/2010 3:26 AM:
 When an order is initiated, it is possible to select an agreement
 that will govern the orders (OrderTerms are cloned from
 AgreementTerms, if the agreement has a price list then the agreement
 prices are used in place of ProductPrice); however the agreementId is
 only added to the cart but it is lost when the order is saved.
 This causes issues if the order is edited: the agreement is lost and
 the system is unable to apply the agreement prices to the edited order.
 
 The solution I am proposing is to add the agreementId field to
 OrderHeader entity.
 
 What do you think?
 
 Jacopo
 
 
 
 
 
 
 
 
 
 
 



Re: PicklistOptions processing time

2010-07-07 Thread mayo

No, I used DynamicViewEntity to make more complex SQL to more quickly filter
out any orders that should not be picked.  For instance in OFBiz 4.0 (and
maybe the trunk version), the picklistoptions function will (abbreviated)

select * from OrderHeader 
for each orderHeader {
select * from OrderItemShipGroup where orderId = orderHeader.orderId
for each orderItemShipGroup in orderItemShipGroupList {
select * from OrderItemShipGrpInvRes where orderId =
orderItemShipGroup.orderId;
for each orderItemShipGrpInvRes in orderItemShipGrpInvResList {
etc
 }
}
}

These kind of loops can create many hits to the database and greatly slow
down the process, especially if the database tables have many records.  Our
database is now almost 8 gigs.  The PicklistOptions process yesterday took
~4 minutes for 40 pickable orders.

My code uses DynamicViewEntity to create join statements and make minimal
hits to the database--I think a total of 4 hits.  For the same 40 pickable
orders, the process ran in 2-3 seconds.  My code is missing some of the
bells and whistles that you have, but it gives a good foundation and
structure.  You will be able to add all the bells and whistles very quickly.

My company is using my code in production right now.  The user has verified
it is working correctly to this point.  Let me know if anyone is interested
in seeing the code.  I would like to contribute to the community is some
way, since I do not have time to properly develop on the trunk.
-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/PicklistOptions-processing-time-tp2280129p2280947.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


Re: PicklistOptions processing time

2010-07-07 Thread Joe Eckard
We've done the same thing here, but using a view entity instead of a  
dynamic entity. Ours uses 3 queries, 1 to find orders ready to pick, 1  
to find those already on a picklist (subtracted from the first list)  
and 1 to find those that need stock moves (also subtracted from the  
original list).


I would be interested to see your approach.

-Joe

On Jul 7, 2010, at 9:59 AM, mayo wrote:



No, I used DynamicViewEntity to make more complex SQL to more  
quickly filter
out any orders that should not be picked.  For instance in OFBiz 4.0  
(and
maybe the trunk version), the picklistoptions function will  
(abbreviated)


select * from OrderHeader
for each orderHeader {
   select * from OrderItemShipGroup where orderId =  
orderHeader.orderId

   for each orderItemShipGroup in orderItemShipGroupList {
   select * from OrderItemShipGrpInvRes where orderId =
orderItemShipGroup.orderId;
   for each orderItemShipGrpInvRes in orderItemShipGrpInvResList {
   etc
}
   }
}

These kind of loops can create many hits to the database and greatly  
slow
down the process, especially if the database tables have many  
records.  Our
database is now almost 8 gigs.  The PicklistOptions process  
yesterday took

~4 minutes for 40 pickable orders.

My code uses DynamicViewEntity to create join statements and make  
minimal
hits to the database--I think a total of 4 hits.  For the same 40  
pickable
orders, the process ran in 2-3 seconds.  My code is missing some of  
the

bells and whistles that you have, but it gives a good foundation and
structure.  You will be able to add all the bells and whistles very  
quickly.


My company is using my code in production right now.  The user has  
verified
it is working correctly to this point.  Let me know if anyone is  
interested
in seeing the code.  I would like to contribute to the community is  
some

way, since I do not have time to properly develop on the trunk.
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/PicklistOptions-processing-time-tp2280129p2280947.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.




birt and System.err

2010-07-07 Thread Adam Heath
I have discovered that something in birt is closing System.err during
startup.  This was discovered when Exception.printStackTrace() stopped
showing output(it goes to System.err by default).  If I remove the
birt component, then err is not closed.

Has anyone else seen this?  Hans, do you have any clues as to what is
going on here?


Re: PicklistOptions processing time

2010-07-07 Thread Joe Eckard
We've done the same thing here, but using a view entity instead of a  
dynamic entity. Ours uses 3 queries, 1 to find orders ready to pick, 1  
to find those already on a picklist (subtracted from the first list)  
and 1 to find those that need stock moves (also subtracted from the  
original list).


I would be interested to see your approach.

-Joe

On Jul 7, 2010, at 9:59 AM, mayo wrote:



No, I used DynamicViewEntity to make more complex SQL to more  
quickly filter
out any orders that should not be picked.  For instance in OFBiz 4.0  
(and
maybe the trunk version), the picklistoptions function will  
(abbreviated)


select * from OrderHeader
for each orderHeader {
   select * from OrderItemShipGroup where orderId =  
orderHeader.orderId

   for each orderItemShipGroup in orderItemShipGroupList {
   select * from OrderItemShipGrpInvRes where orderId =
orderItemShipGroup.orderId;
   for each orderItemShipGrpInvRes in orderItemShipGrpInvResList {
   etc
}
   }
}

These kind of loops can create many hits to the database and greatly  
slow
down the process, especially if the database tables have many  
records.  Our
database is now almost 8 gigs.  The PicklistOptions process  
yesterday took

~4 minutes for 40 pickable orders.

My code uses DynamicViewEntity to create join statements and make  
minimal
hits to the database--I think a total of 4 hits.  For the same 40  
pickable
orders, the process ran in 2-3 seconds.  My code is missing some of  
the

bells and whistles that you have, but it gives a good foundation and
structure.  You will be able to add all the bells and whistles very  
quickly.


My company is using my code in production right now.  The user has  
verified
it is working correctly to this point.  Let me know if anyone is  
interested
in seeing the code.  I would like to contribute to the community is  
some

way, since I do not have time to properly develop on the trunk.
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/PicklistOptions-processing-time-tp2280129p2280947.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.




Re: PicklistOptions processing time

2010-07-07 Thread mayo

Ok cool.  I did something similar.  What is the best way for me to get the
code to you?
-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/PicklistOptions-processing-time-tp2280129p2281080.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


Re: Adding agreementId to OrderHeader

2010-07-07 Thread BJ Freeman
I have the implementation that uses the Sales agreement and a 
productaggreemt for retail, wholesale, custom.
so as you think though the changes you might want to consider hooks to 
allow this in future.


also the agreements are based on partyID role of customeras a 
relationship with the company so I don't see how just AgreementOrderAppl 
 tied to the order header will accomplish this.


=
BJ Freeman  http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation  
http://www.businessesnetwork.com/automation/viewforum.php?f=52
Specialtymarket.com  http://www.specialtymarket.com/
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Jacopo Cappellato sent the following on 7/7/2010 6:07 AM:

Thanks Scott,

the link was indeed useful.
I like the plan of creating the AgreementOrderAppl entity, because it will be 
definitely very flexible.
However the existing order code (ui and business logic) is based on the 
assumption that one agreement is associated to a cart/order, and I would like 
to fix this process asap before enhancing the data model with the 
AgreementOrderAppl entity.

So, what if I add the new field to the OrderHeader but instead of naming it agreementId 
we use primaryAgreementId?

Kind regards,

Jacopo


On Jul 3, 2010, at 9:36 AM, Scott Gray wrote:


Hi Jacopo,

Not sure if this is of any use to you: 
http://ofbiz.135035.n4.nabble.com/orders-and-contracts-td2248364.html#a2248394

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 3/07/2010, at 6:24 PM, Jacopo Cappellato wrote:


yes, I will do.

Jacopo

On Jul 2, 2010, at 8:01 PM, Jacques Le Roux wrote:


Pretty logical, I see. Maybe Jacopo will consider it?

Thanks

Jacques

From: BJ Freemanbjf...@free-man.net

never saw it as enhanced only following the Data model book.
since most told me that features were not complete in ofbiz, I completed them.
Since most of my discussion were ignored I just made my own, using the OOTB as 
a basis.
I use what I can of the svn and add on top the way I see it.
=
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier 
Automationhttp://www.businessesnetwork.com/automation/viewforum.php?f=52
Specialtymarket.comhttp://www.specialtymarket.com/
Systems Integrator-- Glad to Assist
Chat  Y! messenger: bjfr33man
Linkedinhttp://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro
Jacques Le Roux sent the following on 7/2/2010 10:26 AM:

Interesting, so you enhanced the OOTB model and actions, right?

Jacques

From: BJ Freemanbjf...@free-man.net

I used the model on page 146
and the example agreementID 10002
since the Agreement has the product agreement, the service matches the
product agreement productID and updates the orderitem orderterms(page
128) and table 4.9(page 129) . an SECA checks that the order terms can
be accepted based on the order, like a promo may be disqualified based
on the order terms.



=
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation
http://www.businessesnetwork.com/automation/viewforum.php?f=52
Specialtymarket.comhttp://www.specialtymarket.com/

Systems Integrator-- Glad to Assist

Chat Y! messenger: bjfr33man
Linkedin
http://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro



Jacopo Cappellato sent the following on 7/2/2010 3:26 AM:

When an order is initiated, it is possible to select an agreement
that will govern the orders (OrderTerms are cloned from
AgreementTerms, if the agreement has a price list then the agreement
prices are used in place of ProductPrice); however the agreementId is
only added to the cart but it is lost when the order is saved.
This causes issues if the order is edited: the agreement is lost and
the system is unable to apply the agreement prices to the edited order.

The solution I am proposing is to add the agreementId field to
OrderHeader entity.

What do you think?

Jacopo
























Re: Adding agreementId to OrderHeader

2010-07-07 Thread Scott Gray
Hi Jacopo,

I have to admit to not being a big fan of the primary* pattern, for example in 
the Shipment entity I really feel it has done nothing except cause us to take 
shortcuts when writing shipping logic.  In terms of an Agreement or even a 
Shipment, what does it actually mean to be the primary?  

I understand its usage in Product.primaryProductCategoryId, where it can be 
used in cases where you need to be able to inspect a hierarchy rather than a 
graph e.g. for reporting purposes, but it makes less sense to me for those 
other entities.

Could we not for now just limit the UI and logic to only handle a single 
agreement, but allow for the many-to-many in the data model?

Regards
Scott

On 8/07/2010, at 1:07 AM, Jacopo Cappellato wrote:

 Thanks Scott,
 
 the link was indeed useful.
 I like the plan of creating the AgreementOrderAppl entity, because it will be 
 definitely very flexible.
 However the existing order code (ui and business logic) is based on the 
 assumption that one agreement is associated to a cart/order, and I would like 
 to fix this process asap before enhancing the data model with the 
 AgreementOrderAppl entity.
 
 So, what if I add the new field to the OrderHeader but instead of naming it 
 agreementId we use primaryAgreementId?
 
 Kind regards,
 
 Jacopo
 
 
 On Jul 3, 2010, at 9:36 AM, Scott Gray wrote:
 
 Hi Jacopo,
 
 Not sure if this is of any use to you: 
 http://ofbiz.135035.n4.nabble.com/orders-and-contracts-td2248364.html#a2248394
 
 Regards
 Scott
 
 HotWax Media
 http://www.hotwaxmedia.com
 
 On 3/07/2010, at 6:24 PM, Jacopo Cappellato wrote:
 
 yes, I will do.
 
 Jacopo
 
 On Jul 2, 2010, at 8:01 PM, Jacques Le Roux wrote:
 
 Pretty logical, I see. Maybe Jacopo will consider it?
 
 Thanks
 
 Jacques
 
 From: BJ Freeman bjf...@free-man.net
 never saw it as enhanced only following the Data model book.
 since most told me that features were not complete in ofbiz, I completed 
 them.
 Since most of my discussion were ignored I just made my own, using the 
 OOTB as a basis.
 I use what I can of the svn and add on top the way I see it.
 =
 BJ Freeman
 http://bjfreeman.elance.com
 Strategic Power Office with Supplier Automation  
 http://www.businessesnetwork.com/automation/viewforum.php?f=52
 Specialtymarket.com  http://www.specialtymarket.com/
 Systems Integrator-- Glad to Assist
 Chat  Y! messenger: bjfr33man
 Linkedin 
 http://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro
 Jacques Le Roux sent the following on 7/2/2010 10:26 AM:
 Interesting, so you enhanced the OOTB model and actions, right?
 
 Jacques
 
 From: BJ Freeman bjf...@free-man.net
 I used the model on page 146
 and the example agreementID 10002
 since the Agreement has the product agreement, the service matches the
 product agreement productID and updates the orderitem orderterms(page
 128) and table 4.9(page 129) . an SECA checks that the order terms can
 be accepted based on the order, like a promo may be disqualified based
 on the order terms.
 
 
 
 =
 BJ Freeman
 http://bjfreeman.elance.com
 Strategic Power Office with Supplier Automation
 http://www.businessesnetwork.com/automation/viewforum.php?f=52
 Specialtymarket.com http://www.specialtymarket.com/
 
 Systems Integrator-- Glad to Assist
 
 Chat Y! messenger: bjfr33man
 Linkedin
 http://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro
 
 
 
 Jacopo Cappellato sent the following on 7/2/2010 3:26 AM:
 When an order is initiated, it is possible to select an agreement
 that will govern the orders (OrderTerms are cloned from
 AgreementTerms, if the agreement has a price list then the agreement
 prices are used in place of ProductPrice); however the agreementId is
 only added to the cart but it is lost when the order is saved.
 This causes issues if the order is edited: the agreement is lost and
 the system is unable to apply the agreement prices to the edited order.
 
 The solution I am proposing is to add the agreementId field to
 OrderHeader entity.
 
 What do you think?
 
 Jacopo
 
 
 
 
 
 
 
 
 
 
 
 



smime.p7s
Description: S/MIME cryptographic signature


Re: Adding agreementId to OrderHeader

2010-07-07 Thread Adam Heath
Scott Gray wrote:
 Hi Jacopo,
 
 I have to admit to not being a big fan of the primary* pattern, for example 
 in the Shipment entity I really feel it has done nothing except cause us to 
 take shortcuts when writing shipping logic.  In terms of an Agreement or even 
 a Shipment, what does it actually mean to be the primary?  
 
 I understand its usage in Product.primaryProductCategoryId, where it can be 
 used in cases where you need to be able to inspect a hierarchy rather than a 
 graph e.g. for reporting purposes, but it makes less sense to me for those 
 other entities.
 
 Could we not for now just limit the UI and logic to only handle a single 
 agreement, but allow for the many-to-many in the data model?

My vote is to not add a primaryFoo field, but use a joined entity,
with an appropriate Purpose attached.

Once you have code that can look up the joined entity with a purpose,
adding more logic to handle other purposes is easy.

But having a primaryFoo in the base entity means you have duplicate
code for dealing with the same info.

 
 Regards
 Scott
 
 On 8/07/2010, at 1:07 AM, Jacopo Cappellato wrote:
 
 Thanks Scott,

 the link was indeed useful.
 I like the plan of creating the AgreementOrderAppl entity, because it will 
 be definitely very flexible.
 However the existing order code (ui and business logic) is based on the 
 assumption that one agreement is associated to a cart/order, and I would 
 like to fix this process asap before enhancing the data model with the 
 AgreementOrderAppl entity.

 So, what if I add the new field to the OrderHeader but instead of naming it 
 agreementId we use primaryAgreementId?

 Kind regards,

 Jacopo


 On Jul 3, 2010, at 9:36 AM, Scott Gray wrote:

 Hi Jacopo,

 Not sure if this is of any use to you: 
 http://ofbiz.135035.n4.nabble.com/orders-and-contracts-td2248364.html#a2248394

 Regards
 Scott

 HotWax Media
 http://www.hotwaxmedia.com

 On 3/07/2010, at 6:24 PM, Jacopo Cappellato wrote:

 yes, I will do.

 Jacopo

 On Jul 2, 2010, at 8:01 PM, Jacques Le Roux wrote:

 Pretty logical, I see. Maybe Jacopo will consider it?

 Thanks

 Jacques

 From: BJ Freeman bjf...@free-man.net
 never saw it as enhanced only following the Data model book.
 since most told me that features were not complete in ofbiz, I completed 
 them.
 Since most of my discussion were ignored I just made my own, using the 
 OOTB as a basis.
 I use what I can of the svn and add on top the way I see it.
 =
 BJ Freeman
 http://bjfreeman.elance.com
 Strategic Power Office with Supplier Automation  
 http://www.businessesnetwork.com/automation/viewforum.php?f=52
 Specialtymarket.com  http://www.specialtymarket.com/
 Systems Integrator-- Glad to Assist
 Chat  Y! messenger: bjfr33man
 Linkedin 
 http://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro
 Jacques Le Roux sent the following on 7/2/2010 10:26 AM:
 Interesting, so you enhanced the OOTB model and actions, right?

 Jacques

 From: BJ Freeman bjf...@free-man.net
 I used the model on page 146
 and the example agreementID 10002
 since the Agreement has the product agreement, the service matches the
 product agreement productID and updates the orderitem orderterms(page
 128) and table 4.9(page 129) . an SECA checks that the order terms can
 be accepted based on the order, like a promo may be disqualified based
 on the order terms.



 =
 BJ Freeman
 http://bjfreeman.elance.com
 Strategic Power Office with Supplier Automation
 http://www.businessesnetwork.com/automation/viewforum.php?f=52
 Specialtymarket.com http://www.specialtymarket.com/

 Systems Integrator-- Glad to Assist

 Chat Y! messenger: bjfr33man
 Linkedin
 http://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro



 Jacopo Cappellato sent the following on 7/2/2010 3:26 AM:
 When an order is initiated, it is possible to select an agreement
 that will govern the orders (OrderTerms are cloned from
 AgreementTerms, if the agreement has a price list then the agreement
 prices are used in place of ProductPrice); however the agreementId is
 only added to the cart but it is lost when the order is saved.
 This causes issues if the order is edited: the agreement is lost and
 the system is unable to apply the agreement prices to the edited 
 order.

 The solution I am proposing is to add the agreementId field to
 OrderHeader entity.

 What do you think?

 Jacopo





 



Re: Adding agreementId to OrderHeader

2010-07-07 Thread BJ Freeman
how will you get all the companies role of agreements for a particular 
party that has a partyrelationship of customer?
how will you get all the Sales agreements for a partyrelationship of 
customer with the company under the role of agreements?



BJ Freeman sent the following on 7/7/2010 10:19 AM:


=
BJ Freeman  http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation  
http://www.businessesnetwork.com/automation/viewforum.php?f=52
Specialtymarket.com  http://www.specialtymarket.com/
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


I have the implementation that uses the Sales agreement and a
productaggreemt for retail, wholesale, custom.
so as you think though the changes you might want to consider hooks to
allow this in future.

also the agreements are based on partyID role of customeras a
relationship with the company so I don't see how just AgreementOrderAppl
tied to the order header will accomplish this.

=
BJ Freeman http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation
http://www.businessesnetwork.com/automation/viewforum.php?f=52
Specialtymarket.com http://www.specialtymarket.com/
Systems Integrator-- Glad to Assist

Chat Y! messenger: bjfr33man


Jacopo Cappellato sent the following on 7/7/2010 6:07 AM:

Thanks Scott,

the link was indeed useful.
I like the plan of creating the AgreementOrderAppl entity, because it
will be definitely very flexible.
However the existing order code (ui and business logic) is based on
the assumption that one agreement is associated to a cart/order, and I
would like to fix this process asap before enhancing the data model
with the AgreementOrderAppl entity.

So, what if I add the new field to the OrderHeader but instead of
naming it agreementId we use primaryAgreementId?

Kind regards,

Jacopo


On Jul 3, 2010, at 9:36 AM, Scott Gray wrote:


Hi Jacopo,

Not sure if this is of any use to you:
http://ofbiz.135035.n4.nabble.com/orders-and-contracts-td2248364.html#a2248394


Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 3/07/2010, at 6:24 PM, Jacopo Cappellato wrote:


yes, I will do.

Jacopo

On Jul 2, 2010, at 8:01 PM, Jacques Le Roux wrote:


Pretty logical, I see. Maybe Jacopo will consider it?

Thanks

Jacques

From: BJ Freemanbjf...@free-man.net

never saw it as enhanced only following the Data model book.
since most told me that features were not complete in ofbiz, I
completed them.
Since most of my discussion were ignored I just made my own, using
the OOTB as a basis.
I use what I can of the svn and add on top the way I see it.
=
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier
Automationhttp://www.businessesnetwork.com/automation/viewforum.php?f=52

Specialtymarket.comhttp://www.specialtymarket.com/
Systems Integrator-- Glad to Assist
Chat Y! messenger: bjfr33man
Linkedinhttp://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro

Jacques Le Roux sent the following on 7/2/2010 10:26 AM:

Interesting, so you enhanced the OOTB model and actions, right?

Jacques

From: BJ Freemanbjf...@free-man.net

I used the model on page 146
and the example agreementID 10002
since the Agreement has the product agreement, the service
matches the
product agreement productID and updates the orderitem
orderterms(page
128) and table 4.9(page 129) . an SECA checks that the order
terms can
be accepted based on the order, like a promo may be disqualified
based
on the order terms.



=
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation
http://www.businessesnetwork.com/automation/viewforum.php?f=52
Specialtymarket.comhttp://www.specialtymarket.com/

Systems Integrator-- Glad to Assist

Chat Y! messenger: bjfr33man
Linkedin
http://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro




Jacopo Cappellato sent the following on 7/2/2010 3:26 AM:

When an order is initiated, it is possible to select an agreement
that will govern the orders (OrderTerms are cloned from
AgreementTerms, if the agreement has a price list then the
agreement
prices are used in place of ProductPrice); however the
agreementId is
only added to the cart but it is lost when the order is saved.
This causes issues if the order is edited: the agreement is
lost and
the system is unable to apply the agreement prices to the
edited order.

The solution I am proposing is to add the agreementId field to
OrderHeader entity.

What do you think?

Jacopo

























discussion Agreements, ERP and/or MRP

2010-07-07 Thread BJ Freeman
Many companies have agreements about when orders will be place and when 
shipping will happen, before any order is placed.
Ofbiz advertises it is MRP software, yet all I have been able to see is 
Just-in-time-MRP.
Without the Data Model on page 146 vol I, rea,l efficient  MRP can not 
happen.
For those that argue the current model works, do an evaluation of the 
amount of passes it takes to marshal the data, compared to the Data 
Model I refer to.


I have a customer that has a big contract to manufacture concrete parts 
for a project two years off. Yet they need to know  ERP to build the 
manufacture plant to accommodate the orders that will be coming in.


I have another customer that to get good deals and deliver from 
suppliers has yearly contracts. This feeds back to the Budget Scenarios 
as to what type of  cash flow against order flow they must have to make 
these agreement worthwhile. Again no ordered have been placed.



Now I am not proposing that the complete Data model be filled in with 
data, only the models structure be, as in the data model books, adhered to.




=
BJ Freeman  http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation  
http://www.businessesnetwork.com/automation/viewforum.php?f=52
Specialtymarket.com  http://www.specialtymarket.com/
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man



Re: Hippo CMS

2010-07-07 Thread Michael Xu (xudong)
Any progress now?

--
Regards,
Michael Xu (xudong)


On Thu, Jun 24, 2010 at 3:59 PM, Scott Gray scott.g...@hotwaxmedia.comwrote:

 That makes far too much sense Adrian.

 I'm AFK for the next few days so I'll do it next week unless someone else
 wants to sooner.

 Regards
 Scott


 On 24/06/2010, at 5:38 PM, Adrian Crum adrian.c...@yahoo.com wrote:

  It might be worthwhile to post a message on the Jackrabbit user mailing
 list. Let them know what we have in mind, and see if they have any
 suggestions. Previous experience has shown that Apache sister projects are
 very helpful in integration efforts.

 -Adrian

 --- On Wed, 6/23/10, Sascha Rodekamp sascha.rodekamp.lynx.de@
 googlemail.com wrote:

  From: Sascha Rodekamp sascha.rodekamp.lynx...@googlemail.com
 Subject: Re: Hippo CMS
 To: dev@ofbiz.apache.org
 Date: Wednesday, June 23, 2010, 2:04 AM
 Hi Scott,
 jep that's sounds like a plan. In my opinion concentrating
 on Jackrabbit
 will be the best point to start.

 We should make some Jira Tasks and schedule them that we
 can start
 implementing ASAP :-). Did we need a separate Brunch?

 Cheers
 Sascha

 2010/6/23 Scott Gray scott.g...@hotwaxmedia.com

  Hi Sascha,

 Any help would of course be very much appreciated.

 I think regardless of what approach we take, everyone

 is mostly in

 agreement that we will be integrating with Jackrabbit

 or more importantly we

 will be making use of the JCR interface (in theory the

 actual JCR

 implementation should be irrelevant).  One thing

 I'm fairly sure we will

 need is a JAAS authentication module (and probably

 authorization) that we

 can plug in to the jackrabbit repository so that it

 can authenticate users

 via OFBiz.  That should be fairly straightforward

 I think, I'm less certain

 about what an authorization mechanism would look

 like.


 I guess we're also going to need to some sort of

 session provider interface

 that allows OFBiz to retrieve sessions from either an

 embedded repo or

 remote server repo and once again, it needs to be able

 to work with any JCR

 implementation.  I'm not entirely sure what that

 would look like at this

 stage but any thoughts on the topic would be useful.

 Most of the other questions come back to the content

 model and who controls

 it, will it be OFBiz or a random CMS or perhaps they

 will have separate

 models with some sort of jackrabbit internal

 synchronization between the

 two?  We need to look at these options and

 understand the pros and cons of

 each before we can move forward with any sort of

 certainty.


 Regards
 Scott

 On 22/06/2010, at 6:26 PM, Sascha Rodekamp wrote:

  +1

 i like the idea integrating a full featured CMS

 in ofbiz, a few weeks ago

 we

 started working with JCR but i think the Hippo

 way is a good one too :-)

 So Scott i would volunteer to help you :-) ...

 Have a good day
 Sascha

 2010/6/19 Scott Gray scott.g...@hotwaxmedia.com

  Anybody using or considered using Hippo CMS

 (onehippo.org) in

 conjunction

 with OFBiz?
 - Apache Licensed
 - Uses Jackrabbit as its repository
 - Supports Versioning, Internationalization,

 Publishing Workflows and

 more


 We could start out by using Hippo's UI to

 manage content and retrieve it

 for display within OFBiz using the JCR

 API.  As the various document

 types

 needed by the OFBiz base applications begin

 to take shape we could look

 at

 ways to allow the content to be modified

 directly from within OFBiz

 (once

 again using the JCR API).

 Any thoughts, alternatives, ideas or whatever

 would be appreciated.  I'm

 considering working on a POC in my spare

 time, not sure how long that

 might

 take at this stage.  I already have a

 copy of Hippo running inside OFBiz

 but

 that was just a matter of expanding their WAR

 distribution and wrapping

 it

 in a component, next step would be gaining

 access to the repo from OFBiz

 code.

 Thanks
 Scott

 HotWax Media
 http://www.hotwaxmedia.com





 --
 Sascha Rodekamp
   Lynx-Consulting GmbH
   Johanniskirchplatz 6
   D-33615 Bielefeld
   http://www.lynx.de





 --
 Sascha Rodekamp
   Lynx-Consulting GmbH
   Johanniskirchplatz 6
   D-33615 Bielefeld
   http://www.lynx.de







Re: Hippo CMS

2010-07-07 Thread Brett Palmer
Scott,

I like the idea of integrating with existing CMS applications.  When we are
talking about hippo what of their various products are we considering here:

Hippo CMS7
Hippo Repository 2
Hippo Site Toolkit 2
 or
Hippo Portal 2.0

from www.onehippo.org


Brett

On Fri, Jun 18, 2010 at 7:57 PM, Scott Gray scott.g...@hotwaxmedia.comwrote:

 Anybody using or considered using Hippo CMS (onehippo.org) in conjunction
 with OFBiz?
 - Apache Licensed
 - Uses Jackrabbit as its repository
 - Supports Versioning, Internationalization, Publishing Workflows and more

 We could start out by using Hippo's UI to manage content and retrieve it
 for display within OFBiz using the JCR API.  As the various document types
 needed by the OFBiz base applications begin to take shape we could look at
 ways to allow the content to be modified directly from within OFBiz (once
 again using the JCR API).

 Any thoughts, alternatives, ideas or whatever would be appreciated.  I'm
 considering working on a POC in my spare time, not sure how long that might
 take at this stage.  I already have a copy of Hippo running inside OFBiz but
 that was just a matter of expanding their WAR distribution and wrapping it
 in a component, next step would be gaining access to the repo from OFBiz
 code.

 Thanks
 Scott

 HotWax Media
 http://www.hotwaxmedia.com


Re: Comparing ofBiz Hashed Passwords in .NET

2010-07-07 Thread Grant Anderson
Solution found - Yes, the ofBiz version we are using is old and the
password hash hex encoding is indeed the older one with, ah, custom,
hex encoding.

 

As an example for anyone who may in the future encounter this problem,
the password ofbiz looks like this with the old encoding:

 

47ca69ebb4bdc9ae0adec130880165d2cc05db1a

 

And this with standard SHA-1 encoding:

 

47B56994CBC2B6D10AA1BE30F70165ADB305A41A

 

The old code is in the HashCrypt.java file and the old version of the
function is called getDigestHashOldFunnyHexEncode.

 

Thank you Scott!

 

And thank you Adam for answering the question about salting.

 

-  Grant



Re: Hippo CMS

2010-07-07 Thread Michael Xu (xudong)
Integrating here means to put Hippo as a ofbiz component or let it as a
standalone application but integrating over data/service layer?

--
Regards,
Michael Xu (xudong)
www.wizitsoft.com | Office: (8610) 6267 0615 ext 806 | Mobile: (86) 135 0135
9807 | Fax: (8610) 62670096


On Thu, Jul 8, 2010 at 12:27 PM, Brett Palmer brettgpal...@gmail.comwrote:

 Scott,

 I like the idea of integrating with existing CMS applications.  When we are
 talking about hippo what of their various products are we considering here:

 Hippo CMS7
 Hippo Repository 2
 Hippo Site Toolkit 2
  or
 Hippo Portal 2.0

 from www.onehippo.org


 Brett

 On Fri, Jun 18, 2010 at 7:57 PM, Scott Gray scott.g...@hotwaxmedia.com
 wrote:

  Anybody using or considered using Hippo CMS (onehippo.org) in
 conjunction
  with OFBiz?
  - Apache Licensed
  - Uses Jackrabbit as its repository
  - Supports Versioning, Internationalization, Publishing Workflows and
 more
 
  We could start out by using Hippo's UI to manage content and retrieve it
  for display within OFBiz using the JCR API.  As the various document
 types
  needed by the OFBiz base applications begin to take shape we could look
 at
  ways to allow the content to be modified directly from within OFBiz (once
  again using the JCR API).
 
  Any thoughts, alternatives, ideas or whatever would be appreciated.  I'm
  considering working on a POC in my spare time, not sure how long that
 might
  take at this stage.  I already have a copy of Hippo running inside OFBiz
 but
  that was just a matter of expanding their WAR distribution and wrapping
 it
  in a component, next step would be gaining access to the repo from OFBiz
  code.
 
  Thanks
  Scott
 
  HotWax Media
  http://www.hotwaxmedia.com



Re: Hippo CMS

2010-07-07 Thread Scott Gray
Hi Brett,

I was looking at CMS 7 (which overlays Repository 2).  I didn't really look too 
closely at their other stuff since CMS 7 was really all I was interested in.

Regards
Scott

On 8/07/2010, at 4:27 PM, Brett Palmer wrote:

 Scott,
 
 I like the idea of integrating with existing CMS applications.  When we are
 talking about hippo what of their various products are we considering here:
 
 Hippo CMS7
 Hippo Repository 2
 Hippo Site Toolkit 2
 or
 Hippo Portal 2.0
 
 from www.onehippo.org
 
 
 Brett
 
 On Fri, Jun 18, 2010 at 7:57 PM, Scott Gray scott.g...@hotwaxmedia.comwrote:
 
 Anybody using or considered using Hippo CMS (onehippo.org) in conjunction
 with OFBiz?
 - Apache Licensed
 - Uses Jackrabbit as its repository
 - Supports Versioning, Internationalization, Publishing Workflows and more
 
 We could start out by using Hippo's UI to manage content and retrieve it
 for display within OFBiz using the JCR API.  As the various document types
 needed by the OFBiz base applications begin to take shape we could look at
 ways to allow the content to be modified directly from within OFBiz (once
 again using the JCR API).
 
 Any thoughts, alternatives, ideas or whatever would be appreciated.  I'm
 considering working on a POC in my spare time, not sure how long that might
 take at this stage.  I already have a copy of Hippo running inside OFBiz but
 that was just a matter of expanding their WAR distribution and wrapping it
 in a component, next step would be gaining access to the repo from OFBiz
 code.
 
 Thanks
 Scott
 
 HotWax Media
 http://www.hotwaxmedia.com



smime.p7s
Description: S/MIME cryptographic signature


Re: Hippo CMS

2010-07-07 Thread Scott Gray
Hi Michael,

The idea was to add hippo as a component and use their webapp as an interim CMS 
while we build out similar functionality in OFBiz.  OFBiz would use the JCR API 
to interact with the underlying repository.

In terms of progress... none.  In my spare time I'll be playing around with a 
jackrabbit integration for OFBiz and reading all the articles I can find.  I 
feel like I need to better understand the JCR and content models in general 
before doing anything concrete.

Regards
Scott

On 8/07/2010, at 5:27 PM, Michael Xu (xudong) wrote:

 Integrating here means to put Hippo as a ofbiz component or let it as a
 standalone application but integrating over data/service layer?
 
 --
 Regards,
 Michael Xu (xudong)
 www.wizitsoft.com | Office: (8610) 6267 0615 ext 806 | Mobile: (86) 135 0135
 9807 | Fax: (8610) 62670096
 
 
 On Thu, Jul 8, 2010 at 12:27 PM, Brett Palmer brettgpal...@gmail.comwrote:
 
 Scott,
 
 I like the idea of integrating with existing CMS applications.  When we are
 talking about hippo what of their various products are we considering here:
 
 Hippo CMS7
 Hippo Repository 2
 Hippo Site Toolkit 2
 or
 Hippo Portal 2.0
 
 from www.onehippo.org
 
 
 Brett
 
 On Fri, Jun 18, 2010 at 7:57 PM, Scott Gray scott.g...@hotwaxmedia.com
 wrote:
 
 Anybody using or considered using Hippo CMS (onehippo.org) in
 conjunction
 with OFBiz?
 - Apache Licensed
 - Uses Jackrabbit as its repository
 - Supports Versioning, Internationalization, Publishing Workflows and
 more
 
 We could start out by using Hippo's UI to manage content and retrieve it
 for display within OFBiz using the JCR API.  As the various document
 types
 needed by the OFBiz base applications begin to take shape we could look
 at
 ways to allow the content to be modified directly from within OFBiz (once
 again using the JCR API).
 
 Any thoughts, alternatives, ideas or whatever would be appreciated.  I'm
 considering working on a POC in my spare time, not sure how long that
 might
 take at this stage.  I already have a copy of Hippo running inside OFBiz
 but
 that was just a matter of expanding their WAR distribution and wrapping
 it
 in a component, next step would be gaining access to the repo from OFBiz
 code.
 
 Thanks
 Scott
 
 HotWax Media
 http://www.hotwaxmedia.com
 



smime.p7s
Description: S/MIME cryptographic signature