[jira] [Created] (OFBIZ-5894) ContentWorker.renderContentAsText render null as string if electornic text is empty.

2014-12-02 Thread Deepak Dixit (JIRA)
Deepak Dixit created OFBIZ-5894:
---

 Summary: ContentWorker.renderContentAsText render null as string 
if electornic text is empty.
 Key: OFBIZ-5894
 URL: https://issues.apache.org/jira/browse/OFBIZ-5894
 Project: OFBiz
  Issue Type: Bug
  Components: content
Reporter: Deepak Dixit
Priority: Minor


If ContentWorker.renderContentAsText used to render content that have 
electronicText with empty textData then it will render null as string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: Operating a single OFBiz with multiple companies.

2014-12-02 Thread Wai
Are we talking about multitenant?
Wai



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Operating-a-single-OFBiz-with-multiple-companies-tp4659173p4659291.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


[jira] [Created] (OFBIZ-5895) Add a partyHelper method to get partyName history, giving a reference date.

2014-12-02 Thread Gil Portenseigne (JIRA)
Gil Portenseigne created OFBIZ-5895:
---

 Summary: Add a partyHelper method to get partyName history, giving 
a reference date.
 Key: OFBIZ-5895
 URL: https://issues.apache.org/jira/browse/OFBIZ-5895
 Project: OFBiz
  Issue Type: New Feature
  Components: party
Affects Versions: Trunk
Reporter: Gil Portenseigne
Priority: Minor


Keeping the track of name change is good, but i haven't found a way to easily 
show the name of a party in the past.

This new method might be used to display a party name, which has change in 
time, giving a date of reference, for instance :

field name=partyNamedisplay description= ${groovy: return 
org.ofbiz.party.party.PartyHelper.getPartyNameHistory(delegator, partyId, 
false, actualStartDate);}//field

Will display the name of partyId in actualStartDate time





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (OFBIZ-5895) Add a partyHelper method to get partyName history, giving a reference date.

2014-12-02 Thread Gil Portenseigne (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-5895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gil Portenseigne updated OFBIZ-5895:

Attachment: JIRA-5895.patch

Here is the method I propose

 Add a partyHelper method to get partyName history, giving a reference date.
 ---

 Key: OFBIZ-5895
 URL: https://issues.apache.org/jira/browse/OFBIZ-5895
 Project: OFBiz
  Issue Type: New Feature
  Components: party
Affects Versions: Trunk
Reporter: Gil Portenseigne
Priority: Minor
 Attachments: JIRA-5895.patch


 Keeping the track of name change is good, but i haven't found a way to easily 
 show the name of a party in the past.
 This new method might be used to display a party name, which has change in 
 time, giving a date of reference, for instance :
 field name=partyNamedisplay description= ${groovy: return 
 org.ofbiz.party.party.PartyHelper.getPartyNameHistory(delegator, partyId, 
 false, actualStartDate);}//field
 Will display the name of partyId in actualStartDate time



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: Operating a single OFBiz with multiple companies.

2014-12-02 Thread Rong NGUYEN KHAC
Hi Wai,

Multitenant and multiorg are different.


*RONG NGUYEN (Mr)*

*OLBIUS FOUNDER**Email:* rong.nguyenk...@olbius.com | *Mobile:* (+84) 902
2468 45

*OLBIUS., JSC*
*Tel:* (+84) 9 88 99 
*Address: *Room 2508, M3-M4 building, No 91, Nguyen Chi Thanh St., Ha Noi
City, VietNam
*Website:* http://olbius.com

On Wed, Dec 3, 2014 at 1:35 AM, Wai bzb.of...@gmail.com wrote:

 Are we talking about multitenant?
 Wai



 --
 View this message in context:
 http://ofbiz.135035.n4.nabble.com/Operating-a-single-OFBiz-with-multiple-companies-tp4659173p4659291.html
 Sent from the OFBiz - Dev mailing list archive at Nabble.com.



[jira] [Commented] (OFBIZ-5895) Add a partyHelper method to get partyName history, giving a reference date.

2014-12-02 Thread Scott Gray (JIRA)

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

Scott Gray commented on OFBIZ-5895:
---

Hi Gil,

We already have the service getPartyNameForDate which might do what you need
http://demo-trunk-ofbiz.apache.org/webtools/control/ServiceList?sel_service_name=getPartyNameForDate


 Add a partyHelper method to get partyName history, giving a reference date.
 ---

 Key: OFBIZ-5895
 URL: https://issues.apache.org/jira/browse/OFBIZ-5895
 Project: OFBiz
  Issue Type: New Feature
  Components: party
Affects Versions: Trunk
Reporter: Gil Portenseigne
Priority: Minor
 Attachments: JIRA-5895.patch


 Keeping the track of name change is good, but i haven't found a way to easily 
 show the name of a party in the past.
 This new method might be used to display a party name, which has change in 
 time, giving a date of reference, for instance :
 field name=partyNamedisplay description= ${groovy: return 
 org.ofbiz.party.party.PartyHelper.getPartyNameHistory(delegator, partyId, 
 false, actualStartDate);}//field
 Will display the name of partyId in actualStartDate time



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (OFBIZ-5894) ContentWorker.renderContentAsText render null as string if electornic text is empty.

2014-12-02 Thread Deepak Dixit (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-5894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepak Dixit updated OFBIZ-5894:

Attachment: Screen Shot 2014-12-03 at 11.16.15 AM.png

 ContentWorker.renderContentAsText render null as string if electornic text 
 is empty.
 --

 Key: OFBIZ-5894
 URL: https://issues.apache.org/jira/browse/OFBIZ-5894
 Project: OFBiz
  Issue Type: Bug
  Components: content
Reporter: Deepak Dixit
Priority: Minor
 Attachments: Screen Shot 2014-12-03 at 11.16.15 AM.png


 If ContentWorker.renderContentAsText used to render content that have 
 electronicText with empty textData then it will render null as string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (OFBIZ-5896) ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod method does not include the contentId in condition list

2014-12-02 Thread Deepak Dixit (JIRA)
Deepak Dixit created OFBIZ-5896:
---

 Summary: 
ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod method does 
not include the  contentId in condition list
 Key: OFBIZ-5896
 URL: https://issues.apache.org/jira/browse/OFBIZ-5896
 Project: OFBiz
  Issue Type: Bug
Reporter: Deepak Dixit


ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod does not 
includes the passed contentId in condition list, and also its not using the 
ContentAssocDataResourceViewFrom/To view entity to get the result. Instead it 
using the ContentAssoc entity and return incorrect result.

We need to revert the r1635232, after fixing the above method we dont need to 
change the content assoc type from SUB_CONTENT to PUBLISH_LINK and also after 
reverting r1635232 cmssite will be working fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (OFBIZ-5897) ContentServicesComplex.getAssocAndContentAndDataResourceMethod and its Cache method is not consitent.

2014-12-02 Thread Deepak Dixit (JIRA)
Deepak Dixit created OFBIZ-5897:
---

 Summary: 
ContentServicesComplex.getAssocAndContentAndDataResourceMethod and its Cache 
method is not consitent.
 Key: OFBIZ-5897
 URL: https://issues.apache.org/jira/browse/OFBIZ-5897
 Project: OFBiz
  Issue Type: Improvement
  Components: content
Affects Versions: Trunk, Release Branch 13.07
Reporter: Deepak Dixit


ContentServicesComplex has two method  getAssocAndContentAndDataResourceMethod 
and getAssocAndContentAndDataResourceCacheMethod, these method are not 
consistent. Ideally both method should have to use same mechanism to fetch the 
data, only difference should be Cache method should have to use cache=true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (OFBIZ-5896) ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod method does not include the contentId in condition list

2014-12-02 Thread Deepak Dixit (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-5896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepak Dixit updated OFBIZ-5896:

Affects Version/s: Release Branch 13.07
   Trunk

 ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod method 
 does not include the  contentId in condition list
 

 Key: OFBIZ-5896
 URL: https://issues.apache.org/jira/browse/OFBIZ-5896
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: Release Branch 13.07, Trunk
Reporter: Deepak Dixit

 ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod does not 
 includes the passed contentId in condition list, and also its not using the 
 ContentAssocDataResourceViewFrom/To view entity to get the result. Instead it 
 using the ContentAssoc entity and return incorrect result.
 We need to revert the r1635232, after fixing the above method we dont need to 
 change the content assoc type from SUB_CONTENT to PUBLISH_LINK and also after 
 reverting r1635232 cmssite will be working fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (OFBIZ-5896) ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod method does not include the contentId in condition list

2014-12-02 Thread Deepak Dixit (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-5896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepak Dixit updated OFBIZ-5896:

Component/s: content

 ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod method 
 does not include the  contentId in condition list
 

 Key: OFBIZ-5896
 URL: https://issues.apache.org/jira/browse/OFBIZ-5896
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: Release Branch 13.07, Trunk
Reporter: Deepak Dixit

 ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod does not 
 includes the passed contentId in condition list, and also its not using the 
 ContentAssocDataResourceViewFrom/To view entity to get the result. Instead it 
 using the ContentAssoc entity and return incorrect result.
 We need to revert the r1635232, after fixing the above method we dont need to 
 change the content assoc type from SUB_CONTENT to PUBLISH_LINK and also after 
 reverting r1635232 cmssite will be working fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (OFBIZ-5894) ContentWorker.renderContentAsText render null as string if electornic text is empty.

2014-12-02 Thread Deepak Dixit (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-5894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepak Dixit updated OFBIZ-5894:

Attachment: OFBIZ-5894.patch

Here is the patch for this issue.

Added check on DataResourceWorker.writeText method if textData value is null 
then don't append it to writer else it will render null as string. As we did 
not add anything on write then getDataResourceText (DataResourceWorker.java 
675) method return empty string and it call the FreeMarkerWorker.renderTemplate 
method with empty templateString.

Also added check on FreeMarkerWorker.renderTemplate, and used the null check 
instead of UtilValidate.isEmpty method, as isEmpty method return true for empty 
string and then it try to render template by location instead 
renderTemplateFromString and throw exception. Ideally it should render the 
empty string using renderTemplateFromString method.

 ContentWorker.renderContentAsText render null as string if electornic text 
 is empty.
 --

 Key: OFBIZ-5894
 URL: https://issues.apache.org/jira/browse/OFBIZ-5894
 Project: OFBiz
  Issue Type: Bug
  Components: content
Reporter: Deepak Dixit
Priority: Minor
 Attachments: OFBIZ-5894.patch, Screen Shot 2014-12-03 at 11.16.15 
 AM.png


 If ContentWorker.renderContentAsText used to render content that have 
 electronicText with empty textData then it will render null as string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (OFBIZ-5896) ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod method does not include the contentId in condition list

2014-12-02 Thread Deepak Dixit (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-5896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepak Dixit updated OFBIZ-5896:

Attachment: OFBIZ-5896.patch

Here is the patch for this issue. 

 ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod method 
 does not include the  contentId in condition list
 

 Key: OFBIZ-5896
 URL: https://issues.apache.org/jira/browse/OFBIZ-5896
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: Release Branch 13.07, Trunk
Reporter: Deepak Dixit
 Attachments: OFBIZ-5896.patch


 ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod does not 
 includes the passed contentId in condition list, and also its not using the 
 ContentAssocDataResourceViewFrom/To view entity to get the result. Instead it 
 using the ContentAssoc entity and return incorrect result.
 We need to revert the r1635232, after fixing the above method we dont need to 
 change the content assoc type from SUB_CONTENT to PUBLISH_LINK and also after 
 reverting r1635232 cmssite will be working fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (OFBIZ-5894) ContentWorker.renderContentAsText render null as string if electornic text is empty.

2014-12-02 Thread Jacopo Cappellato (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-5894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacopo Cappellato reassigned OFBIZ-5894:


Assignee: Jacopo Cappellato

 ContentWorker.renderContentAsText render null as string if electornic text 
 is empty.
 --

 Key: OFBIZ-5894
 URL: https://issues.apache.org/jira/browse/OFBIZ-5894
 Project: OFBiz
  Issue Type: Bug
  Components: content
Reporter: Deepak Dixit
Assignee: Jacopo Cappellato
Priority: Minor
 Attachments: OFBIZ-5894.patch, Screen Shot 2014-12-03 at 11.16.15 
 AM.png


 If ContentWorker.renderContentAsText used to render content that have 
 electronicText with empty textData then it will render null as string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (OFBIZ-5896) ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod method does not include the contentId in condition list

2014-12-02 Thread Jacopo Cappellato (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-5896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacopo Cappellato reassigned OFBIZ-5896:


Assignee: Jacopo Cappellato

 ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod method 
 does not include the  contentId in condition list
 

 Key: OFBIZ-5896
 URL: https://issues.apache.org/jira/browse/OFBIZ-5896
 Project: OFBiz
  Issue Type: Bug
  Components: content
Affects Versions: Release Branch 13.07, Trunk
Reporter: Deepak Dixit
Assignee: Jacopo Cappellato
 Attachments: OFBIZ-5896.patch


 ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod does not 
 includes the passed contentId in condition list, and also its not using the 
 ContentAssocDataResourceViewFrom/To view entity to get the result. Instead it 
 using the ContentAssoc entity and return incorrect result.
 We need to revert the r1635232, after fixing the above method we dont need to 
 change the content assoc type from SUB_CONTENT to PUBLISH_LINK and also after 
 reverting r1635232 cmssite will be working fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (OFBIZ-5897) ContentServicesComplex.getAssocAndContentAndDataResourceMethod and its Cache method is not consitent.

2014-12-02 Thread Jacopo Cappellato (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-5897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacopo Cappellato reassigned OFBIZ-5897:


Assignee: Jacopo Cappellato

 ContentServicesComplex.getAssocAndContentAndDataResourceMethod and its Cache 
 method is not consitent.
 -

 Key: OFBIZ-5897
 URL: https://issues.apache.org/jira/browse/OFBIZ-5897
 Project: OFBiz
  Issue Type: Improvement
  Components: content
Affects Versions: Release Branch 13.07, Trunk
Reporter: Deepak Dixit
Assignee: Jacopo Cappellato

 ContentServicesComplex has two method  
 getAssocAndContentAndDataResourceMethod and 
 getAssocAndContentAndDataResourceCacheMethod, these method are not 
 consistent. Ideally both method should have to use same mechanism to fetch 
 the data, only difference should be Cache method should have to use 
 cache=true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)