Commit Graph
214 Commits
Author SHA1 Message Date
Adrian Crum 8e153fd7ce A bug fix for the new commonGetAllCrudPermissions service - don't require the user to be logged in.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054517 13f79535-47bb-0310-9956-ffa450edef68
2011-01-03 01:56:32 +00:00
Adrian Crum 0dbdf4a204 Create a new permission checking service to make permission handling easier. The new service returns Boolean values for all CRUD + View permissions - avoiding the need to do multiple permission service calls.
The main purpose of the service is to control multiple screen elements with a single service call. This reduces screen widget and template code. Example:

<screen name="GetMyAppPermissions">
  <!-- This screen must be included before any decorators -->
  <section>
    <actions>
      <service service-name="commonGetAllCrudPermissions" result-map="result">
        <field-map field-name="primaryPermission" value="MYAPP"/>
        <field-map field-name="altPermission" value="MYAPP_ALT"/>
      </service>
      <set field="hasCreatePermission" from-field="result.hasCreatePermission" type="Boolean" global="true"/>
      <set field="hasUpdatePermission" from-field="result.hasUpdatePermission" type="Boolean" global="true"/>
      <set field="hasDeletePermission" from-field="result.hasDeletePermission" type="Boolean" global="true"/>
      <set field="hasViewPermission" from-field="result.hasViewPermission" type="Boolean" global="true"/>
    </actions>
    <widgets/>
  </section>
</screen>

<screen name="MainScreen">
  <section>
    <actions>
      <set field="titleProperty" value="MyAppMainScreen"/>
    </actions>
    <widgets>
      <include-screen name="GetMyAppPermissions"/>
      <!-- screen elements controlled by has*Permission field values -->
      ...
    </widgets>
  </section>
</screen>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054161 13f79535-47bb-0310-9956-ffa450edef68
2010-12-31 19:11:59 +00:00
Adrian Crum 38dea67fbc All find services return a list size.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053771 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 23:32:26 +00:00
Adrian Crum 0dbf101802 Moved the security-related CRUD services to the common component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052389 13f79535-47bb-0310-9956-ffa450edef68
2010-12-23 21:58:04 +00:00
Andrew Zeneski 1a48bad49c socketFactory and port parameters were missing from the service definition even though they were being checked in the implementations; this addresses this oversight so that all settings can override general.properties when necessary by sending them directly to the service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1028747 13f79535-47bb-0310-9956-ffa450edef68
2010-10-29 13:57:18 +00:00
Bruno Busco fa6f935650 Removed service "updatePortalPagePortletSeq". This is not used any more.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1023341 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16 18:08:17 +00:00
Hans Bakker ab77f16cba allow < and > in noteinfo field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1003365 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01 02:57:13 +00:00
Jacques Le Roux bfccb22656 Introduces a new checkUomConversion service which returns a boolean if UomConversion exists.
It may be used by a checkUomConversion javascript which uses the getServiceResult. I put it in the getDependentDropdownValues.js file for the moment. But anyway at term I will refactor all these Ajax related scripts (like in selectall.js) in a specific file.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1002353 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 20:58:21 +00:00
David E. Jones 9b940f0056 Changed sendMailFromScreen service to support a list of attachments instead of just one
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1000753 13f79535-47bb-0310-9956-ffa450edef68
2010-09-24 07:47:05 +00:00
Jacques Le Roux d409250b6a Fixes the linkGeos service. It was able not remove, it was only creating.
Introduce a new getRelatedGeos service which will be used soon in the Webtools/Geo mnagement. It comes from the jQuery branch and I have still not rewritten the jQuery to Prototype part. This should make smoother next merge from trunk in jQuery branch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1000434 13f79535-47bb-0310-9956-ffa450edef68
2010-09-23 12:47:14 +00:00
David E. Jones 4ecf9a8959 Added deleteEnumeration service, changed to allow safe HTML in enum description field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@997451 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 18:49:51 +00:00
Jacques Le Roux a5324b94c3 OK, my explanation at r996840 did not make sense. If I want GeoName and geoTypeId to create then I need them when updating as well. At least it's what I think....
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996853 13f79535-47bb-0310-9956-ffa450edef68
2010-09-14 11:50:55 +00:00
Jacques Le Roux 4f8186bc3f Oops, checking http://svn.apache.org/viewvc?rev=996789&view=rev I see that I confused geoId and geoTypeId. When creating a Geo we want geoTypeId to be mandatory (IMO to create a Geo we need at least GeoId, GeoName and geoTypeId). On the other hand update needs anything (it's already there)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996840 13f79535-47bb-0310-9956-ffa450edef68
2010-09-14 11:10:03 +00:00
Jacques Le Roux e8d5e8843e No functional changes, simply remove redundant useless information
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996789 13f79535-47bb-0310-9956-ffa450edef68
2010-09-14 08:31:09 +00:00
Jacques Le Roux 68ef437347 New simple Geo Management in Webtools. It still misses a Geo Assoc Find Screen.
For the moment in trunk the Link Geos screen use a standard multiple dropdown. It's not easy to use (see why at http://www.ryancramer.com/journal/entries/select_multiple). In the jQuery branch I have used the asmselect plugin, much easier for end users. Actually I'm not totally satisfied by it either. It's a beta and seems to be freezed. Also the way the field is shown is not flexible enough. It's a fixed size area and I tried to work around. I could be done better though. I will have a look. Sascha thought we could use jQuery.ui.sortable but I don't think it exactly corresponds to the feature needed.

I have also changed some labels names and removed/grouped some requests (only in common now)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996658 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13 19:35:40 +00:00
Jacques Le Roux 3e925d6a06 Moves getCountryList and getAssociatedStateList from Party component to Framework to avoid dependencies on Party component (countries and states are not parties, but Geo, ie should be in the framework)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@986325 13f79535-47bb-0310-9956-ffa450edef68
2010-08-17 14:31:25 +00:00
Jacques Le Roux 0f7d2f9462 New updateNote service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956129 13f79535-47bb-0310-9956-ffa450edef68
2010-06-18 21:08:24 +00:00
Hans Bakker b58eececc7 when emails are sent out related to a custrequest, create also the link between email and custrequest (same pattern as for order)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@955133 13f79535-47bb-0310-9956-ffa450edef68
2010-06-16 05:48:00 +00:00
David E. Jones 0c3b76171d Added removeUserPreference service, needed because you can't pass an empty value to the set service to clear out preferences, also this actually removes the record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948697 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 07:18:59 +00:00
Ashish Vijaywargiya 8f83bfeda0 The screen was broken for CommunicationEventOrder.
The order was not associating with communication event when the new communication event was generating in system for different mail notifications(like OrderConfirmation, OrderComplete, ShipmentComplete etc.)
Now after this commit it will work without any issues.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927758 13f79535-47bb-0310-9956-ffa450edef68
2010-03-26 10:25:08 +00:00
Jacopo Cappellato 3a34d4cee5 Sorry, I have forgotten to commit this as part of revision: 927327
"Fixed wrong field type in service definition that was causing the loadDateDimension service to fail.
Thanks to Sam Hamilton for the bug report OFBIZ-3574"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927329 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 10:24:21 +00:00
Adam Heath f1c942842f Remove hard-coded BIZZNESS_TIME theme settings, so the default in
general.properties gets used.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915651 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 03:32:26 +00:00
Bilgin Ismet Ibryam bb180a0999 Revert cascadeDelete service after Adam and Adrian's feedback.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910256 13f79535-47bb-0310-9956-ffa450edef68
2010-02-15 16:41:35 +00:00
Bilgin Ismet Ibryam 25b998b069 Added a generic cascadeDelete service which can be used for data deletion. It uses recursion to delete all the related data entries.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910235 13f79535-47bb-0310-9956-ffa450edef68
2010-02-15 15:14:32 +00:00
Adrian Crum 2af56291a0 Temporal Expression bug fixes.
Internationalization note: this commit contains new UI labels.

Deprecated the time of day expression - it was a bad design. Replaced it with separate hour and minute expressions.

Fixed the createTemporalExpression service. It wouldn't allow user-specified expression IDs.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900024 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 20:59:37 +00:00
Scott Gray f1d8327678 Emails will now be sent to any valid recipients even if the SMTP server rejected any invalid ones. This can be turned off if desired in general.properties and also on a per service call basis.
A failure notification will be sent to the email's "from" address, listing the failed recipients and the reason for each failure. The notification can be turned off by setting the sendFailureNotification parameter to false in the s

These changes fix a problem where emails are not sent to valid recipients and users receive no feedback when emails fail to be sent, generally because of the smtp server rejecting one or more recipients.

OFBIZ-3379, thanks to Pranay Pandey for the report and testing, also thanks to Tim Ruppert and Ruth Hoffman for their input into the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896213 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 20:48:15 +00:00
Hans Bakker a6f58e1d8c make the soap tests independent of the application component, contribution by chatree, suggestion by Scott
detail:
1. change from ProductCategory and Product entity to Testing and TestingNode entity in testSOAP service
2. insert login.username and login.password attribute document in message part of WSDL
3. change type of eepk- and eeval- element to map-Map and insert its document in WSDL
4. insert document for cus-obj element in WSDL

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893087 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:47:20 +00:00
Hans Bakker ea3a88e1a6 Upgrade Axis1 to Axis2. Ofbiz now supports complex parameters in webservices including WSDL generation. see OFBIZ-3363 for more info. A contribution of Antwebsystems employee Chatree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892712 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 07:31:58 +00:00
Vikas Mayur 6a135c5dbf Added CRUD services for GeoPoint and FixedAssetGeoPoint entity. Additional changes are done to avoid possible NPE.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891248 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 14:27:50 +00:00
Bruno Busco 220705d2da A slightly modified patch from Sascha Rodekamp "Drag 'n' Drop for myPortal + update prototype and script.aculo.us"
(https://issues.apache.org/jira/browse/OFBIZ-3190) - OFBIZ-3190

- I changed some tabs to spaces
- It seems to me that everything works with the script.aculo.us version that is already present in the framework; so I did not commit the script.aculo.us update since could break some other thing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881999 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 23:31:59 +00:00
Scott Gray c0cfbd2469 Allow the duration of the blocking service test to be specified by the caller
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835546 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 21:11:04 +00:00
Hans Bakker 0b7fe13bb1 On request of adrian, put the VISUAL_THEME default record back in the database, however added the function that values in general properties can override this value. Combined the implementation with the definition of the defaultOrganizationPartyId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820178 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 05:16:17 +00:00
Scott Gray 4f373bdf8e Changes to the performFind and performFindList services to limit the size of the resultset where possible.
Changes to ModelForm to allow using form supplied pagination information as service parameters in the action tag, plus changes to how the list size is retrieved

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808814 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 08:40:58 +00:00
Hans Bakker ae3fa014f3 another allow safe html
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791207 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 07:38:19 +00:00
Hans Bakker 66d08c768e only allow 'safe' in in/outgoing email
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789506 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 00:32:24 +00:00
Hans Bakker 9d1004714b Now allows for employees to add a note to the customer request, the customer gets notified by email with an url. If he logs in he can also add a note as a reply to the note of the employee, the employee will be notified with a system info message when the customer added the note
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788950 13f79535-47bb-0310-9956-ffa450edef68
2009-06-27 10:54:31 +00:00
Hans Bakker f97b2fe488 create commevent from email did not render the subject causing display giving an error, removed a not required seca
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788589 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 05:48:26 +00:00
Hans Bakker 6a1fd9d1b5 added a portlet edit form to configure which system notes should be sent
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788048 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 15:07:27 +00:00
Jacopo Cappellato 397294cf92 Added support for purpose type for currency rates when entering gl transactions in foreign currencies. Thank you to Sumit Pandit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@786438 13f79535-47bb-0310-9956-ffa450edef68
2009-06-19 10:15:01 +00:00
Hans Bakker ac71e4df92 another html allow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@779020 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 06:18:23 +00:00
Hans Bakker 24de57b47d if mail is disabled in message.properties, message wrapper is not in result: made oprional in definition
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774653 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 06:31:40 +00:00
Andrew Zeneski d294d588cf minor changes to make sure the sendMail service is called through the service engine instead of as a method call; sendMail now returns a MimeMessageWrapper object with all the mail information to be used by communication event processing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774196 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 04:58:24 +00:00
Hans Bakker 4c0c034121 some more faultfixing on customer request notifications: mainly the partyIdTo was not provided
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769274 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 07:49:12 +00:00
Andrew Zeneski 5375cb0ac7 dded touch points to userLogin & changePassword services to call AuthHelper for external authentication module support. Part of the new Authentication API. This commit also includes the service changes for the new 'externalAuthId' field on UserLogin.
Part 1: define the API for external authentication modules (done rev 767281)
Part 2: update LoginServices to call AuthHelper for external modules (done)
Part 3: create example Authenticator (in progress)
Part 4: update LDAP implementation to use new API (not started)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@767300 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 21:20:16 +00:00
Adrian Crum 9a753b9865 Fixed a problem where service definitions were using "GenericValue" as attribute types, but that threw exceptions because the service definitions needed the full class name - "org.ofbiz.entity.GenericValue". The problem was reported in https://issues.apache.org/jira/browse/OFBIZ-2268 and https://issues.apache.org/jira/browse/OFBIZ-2311.
I checked the commit logs and I don't see what changed to cause these services to stop working, so I took the shotgun approach and changed all occurrences of GenericValue service attributes.

If anyone has a better solution, please feel free to revert this commit and change it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765864 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 06:33:43 +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
Hans Bakker c1491066f0 moved custrequest notification from myportal to order,moved other programs around, reorganized customer request status handling, replaced cust request roles from ftl to form, removed other used programs from myportal. Now only the party registration is left in myportal.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763135 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 07:58:00 +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
David E. Jones 4a1705a315 Removed some more references to applications stuff from framework, including small cleanup of service engine to get rid of WebAppDispatcher and use new factory method in GenericDispatcher, and changed AvailableServices.groovy to get the real dispatcher list instead of a hard-coded one; also updated eclipse classpath file for new webslinger stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757671 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 06:27:03 +00:00
David E. Jones 3eee2073cc Moved some party dependent services out of the framework
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757644 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 03:44:59 +00:00