diff --git a/framework/common/documents/FrameworkCommon.xml b/framework/common/documents/FrameworkCommon.xml deleted file mode 100644 index ce0d252de7a..00000000000 --- a/framework/common/documents/FrameworkCommon.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - The Framework Common Component. - - The framework Common component contains all functions which do not justify a separate framework component. - - - diff --git a/framework/common/documents/SendingEmail.xml b/framework/common/documents/SendingEmail.xml deleted file mode 100644 index f36915671e3..00000000000 --- a/framework/common/documents/SendingEmail.xml +++ /dev/null @@ -1,45 +0,0 @@ - - -
- Sending Email in OFBiz - - Various parts in the OFBiz application are sending out email for various reasons. Sending out email is controlled in the - ${ofbiz install dir}/framework/common/config/general.properties file with the following parameters: - - - SMTP Server (relay host): mail.smtp.relay.host - - - SMTP Username (if needed): mail.smtp.auth.user - - - SMTP Password (if needed): mail.smtp.auth.password - - - Turn on email notifications by setting the mail.notifications.enabled property to "Y". - - - -
- diff --git a/framework/documents/DataFiles.xml b/framework/documents/DataFiles.xml deleted file mode 100644 index 8b90139d1e5..00000000000 --- a/framework/documents/DataFiles.xml +++ /dev/null @@ -1,239 +0,0 @@ - - - - The OFBiz Datafiles -
-
- Intoduction - There is a data import tool in OFBiz called the DataFile tool. It uses XML files that describe flat file formats (including character delimited, fixed width, etc) and parses the flat files based on those definitions. So, by design it is somewhat like the Entity Engine. It uses a generic object to represent a row in the flat file. It includes features like a line type code for each line and can support hierarchical flat files (ie where parent/child relationships are implied by sub-records). - - The code is in the ofbiz/framework/datafile directory, and there is an XSD there to describe how the data file definition XML file should look. - - The DataFile has a web page in WebTools to parse data files and generate entity xml files (that can be imported in OFBiz) from them, and to do in/outtesting. - - both the import of fixed width flat files and character delimited files are implemented. - -
-
- Definitions - Definition file*: this is an xml file that contains one or more "Data File Definition"s; the grammar of the file is defined in framework/datafile/dtd/datafile.xsd - - Data File Definition*: the definition of a data file structure (e.g. names/types of the fields/columns in a "Data File"; the same "Data File" could have more than one "Data File Definition"s (e.g. the definitions could consider different subsets of all the fields available in the data file). - - Data file*: the text file that contains all the data (a fixed width or a character delimited text file) - -
-
- How to use the "Work With Data Files" screen in the Webtools application - - - How to use the "Work With Data Files" screen in the Webtools application_Prerequisites_: a definition file (containing the fields' definition of the data file) and a data file (containing the data you want to parse/import) should be available in the OFBiz server.Steps: - - - - connect to the Webtools application - - - - go to the "Work With Data Files" screen - - - - - enter the path to the your definition file in the "Definition Filename or URL" input field - - - - - -click on the submit button> - - - - - the "Data File Definition Name" input field will be changed into a drop down box containing all the definitions available in the definition file - - - - - select the definition you want to use from the drop down box> - - - - - enter the path to the your data file in the "Data Filename or URL" input field - - - - -if you want to generate an entity xml file that can be later imported in OFBiz, -enter a path for it in the "Save to entity xml file: - - - - - input field and click on the submit button; the file will be created -(see the paragraph "Tips to create Entity Xml Files" for more details) - - - - - -
-
The field.name attribute must contain the name of the entity field in which the records will be imported - (for example - - ]]> -
-
- Examples -
- - An example of fixed width flat file import.Sample fixed width CSV file posreport.csv to be imported: - - - -
-
- Sample xml definition file for importing select columns - - posschema.xml: - - - - - - - - - - - - - - - - - ]]> - - - The types listed in this sample are simple String's but the usual types are available such as Date, Long etc - -
-
- - Another example reading fixed record little endian binary files - - - - - - - - - - - - - - - ]]> - - - - In the interface enter something like: - - - - Definition Filename or URL: posschema.xml - - - - - Data File Definition Name: posreport - - - - - Data Filename or URL: posreport.csv - - - - -
-
-
- - - Sample xml definition file for importing select columns posschema.xml: - - - - - - - - - - - - - - - - - ]]> - - - In the interface enter something like:* Definition Filename or URL: posschema.xml* Data File Definition Name: posreport* Data Filename or URL: posreport.csvThe types listed in this sample are simple String's but the usual types are available such as Date, Long etc. -
-
- - - Another example reading fixed record little endian binary files - - - - - - - - - - - - - - - ]]> - - -
- -
-
diff --git a/framework/documents/Framework.xml b/framework/documents/Framework.xml deleted file mode 100644 index 31acd2ef9ec..00000000000 --- a/framework/documents/Framework.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - The OFBiz Framework Introduction. - - For a core configuration guide check the OFBiz website. - - diff --git a/framework/documents/SingleSignOn.xml b/framework/documents/SingleSignOn.xml deleted file mode 100644 index 568f53c4f62..00000000000 --- a/framework/documents/SingleSignOn.xml +++ /dev/null @@ -1,282 +0,0 @@ - - - - OFBiz Single Sign On using CAS and LDAP -
- Setup the Java Key Store - - From the directory in which you want to create the keystore, run keytool with the following parameters. - - - - - Generate the server certificate. - - $ keytool -genkey -alias tomcat -keyalg RSA -keypass changeit -storepass changeit -keystore keystore.jks - - When you press Enter, keytool prompts you to enter the server name, organizational unit, organization, locality, state, and country code. Note that you must enter the server name in response to keytool's first prompt, in which it asks for first and last names. For testing purposes, this can be localhost. - - - - - Export the generated server certificate in keystore.jks into the file server.cer. - - $ keytool -export -alias tomcat -storepass changeit -file server.cer -keystore keystore.jks - - - - - - To create the trust-store file cacerts.jks and add the server certificate to the trust-store, run keytool from the directory where you created the keystore and server certificate. Use the following parameters: - - $ keytool -import -v -trustcacerts -alias tomcat -file server.cer -keystore cacerts.jks -keypass changeit -storepass changeit - - - - - - Information on the certificate, such as that shown next, will display. - - $ keytool -import -v -trustcacerts -alias tomcat -file server.cer -keystore cacerts.jks -keypass changeit -storepass changeit - - Owner: CN=localhost, OU=Sun Micro, O=Docs, L=Santa Clara, ST=CA, C=US - Issuer: CN=localhost, OU=Sun Micro, O=Docs, L=Santa Clara, ST=CA, C=US - Serial number: 3e932169 - Valid from: Tue Apr 08 - Certificate fingerprints: - MD5: 52:9F:49:68:ED:78:6F:39:87:F3:98:B3:6A:6B:0F:90 - SHA1: EE:2E:2A:A6:9E:03:9A:3A:1C:17:4A:28:5E:97:20:78:3F: - Trust this certificate? [no]: - - - - - - Enter yes, and then press the Enter or Return key. The following information displays: - - Certificate was added to keystore - [Saving cacerts.jks] - - - - -
-
- CAS Server - - - - - Download CAS server from the CAS web site. - - - - - Deploy cas-server-webapp-[version].war to Tomcat - - - - - Set key store file to Tomcat - - keystoreFile="path/to/keystore.jks" - - - - - - Start Tomcat - - - - -
-
- OFBiz Certificate - - Set trust store's file to Java Virtual Machine (JVM) before start OFBiz. - - -Djavax.net.ssl.trustStore=path/to/cacerts.jks - - -
-
- LDAP Component - - OFBiz uses the LDAP component in the plugins to check the security in a web application. OFBiz disabled LDAP component as default, you can enable this component by take the comment out from plugins/component-load.xml file. - -
- LDAP Properties - - LDAP properties file is plugins/ldap/config/ldap.xml. You can change a filter condition you want. - -
- Attributes - - - - - Attribute : LDAP attbitue for filter e.g. uid=%u - - - - - AuthenType : LDAP authentication method e.g. simple - - - - - AuthenticaionHandler : CAS handler class e.g. org.apache.ofbiz.ldap.cas.OFBizCasAuthenticationHandler - - - - - AutoPartyId : Party's id for user login e.g. admin - - - - - AutoSecurityGroupId : Security group's id for user login e.g. FULLADMIN - - - - - BaseDN : The top level ofbiz LDAP directory tree e.g. dc=example,dc=com - - - - - Filter : LDAP search filter e.g. (objectclass=*) - - - - - Scope : LDAP search scope parameter e.g. sub,one, etc. - - - - - URL : LDAP server's url e.g. ldap://localhost:389 - - - - - UserOFBizLoginWhenLDAPFail : indicate that if LDAP fail then login with normal OFBiz's user or not. (true/false) - - - - -
-
- CAS - - - - - CasLoginUri : URI to CAS login e.g. /login - - - - - CasLogoutUri : URI to CAS logout e.g. /logout - - - - - CasUrl : CAS Server's URL e.g. https://localhost:8443/cas - - - - - CasValidateUri : URI to CAS validate e.g. /validate - - - - - CasLdapHandler : LDAP hanlder class e.g. org.apache.ofbiz.ldap.openldap.OFBizLdapAuthenticationHandler - - - - - CasTGTCookieName : CAS TGT's cookie name e.g. CASTGC - - - - -
-
-
-
- OpenLDAP - - The LDAP component need data from LDAP server (OpenLDAP). The server needs to install, configure and populate OpenLDAP: see at the OpenLDAP web site. - -
-
- Web Application Security Mapping - - Every web application you need to use LDAP (single sign on) feature, you need to change the event's path of some the security request mappings to org.apache.ofbiz.ldap.LdapLoginWorker class. - -
- checkLogin - - - <request-map uri="checkLogin" edit="false"> - <description>Verify a user is logged in.</description> - <security https="true" auth="false"/> - <event type="java" path="org.apache.ofbiz.ldap.LdapLoginWorker" invoke="checkLogin"/> - <response name="success" type="view" value="main"/> - <response name="error" type="view" value="login"/> - </request-map> - - -
-
- login - - - <request-map uri="login"> - <security https="true" auth="false"/> - <event type="java" path="org.apache.ofbiz.ldap.LdapLoginWorker" invoke="login"/> - <response name="success" type="view" value="main"/> - <response name="requirePasswordChange" type="view" value="requirePasswordChange"/> - <response name="error" type="view" value="login"/> - </request-map> - - -
-
- logout - - - <request-map uri="logout"> - <security https="true" auth="true"/> - <event type="java" path="org.apache.ofbiz.ldap.LdapLoginWorker" invoke="logout"/> - <response name="success" type="request-redirect" value="main"/> - <response name="error" type="view" value="main"/> - </request-map> - - -
-
-
\ No newline at end of file diff --git a/framework/documents/UnitTest.xml b/framework/documents/UnitTest.xml deleted file mode 100644 index f8f63049b62..00000000000 --- a/framework/documents/UnitTest.xml +++ /dev/null @@ -1,228 +0,0 @@ - - - - <anchor xml:id="TheOFBizUnitTest"/>The OFBiz Unit Test (Using JUnit) -
- How to define a unit test? - - - - Define test-suite in ofbiz-component.xml like this: - - - <test-suite loader="main" location="testdef/servicetests.xml"/> - - - - - Create test-case in test-suite file. - - - <test-suite suite-name="servicetests" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/test-suite.xsd"> - .... - .... - <test-case case-name="test-case-name"> - ... - </test-case> - .... - .... - </test-suite> - - - -
-
- How to create a test case? - - Define a test-case in an XML test-suite file like this: - - <test-case case-name="test-case-name"> - ... - </test-case> - - The test-case tag contains details of each test type: - -
- 1. Entity XML - - Specific entity xml and its action would like to be tested in entity-xml-url attribute and action attribute respectively like this: - - <test-case case-name="service-dead-lock-retry-assert-data"> - <entity-xml action="assert" entity-xml-url="component://service/testdef/data/ServiceDeadLockRetryAssertData.xml"/> - </test-case> - - -
-
- 2. JUnit - - Specific class's name which will be tested, in a class-name attribute like this: - - <test-case case-name="service-tests"> - <junit-test-suite class-name="org.apache.ofbiz.service.test.ServiceEngineTests"/> - </test-case> - - -
-
- 3. Service - - Specific service's name which will be tested in a service-name attribute like this: - - <test-case case-name="service-lock-wait-timeout-retry-test"> - <service-test service-name="testServiceLockWaitTimeoutRetry"/> - </test-case> - - -
-
- 4. Simple Method - - Specific simple method's location and name which will be tested in a location and a name attribute respectively like this: - - <test-case case-name="auto-accounting-transaction-tests-PoReceipt"> - <simple-method-test location="component://accounting/minilang/test/AutoAcctgTransTests.xml" name="testAcctgTransOnPoReceipts"/> - </test-case> - - -
-
-
- How to run a unit test? - - You can run unit test by run 'ant' with following target: - -
- 1. run-tests - - Run OFBiz default tests. - -
-
- 2. run-test-list - - Run all configured tests, stopping/starting ofbiz between each test. - -
-
- 3. run-single-test - - Run a single test, require two arguments: - - - - 'test.component' is a name of test component. - - - - - 'test.case' is a name of test case. - - - - -
-
- 4. run-single-test-suite - - Run a single test suite, requiring two arguments: - - - - 'test.component' is a name of test component. - - - - - 'test.suiteName' is a name of test suite. - - - - -
-
-
- Possible error messages - - Some error messages in the log are not important and often caused by the test. - -
- 1. Roll back - - Roll back error message occurred when transaction roll back data. This error message will be in between starting and finished test cass line like this: - - [java] 2009-12-22 16:05:28,349 (main) [ TestRunContainer.java:238:INFO ] [JUNIT] : [test case's name] starting... - [java] 2009-12-22 16:05:28,355 (main) [ TransactionUtil.java:336:ERROR] - .... - .... - .... - [java] ---- exception report ---------------------------------------------------------- - [java] [TransactionUtil.rollback] - [java] Exception: java.lang.Exception - [java] Message: Stack Trace - [java] ---- stack trace --------------------------------------------------------------- - [java] java.lang.Exception: Stack Trace - [java] org.apache.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:335) - [java] org.apache.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:317) - [java] org.apache.ofbiz.entity.test.EntityTestSuite.testTransactionUtilRollback(EntityTestSuite.java:437) - [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) - [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) - [java] java.lang.reflect.Method.invoke(Method.java:597) - [java] junit.framework.TestCase.runTest(TestCase.java:154) - [java] junit.framework.TestCase.runBare(TestCase.java:127) - [java] junit.framework.TestResult$1.protect(TestResult.java:106) - [java] junit.framework.TestResult.runProtected(TestResult.java:124) - [java] junit.framework.TestResult.run(TestResult.java:109) - [java] junit.framework.TestCase.run(TestCase.java:118) - [java] junit.framework.TestSuite.runTest(TestSuite.java:208) - [java] junit.framework.TestSuite.run(TestSuite.java:203) - [java] junit.framework.TestSuite.runTest(TestSuite.java:208) - [java] junit.framework.TestSuite.run(TestSuite.java:203) - [java] org.apache.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146) - [java] org.apache.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) - [java] org.apache.ofbiz.base.start.Start.startStartLoaders(Start.java:272) - [java] org.apache.ofbiz.base.start.Start.startServer(Start.java:322) - [java] org.apache.ofbiz.base.start.Start.start(Start.java:326) - [java] org.apache.ofbiz.base.start.Start.main(Start.java:411) - [java] -------------------------------------------------------------------------------- - [java] - .... - .... - .... - [java] 2009-12-22 16:05:28,366 (main) [ TransactionUtil.java:346:INFO ] [TransactionUtil.rollback] transaction rolled back - [java] 2009-12-22 16:05:28,370 (main) [ TestRunContainer.java:234:INFO ] [JUNIT] : [test case's name] finished. - - -
-
-
- Test result - - After you run unit test, you can see the result of the testing. If you use run-tests target, you can see test result web page by view runtime/logs/test-results/html/index.html file in web browser - and see JUnit Test Result files for each test suite in runtime/logs/test-results directory. If you use other target you only see JUnit Test Result file in runtime/logs/test-results. - -
-
diff --git a/framework/entity/documents/EntityEngine.xml b/framework/entity/documents/EntityEngine.xml deleted file mode 100644 index 2f57c1bc0e5..00000000000 --- a/framework/entity/documents/EntityEngine.xml +++ /dev/null @@ -1,48 +0,0 @@ - - -
- The Entity Engine. - -
- Entity Engine guide. - - Entity engine Guide - -
- -
- Entity Engine Configuration Guide. - - entity engine configuration guide - -
- -
- Entity overview. - - Entity overview - - -
- -
diff --git a/framework/minilang/documents/MiniLang.xml b/framework/minilang/documents/MiniLang.xml deleted file mode 100644 index ba4b30916ed..00000000000 --- a/framework/minilang/documents/MiniLang.xml +++ /dev/null @@ -1,28 +0,0 @@ - - -
- The Entity Engine - - A description of the Mini Language guide can be found at the OFBiz documentation site - -
diff --git a/framework/service/documents/ServiceEngine.xml b/framework/service/documents/ServiceEngine.xml deleted file mode 100644 index e56e3fbcaf7..00000000000 --- a/framework/service/documents/ServiceEngine.xml +++ /dev/null @@ -1,28 +0,0 @@ - - -
- The Service Engine - - A description of the service engine can be found at the OFBiz documentation site - -
diff --git a/framework/webtools/data/helpdata/HELP_WEBTOOLS.xml b/framework/webtools/data/helpdata/HELP_WEBTOOLS.xml deleted file mode 100644 index 1ce2368de5a..00000000000 --- a/framework/webtools/data/helpdata/HELP_WEBTOOLS.xml +++ /dev/null @@ -1,22 +0,0 @@ - - -
- The Webtools Introduction. - -
\ No newline at end of file diff --git a/framework/webtools/data/helpdata/HELP_WEBTOOLS_main.xml b/framework/webtools/data/helpdata/HELP_WEBTOOLS_main.xml deleted file mode 100644 index cd7f9aa942c..00000000000 --- a/framework/webtools/data/helpdata/HELP_WEBTOOLS_main.xml +++ /dev/null @@ -1,48 +0,0 @@ - - -
- The Webtools Main page. - - This is the default screen for the Webtools application. Several links are present on this page to access specific tool screens directly. Using the application menu you can select the tool you need. - - - - The Logging section is used to view and configure the OFBiz system logs. - - - The Cache & Debug section is used to monitor the OFBiz cache system status. You can even set or clear some cache content or force Garbage collection with this tool. - - - The Artifact Info section is used to navigate through all OFBiz artifact files. When accessing this section the complete OFBiz code base is scanned and a list of all artifacts is offered to the user to be navigated. - Please note that the initial scan can take a while to be completed. - - - The Entity Engine section is used to interact with the entities defined in the system. You can view the entity structures, search for entity content, navigate though related entities, etc. - - - The Service Engine section is used to interact with the services defined in the system. You can view all services details, monitor the jobs that are running, the active threads. You can even manually run a service or schedule a periodic/delaied job execution. - - - The Import/Export section is used to transfer entity content from the OFBiz system to external systems and viceversa. Various import/export systems and formats are available. - - - The Configuration section is used to set parameters for the OFBiz system. - - -
diff --git a/framework/webtools/documents/Webtools.xml b/framework/webtools/documents/Webtools.xml deleted file mode 100644 index cbdc455ab50..00000000000 --- a/framework/webtools/documents/Webtools.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - The Webtools, framework menus - - The Webtools option is the gateway to all the framework functions. - - - -