Author: ashish
Date: Wed May 14 21:00:01 2008 New Revision: 656502 URL: http://svn.apache.org/viewvc?rev=656502&view=rev Log: Added the properties value for the rest of the files in HR component Modified: ofbiz/trunk/applications/humanres/data/HumanResSecurityData.xml (contents, props changed) ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml (contents, props changed) ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/permission/HumanResPermissionServices.xml (contents, props changed) ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/controller.xml (props changed) ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/web.xml (contents, props changed) Modified: ofbiz/trunk/applications/humanres/data/HumanResSecurityData.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/data/HumanResSecurityData.xml?rev=656502&r1=656501&r2=656502&view=diff ============================================================================== --- ofbiz/trunk/applications/humanres/data/HumanResSecurityData.xml (original) +++ ofbiz/trunk/applications/humanres/data/HumanResSecurityData.xml Wed May 14 21:00:01 2008 @@ -1,33 +1,33 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -<entity-engine-xml> - <SecurityPermission description="View operations in the HumanRes Manager." permissionId="HUMANRES_VIEW"/> - <SecurityPermission description="Create operations in the HumanRes Manager." permissionId="HUMANRES_CREATE"/> - <SecurityPermission description="Update operations in the HumanRes Manager." permissionId="HUMANRES_UPDATE"/> - <SecurityPermission description="Delete operations in the HumanRes Manager." permissionId="HUMANRES_DELETE"/> - <SecurityGroupPermission groupId="FULLADMIN" permissionId="HUMANRES_ADMIN"/> - <SecurityGroupPermission groupId="FLEXADMIN" permissionId="HUMANRES_CREATE"/> - <SecurityGroupPermission groupId="FLEXADMIN" permissionId="HUMANRES_DELETE"/> - <SecurityGroupPermission groupId="FLEXADMIN" permissionId="HUMANRES_UPDATE"/> - <SecurityGroupPermission groupId="FLEXADMIN" permissionId="HUMANRES_VIEW"/> - <SecurityGroupPermission groupId="VIEWADMIN" permissionId="HUMANRES_VIEW"/> - <SecurityGroupPermission groupId="BIZADMIN" permissionId="HUMANRES_ADMIN"/> -</entity-engine-xml> +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<entity-engine-xml> + <SecurityPermission description="View operations in the HumanRes Manager." permissionId="HUMANRES_VIEW"/> + <SecurityPermission description="Create operations in the HumanRes Manager." permissionId="HUMANRES_CREATE"/> + <SecurityPermission description="Update operations in the HumanRes Manager." permissionId="HUMANRES_UPDATE"/> + <SecurityPermission description="Delete operations in the HumanRes Manager." permissionId="HUMANRES_DELETE"/> + <SecurityGroupPermission groupId="FULLADMIN" permissionId="HUMANRES_ADMIN"/> + <SecurityGroupPermission groupId="FLEXADMIN" permissionId="HUMANRES_CREATE"/> + <SecurityGroupPermission groupId="FLEXADMIN" permissionId="HUMANRES_DELETE"/> + <SecurityGroupPermission groupId="FLEXADMIN" permissionId="HUMANRES_UPDATE"/> + <SecurityGroupPermission groupId="FLEXADMIN" permissionId="HUMANRES_VIEW"/> + <SecurityGroupPermission groupId="VIEWADMIN" permissionId="HUMANRES_VIEW"/> + <SecurityGroupPermission groupId="BIZADMIN" permissionId="HUMANRES_ADMIN"/> +</entity-engine-xml> Propchange: ofbiz/trunk/applications/humanres/data/HumanResSecurityData.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/humanres/data/HumanResSecurityData.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/humanres/data/HumanResSecurityData.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml?rev=656502&r1=656501&r2=656502&view=diff ============================================================================== --- ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml (original) +++ ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml Wed May 14 21:00:01 2008 @@ -1,573 +1,573 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> - <!-- Ability Group --> - <simple-method method-name="updatePartyQual" short-description="Update Qualification of a Party"> - <entity-one entity-name="PartyQual" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePartyQual" short-description="Delete Qualification of a Party"> - <entity-one entity-name="PartyQual" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createPartyResume" short-description="Create Resume for Party"> - <make-value entity-name="PartyResume" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="PartyResume" env-name="newEntity.resumeId"/> - <field-to-result field-name="resumeId" result-name="resumeId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updatePartyResume" short-description="Update a Resume of a Party"> - <entity-one entity-name="PartyResume" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePartyResume" short-description="Delete a Resume of a Party"> - <entity-one entity-name="PartyResume" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createPartySkill" short-description="Create Party Skills"> - <make-value entity-name="PartySkill" value-name="newEntity"/> - <set-pk-fields map-name="parameters" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updatePartySkill" short-description="Update Party Skills"> - <entity-one entity-name="PartySkill" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePartySkill" short-description="Delete a Skill of Party"> - <entity-one entity-name="PartySkill" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createPerfReview" short-description="Create a Performance Review"> - <make-value entity-name="PerfReview" value-name="newEntity"/> - <set-pk-fields map-name="parameters" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="PerfReview" env-name="newEntity.perfReviewId"/> - <field-to-result field-name="perfReviewId" result-name="perfReviewId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updatePerfReview" short-description="Update Performance Review"> - <entity-one entity-name="PerfReview" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePerfReview" short-description="Delete Performance Review"> - <entity-one entity-name="PerfReview" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createPerfReviewItem" short-description="Create Performance Review Items"> - <make-value entity-name="PerfReviewItem" value-name="newEntity"/> - <set-pk-fields map-name="parameters" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="PerfReviewItem" env-name="newEntity.perfReviewItemSeqId"/> - <field-to-result field-name="perfReviewItemSeqId" result-name="perfReviewItemSeqId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updatePerfReviewItem" short-description="Update Performance Review Items"> - <entity-one entity-name="PerfReviewItem" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePerfReviewItem" short-description="Delete Performance Review Items"> - <entity-one entity-name="PerfReviewItem" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createPerformanceNote" short-description="Create Performance Note"> - <make-value entity-name="PerformanceNote" value-name="newEntity"/> - <set-pk-fields value-name="newEntity" map-name="parameters"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <if-empty field-name="newEntity.fromDate"> - <now-timestamp-to-env env-name="nowTimeStamp"/> - <set field="newEntity.fromDate" from-field="nowTimeStamp"/> - </if-empty> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updatePerformanceNote" short-description="Update Performance Note"> - <entity-one entity-name="PerformanceNote" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePerformanceNote" short-description="Delete Performance Note"> - <entity-one entity-name="PerformanceNote" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createPersonTraining" short-description="Create Person Training"> - <make-value entity-name="PersonTraining" value-name="newEntity"/> - <set-pk-fields value-name="newEntity" map-name="parameters"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <if-empty field-name="newEntity.fromDate"> - <now-timestamp-to-env env-name="nowTimeStamp"/> - <set field="newEntity.fromDate" from-field="nowTimeStamp"/> - </if-empty> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updatePersonTraining" short-description="Update a Person Training"> - <entity-one entity-name="PersonTraining" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePersonTraining" short-description="Delete a Person Training"> - <entity-one entity-name="PersonTraining" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <!-- Employment Group --> - <simple-method method-name="createEmployment" short-description="Create Employment"> - <make-value entity-name="Employment" value-name="newEntity"/> - <set-pk-fields value-name="newEntity" map-name="parameters"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <if-empty field-name="newEntity.fromDate"> - <now-timestamp-to-env env-name="nowTimeStamp"/> - <set field="newEntity.fromDate" from-field="nowTimeStamp"/> - </if-empty> - <create-value value-name="newEntity"/> - - <set-service-fields service-name="createPayHistory" map-name="newEntity" to-map-name="createPayHistoryMap"/> - <call-service service-name="createPayHistory" in-map-name="createPayHistoryMap"/> - </simple-method> - - <simple-method method-name="updateEmployment" short-description="Update Employment"> - <entity-one entity-name="Employment" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteEmployment" short-description="Delete Employment"> - <entity-one entity-name="Employment" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createEmploymentApp" short-description="Create an Employment Application"> - <make-value entity-name="EmploymentApp" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="EmploymentApp" env-name="newEntity.applicationId"/> - <field-to-result field-name="newEntity.applicationId" result-name="applicationId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updateEmploymentApp" short-description="Update EmploymentApp"> - <entity-one entity-name="EmploymentApp" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteEmploymentApp" short-description="Delete EmploymentApp"> - <entity-one entity-name="EmploymentApp" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createPartyBenefit" short-description="Create Party Benefit"> - <make-value entity-name="PartyBenefit" value-name="newEntity"/> - <set-pk-fields value-name="newEntity" map-name="parameters"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <if-empty field-name="newEntity.fromDate"> - <now-timestamp-to-env env-name="nowTimeStamp"/> - <set field="newEntity.fromDate" from-field="nowTimeStamp"/> - </if-empty> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updatePartyBenefit" short-description="Update Party Benefit"> - <entity-one entity-name="PartyBenefit" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePartyBenefit" short-description="Delete Party Benefit"> - <entity-one entity-name="PartyBenefit" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createPayGrade" short-description="Create a Pay Grade"> - <make-value entity-name="PayGrade" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="PayGrade" env-name="newEntity.payGradeId"/> - <field-to-result field-name="newEntity.payGradeId" result-name="payGradeId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updatePayGrade" short-description="Update Pay Grade"> - <entity-one entity-name="PayGrade" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePayGrade" short-description="Delete Pay Grade"> - <entity-one entity-name="PayGrade" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createPayHistory" short-description="Create Pay History"> - <make-value entity-name="PayHistory" value-name="newEntity"/> - <set-pk-fields value-name="newEntity" map-name="parameters"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <if-empty field-name="newEntity.fromDate"> - <now-timestamp-to-env env-name="nowTimeStamp"/> - <set field="newEntity.fromDate" from-field="nowTimeStamp"/> - </if-empty> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updatePayHistory" short-description="Update Pay History"> - <entity-one entity-name="PayHistory" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePayHistory" short-description="Delete Pay History"> - <entity-one entity-name="PayHistory" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createPayrollPreference" short-description="Create a Payroll Preference"> - <make-value entity-name="PayrollPreference" value-name="newEntity"/> - <set-pk-fields map-name="parameters" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="PayrollPreference" env-name="newEntity.payrollPreferenceSeqId"/> - <field-to-result field-name="payrollPreferenceSeqId" result-name="payrollPreferenceSeqId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updatePayrollPreference" short-description="Update Payroll Preference"> - <entity-one entity-name="PayrollPreference" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deletePayrollPreference" short-description="Delete Payroll Preference"> - <entity-one entity-name="PayrollPreference" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createSalaryStep" short-description="Create a Salary Step"> - <make-value entity-name="SalaryStep" value-name="newEntity"/> - <set-pk-fields map-name="parameters" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="SalaryStep" env-name="newEntity.salaryStepSeqId"/> - <field-to-result field-name="salaryStepSeqId" result-name="salaryStepSeqId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updateSalaryStep" short-description="Update Salary Step"> - <entity-one entity-name="SalaryStep" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteSalaryStep" short-description="Delete Salary Step"> - <entity-one entity-name="SalaryStep" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createTerminationReason" short-description="Create a Termination Reason"> - <make-value entity-name="TerminationReason" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="TerminationReason" env-name="newEntity.terminationReasonId"/> - <field-to-result field-name="newEntity.terminationReasonId" result-name="terminationReasonId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updateTerminationReason" short-description="Update Termination Reason"> - <entity-one entity-name="TerminationReason" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteTerminationReason" short-description="Delete Termination Reason"> - <entity-one entity-name="TerminationReason" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createUnemploymentClaim" short-description="Create a Unemployment Claim"> - <make-value entity-name="UnemploymentClaim" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="UnemploymentClaim" env-name="newEntity.unemploymentClaimId"/> - <field-to-result field-name="newEntity.unemploymentClaimId" result-name="unemploymentClaimId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updateUnemploymentClaim" short-description="Update Unemployment Claim"> - <entity-one entity-name="UnemploymentClaim" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteUnemploymentClaim" short-description="Delete Unemployment Claim"> - <entity-one entity-name="UnemploymentClaim" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <!-- Employee Position Group --> - <simple-method method-name="createEmplPosition" short-description="Create a Employee Position"> - <make-value entity-name="EmplPosition" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="EmplPosition" env-name="newEntity.emplPositionId"/> - <field-to-result field-name="newEntity.emplPositionId" result-name="emplPositionId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updateEmplPosition" short-description="Update Employee Position"> - <entity-one entity-name="EmplPosition" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteEmplPosition" short-description="Delete Employee Position"> - <entity-one entity-name="EmplPosition" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createEmplPositionFulfillment" short-description="Create a Emplyoee Position Fulfillment"> - <make-value entity-name="EmplPositionFulfillment" value-name="newEntity"/> - <set-pk-fields map-name="parameters" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <if-empty field-name="newEntity.fromDate"> - <now-timestamp-to-env env-name="nowTimeStamp"/> - <set field="newEntity.fromDate" from-field="nowTimeStamp"/> - </if-empty> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updateEmplPositionFulfillment" short-description="Update Employee Position Fulfillment"> - <entity-one entity-name="EmplPositionFulfillment" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteEmplPositionFulfillment" short-description="Delete Employee Position Fulfillment"> - <entity-one entity-name="EmplPositionFulfillment" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createEmplPositionReportingStruct" short-description="Create a Employee Position Reporting Structure"> - <make-value entity-name="EmplPositionReportingStruct" value-name="newEntity"/> - <set-pk-fields map-name="parameters" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <if-empty field-name="newEntity.fromDate"> - <now-timestamp-to-env env-name="nowTimeStamp"/> - <set field="newEntity.fromDate" from-field="nowTimeStamp"/> - </if-empty> - <if> - <condition> - <if-compare-field field-name="parameters.emplPositionIdManagedBy" operator="not-equals" to-field-name="parameters.emplPositionIdReportingTo"/> - </condition> - <then> - <create-value value-name="newEntity"/> - </then> - <else> - <add-error> - <fail-property property="HumanResEmplPostitionIdReportingToAndEmplPositionIdManagedByMustBeDiff" resource="HumanResUiLabels"/> - </add-error> - <check-errors/> - </else> - </if> - </simple-method> - - <simple-method method-name="updateEmplPositionReportingStruct" short-description="Update Employee Position Reporting Structure"> - <entity-one entity-name="EmplPositionReportingStruct" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteEmplPositionReportingStruct" short-description="Delete Employee Position Reporting Structure"> - <entity-one entity-name="EmplPositionReportingStruct" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createEmplPositionResponsibility" short-description="Create a Employee Position Responsibility"> - <make-value entity-name="EmplPositionResponsibility" value-name="newEntity"/> - <set-pk-fields map-name="parameters" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <if-empty field-name="newEntity.fromDate"> - <now-timestamp-to-env env-name="nowTimeStamp"/> - <set field="newEntity.fromDate" from-field="nowTimeStamp"/> - </if-empty> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updateEmplPositionResponsibility" short-description="Update Employee Position Responsibility"> - <entity-one entity-name="EmplPositionResponsibility" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteEmplPositionResponsibility" short-description="Delete Employee Position Responsibility"> - <entity-one entity-name="EmplPositionResponsibility" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createValidResponsibility" short-description="Create a Valid Responsibility"> - <make-value entity-name="ValidResponsibility" value-name="newEntity"/> - <set-pk-fields map-name="parameters" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <if-empty field-name="newEntity.fromDate"> - <now-timestamp-to-env env-name="nowTimeStamp"/> - <set field="newEntity.fromDate" from-field="nowTimeStamp"/> - </if-empty> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updateValidResponsibility" short-description="Update Valid Responsibility"> - <entity-one entity-name="ValidResponsibility" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteValidResponsibility" short-description="Delete Valid Responsibility"> - <entity-one entity-name="ValidResponsibility" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - <!-- Skill Types --> - <simple-method method-name="createSkillType" short-description="Create a SkillType"> - <make-value entity-name="SkillType" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <sequenced-id-to-env sequence-name="SkillType" env-name="newEntity.skillTypeId"/> - <field-to-result field-name="newEntity.skillTypeId" result-name="skillTypeId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updateSkillType" short-description="Update SkillType"> - <entity-one entity-name="SkillType" value-name="lookedUpValue"/> - <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteSkillType" short-description="Delete SkillType"> - <entity-one entity-name="SkillType" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="createEmployee" short-description="Create New Employee"> - <if-not-empty field-name="generalAddressLine1" map-name="parameters"> - <call-map-processor xml-resource="org/ofbiz/humanres/humanres/HumanResMapProcs.xml" processor-name="postalAddressGeneral" in-map-name="parameters" out-map-name="partyPostalAddressCtx"/> - </if-not-empty> - <if-not-empty field-name="workContactNumber" map-name="parameters"> - <call-map-processor xml-resource="org/ofbiz/humanres/humanres/HumanResMapProcs.xml" processor-name="workPhoneNumber" in-map-name="parameters" out-map-name="workTelecomCtx"/> - </if-not-empty> - <if-not-empty field-name="mobileContactNumber" map-name="parameters"> - <call-map-processor xml-resource="org/ofbiz/humanres/humanres/HumanResMapProcs.xml" processor-name="mobileNumber" in-map-name="parameters" out-map-name="mobileTelecomCtx"/> - </if-not-empty> - <if-not-empty field-name="otherEmail" map-name="parameters"> - <call-map-processor xml-resource="org/ofbiz/humanres/humanres/HumanResMapProcs.xml" processor-name="otherEmail" in-map-name="parameters" out-map-name="partyEmailCtx"/> - </if-not-empty> - <check-errors/> - - <set field="partyTypeId" value="PERSON"/> - <set field="parameters.roleTypeId" value="EMPLOYEE"/> - <call-simple-method method-name="createPersonRoleAndContactMechs" xml-resource="org/ofbiz/party/party/PartySimpleMethods.xml"/> - <field-to-result field-name="partyId"/> - - <if-not-empty field-name="parameters.partyIdFrom"> - <set field="partyRelationshipCtx.partyId" from-field="partyId"/> - <set field="partyRelationshipCtx.partyIdFrom" from-field="parameters.partyIdFrom"/> - <set field="partyRelationshipCtx.partyIdTo" from-field="partyId"/> - <set field="partyRelationshipCtx.roleTypeIdFrom" value="INTERNAL_ORGANIZATIO"/> - <set field="partyRelationshipCtx.roleTypeIdTo" value="EMPLOYEE"/> - <set field="partyRelationshipCtx.relationshipName" value="EMPLOYMENT"/> - <set field="partyRelationshipCtx.fromDate" from-field="parameters.fromDate"/> - <now-timestamp-to-env env-name="nowTimestamp"/> - <if-empty field-name="partyRelationshipCtx.fromDate"> - <set field="partyRelationshipCtx.fromDate" from-field="nowTimestamp"/> - </if-empty> - <call-service service-name="createPartyRelationship" in-map-name="partyRelationshipCtx"/> - </if-not-empty> - - <if-not-empty field-name="generalAddressLine1" map-name="parameters"> - <set field="partyPostalAddressCtx.partyId" from-field="partyId"/> - <set field="partyPostalAddressCtx.contactMechPurposeTypeId" value="GENERAL_LOCATION"/> - <call-service service-name="createPartyPostalAddress" in-map-name="partyPostalAddressCtx"> - <result-to-field result-name="contactMechId" field-name="contactMechId"/> - </call-service> - </if-not-empty> - - <if-not-empty field-name="workContactNumber" map-name="parameters"> - <set field="workTelecomCtx.partyId" from-field="partyId"/> - <set field="workTelecomCtx.contactMechPurposeTypeId" value="PHONE_WORK"/> - <call-service service-name="createPartyTelecomNumber" in-map-name="workTelecomCtx"> - <result-to-field result-name="contactMechId" field-name="contactMechId"/> - </call-service> - </if-not-empty> - - <if-not-empty field-name="mobileContactNumber" map-name="parameters"> - <set field="mobileTelecomCtx.partyId" from-field="partyId"/> - <set field="mobileTelecomCtx.contactMechPurposeTypeId" value="PHONE_MOBILE"/> - <call-service service-name="createPartyTelecomNumber" in-map-name="mobileTelecomCtx"> - <result-to-field result-name="contactMechId" field-name="contactMechId"/> - </call-service> - </if-not-empty> - - <if-not-empty field-name="otherEmail" map-name="parameters"> - <set field="partyEmailCtx.partyId" from-field="partyId"/> - <set field="partyEmailCtx.contactMechPurposeTypeId" value="OTHER_EMAIL"/> - <call-service service-name="createPartyEmailAddress" in-map-name="partyEmailCtx"> - <result-to-field result-name="contactMechId" field-name="contactMechId"/> - </call-service> - </if-not-empty> - - </simple-method> - - <!-- Responsibility Types --> - <simple-method method-name="createResponsibilityType" short-description="Create a ResponsibilityType"> - <make-value entity-name="ResponsibilityType" value-name="newEntity"/> - <set-pk-fields map-name="parameters" value-name="newEntity"/> - <set-nonpk-fields map-name="parameters" value-name="newEntity"/> - <if-empty field-name="newEntity.responsibilityTypeId"> - <sequenced-id-to-env sequence-name="ResponsibilityType" env-name="newEntity.responsibilityTypeId"/> - </if-empty> - <field-to-result field-name="newEntity.responsibilityTypeId" result-name="responsibilityTypeId"/> - <create-value value-name="newEntity"/> - </simple-method> - - <simple-method method-name="updateResponsibilityType" short-description="Update ResponsibilityType"> - <entity-one entity-name="ResponsibilityType" value-name="lookedUpValue"/> - <set-nonpk-fields map-name="parameters" value-name="lookedUpValue"/> - <store-value value-name="lookedUpValue"/> - </simple-method> - - <simple-method method-name="deleteResponsibilityType" short-description="Delete ResponsibilityType"> - <entity-one entity-name="ResponsibilityType" value-name="lookedUpValue"/> - <remove-value value-name="lookedUpValue"/> - </simple-method> +<?xml version="1.0" encoding="UTF-8" ?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> + <!-- Ability Group --> + <simple-method method-name="updatePartyQual" short-description="Update Qualification of a Party"> + <entity-one entity-name="PartyQual" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePartyQual" short-description="Delete Qualification of a Party"> + <entity-one entity-name="PartyQual" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createPartyResume" short-description="Create Resume for Party"> + <make-value entity-name="PartyResume" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="PartyResume" env-name="newEntity.resumeId"/> + <field-to-result field-name="resumeId" result-name="resumeId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updatePartyResume" short-description="Update a Resume of a Party"> + <entity-one entity-name="PartyResume" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePartyResume" short-description="Delete a Resume of a Party"> + <entity-one entity-name="PartyResume" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createPartySkill" short-description="Create Party Skills"> + <make-value entity-name="PartySkill" value-name="newEntity"/> + <set-pk-fields map-name="parameters" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updatePartySkill" short-description="Update Party Skills"> + <entity-one entity-name="PartySkill" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePartySkill" short-description="Delete a Skill of Party"> + <entity-one entity-name="PartySkill" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createPerfReview" short-description="Create a Performance Review"> + <make-value entity-name="PerfReview" value-name="newEntity"/> + <set-pk-fields map-name="parameters" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="PerfReview" env-name="newEntity.perfReviewId"/> + <field-to-result field-name="perfReviewId" result-name="perfReviewId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updatePerfReview" short-description="Update Performance Review"> + <entity-one entity-name="PerfReview" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePerfReview" short-description="Delete Performance Review"> + <entity-one entity-name="PerfReview" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createPerfReviewItem" short-description="Create Performance Review Items"> + <make-value entity-name="PerfReviewItem" value-name="newEntity"/> + <set-pk-fields map-name="parameters" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="PerfReviewItem" env-name="newEntity.perfReviewItemSeqId"/> + <field-to-result field-name="perfReviewItemSeqId" result-name="perfReviewItemSeqId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updatePerfReviewItem" short-description="Update Performance Review Items"> + <entity-one entity-name="PerfReviewItem" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePerfReviewItem" short-description="Delete Performance Review Items"> + <entity-one entity-name="PerfReviewItem" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createPerformanceNote" short-description="Create Performance Note"> + <make-value entity-name="PerformanceNote" value-name="newEntity"/> + <set-pk-fields value-name="newEntity" map-name="parameters"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <if-empty field-name="newEntity.fromDate"> + <now-timestamp-to-env env-name="nowTimeStamp"/> + <set field="newEntity.fromDate" from-field="nowTimeStamp"/> + </if-empty> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updatePerformanceNote" short-description="Update Performance Note"> + <entity-one entity-name="PerformanceNote" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePerformanceNote" short-description="Delete Performance Note"> + <entity-one entity-name="PerformanceNote" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createPersonTraining" short-description="Create Person Training"> + <make-value entity-name="PersonTraining" value-name="newEntity"/> + <set-pk-fields value-name="newEntity" map-name="parameters"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <if-empty field-name="newEntity.fromDate"> + <now-timestamp-to-env env-name="nowTimeStamp"/> + <set field="newEntity.fromDate" from-field="nowTimeStamp"/> + </if-empty> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updatePersonTraining" short-description="Update a Person Training"> + <entity-one entity-name="PersonTraining" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePersonTraining" short-description="Delete a Person Training"> + <entity-one entity-name="PersonTraining" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <!-- Employment Group --> + <simple-method method-name="createEmployment" short-description="Create Employment"> + <make-value entity-name="Employment" value-name="newEntity"/> + <set-pk-fields value-name="newEntity" map-name="parameters"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <if-empty field-name="newEntity.fromDate"> + <now-timestamp-to-env env-name="nowTimeStamp"/> + <set field="newEntity.fromDate" from-field="nowTimeStamp"/> + </if-empty> + <create-value value-name="newEntity"/> + + <set-service-fields service-name="createPayHistory" map-name="newEntity" to-map-name="createPayHistoryMap"/> + <call-service service-name="createPayHistory" in-map-name="createPayHistoryMap"/> + </simple-method> + + <simple-method method-name="updateEmployment" short-description="Update Employment"> + <entity-one entity-name="Employment" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteEmployment" short-description="Delete Employment"> + <entity-one entity-name="Employment" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createEmploymentApp" short-description="Create an Employment Application"> + <make-value entity-name="EmploymentApp" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="EmploymentApp" env-name="newEntity.applicationId"/> + <field-to-result field-name="newEntity.applicationId" result-name="applicationId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updateEmploymentApp" short-description="Update EmploymentApp"> + <entity-one entity-name="EmploymentApp" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteEmploymentApp" short-description="Delete EmploymentApp"> + <entity-one entity-name="EmploymentApp" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createPartyBenefit" short-description="Create Party Benefit"> + <make-value entity-name="PartyBenefit" value-name="newEntity"/> + <set-pk-fields value-name="newEntity" map-name="parameters"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <if-empty field-name="newEntity.fromDate"> + <now-timestamp-to-env env-name="nowTimeStamp"/> + <set field="newEntity.fromDate" from-field="nowTimeStamp"/> + </if-empty> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updatePartyBenefit" short-description="Update Party Benefit"> + <entity-one entity-name="PartyBenefit" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePartyBenefit" short-description="Delete Party Benefit"> + <entity-one entity-name="PartyBenefit" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createPayGrade" short-description="Create a Pay Grade"> + <make-value entity-name="PayGrade" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="PayGrade" env-name="newEntity.payGradeId"/> + <field-to-result field-name="newEntity.payGradeId" result-name="payGradeId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updatePayGrade" short-description="Update Pay Grade"> + <entity-one entity-name="PayGrade" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePayGrade" short-description="Delete Pay Grade"> + <entity-one entity-name="PayGrade" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createPayHistory" short-description="Create Pay History"> + <make-value entity-name="PayHistory" value-name="newEntity"/> + <set-pk-fields value-name="newEntity" map-name="parameters"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <if-empty field-name="newEntity.fromDate"> + <now-timestamp-to-env env-name="nowTimeStamp"/> + <set field="newEntity.fromDate" from-field="nowTimeStamp"/> + </if-empty> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updatePayHistory" short-description="Update Pay History"> + <entity-one entity-name="PayHistory" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePayHistory" short-description="Delete Pay History"> + <entity-one entity-name="PayHistory" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createPayrollPreference" short-description="Create a Payroll Preference"> + <make-value entity-name="PayrollPreference" value-name="newEntity"/> + <set-pk-fields map-name="parameters" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="PayrollPreference" env-name="newEntity.payrollPreferenceSeqId"/> + <field-to-result field-name="payrollPreferenceSeqId" result-name="payrollPreferenceSeqId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updatePayrollPreference" short-description="Update Payroll Preference"> + <entity-one entity-name="PayrollPreference" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deletePayrollPreference" short-description="Delete Payroll Preference"> + <entity-one entity-name="PayrollPreference" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createSalaryStep" short-description="Create a Salary Step"> + <make-value entity-name="SalaryStep" value-name="newEntity"/> + <set-pk-fields map-name="parameters" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="SalaryStep" env-name="newEntity.salaryStepSeqId"/> + <field-to-result field-name="salaryStepSeqId" result-name="salaryStepSeqId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updateSalaryStep" short-description="Update Salary Step"> + <entity-one entity-name="SalaryStep" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteSalaryStep" short-description="Delete Salary Step"> + <entity-one entity-name="SalaryStep" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createTerminationReason" short-description="Create a Termination Reason"> + <make-value entity-name="TerminationReason" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="TerminationReason" env-name="newEntity.terminationReasonId"/> + <field-to-result field-name="newEntity.terminationReasonId" result-name="terminationReasonId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updateTerminationReason" short-description="Update Termination Reason"> + <entity-one entity-name="TerminationReason" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteTerminationReason" short-description="Delete Termination Reason"> + <entity-one entity-name="TerminationReason" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createUnemploymentClaim" short-description="Create a Unemployment Claim"> + <make-value entity-name="UnemploymentClaim" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="UnemploymentClaim" env-name="newEntity.unemploymentClaimId"/> + <field-to-result field-name="newEntity.unemploymentClaimId" result-name="unemploymentClaimId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updateUnemploymentClaim" short-description="Update Unemployment Claim"> + <entity-one entity-name="UnemploymentClaim" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteUnemploymentClaim" short-description="Delete Unemployment Claim"> + <entity-one entity-name="UnemploymentClaim" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <!-- Employee Position Group --> + <simple-method method-name="createEmplPosition" short-description="Create a Employee Position"> + <make-value entity-name="EmplPosition" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="EmplPosition" env-name="newEntity.emplPositionId"/> + <field-to-result field-name="newEntity.emplPositionId" result-name="emplPositionId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updateEmplPosition" short-description="Update Employee Position"> + <entity-one entity-name="EmplPosition" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteEmplPosition" short-description="Delete Employee Position"> + <entity-one entity-name="EmplPosition" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createEmplPositionFulfillment" short-description="Create a Emplyoee Position Fulfillment"> + <make-value entity-name="EmplPositionFulfillment" value-name="newEntity"/> + <set-pk-fields map-name="parameters" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <if-empty field-name="newEntity.fromDate"> + <now-timestamp-to-env env-name="nowTimeStamp"/> + <set field="newEntity.fromDate" from-field="nowTimeStamp"/> + </if-empty> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updateEmplPositionFulfillment" short-description="Update Employee Position Fulfillment"> + <entity-one entity-name="EmplPositionFulfillment" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteEmplPositionFulfillment" short-description="Delete Employee Position Fulfillment"> + <entity-one entity-name="EmplPositionFulfillment" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createEmplPositionReportingStruct" short-description="Create a Employee Position Reporting Structure"> + <make-value entity-name="EmplPositionReportingStruct" value-name="newEntity"/> + <set-pk-fields map-name="parameters" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <if-empty field-name="newEntity.fromDate"> + <now-timestamp-to-env env-name="nowTimeStamp"/> + <set field="newEntity.fromDate" from-field="nowTimeStamp"/> + </if-empty> + <if> + <condition> + <if-compare-field field-name="parameters.emplPositionIdManagedBy" operator="not-equals" to-field-name="parameters.emplPositionIdReportingTo"/> + </condition> + <then> + <create-value value-name="newEntity"/> + </then> + <else> + <add-error> + <fail-property property="HumanResEmplPostitionIdReportingToAndEmplPositionIdManagedByMustBeDiff" resource="HumanResUiLabels"/> + </add-error> + <check-errors/> + </else> + </if> + </simple-method> + + <simple-method method-name="updateEmplPositionReportingStruct" short-description="Update Employee Position Reporting Structure"> + <entity-one entity-name="EmplPositionReportingStruct" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteEmplPositionReportingStruct" short-description="Delete Employee Position Reporting Structure"> + <entity-one entity-name="EmplPositionReportingStruct" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createEmplPositionResponsibility" short-description="Create a Employee Position Responsibility"> + <make-value entity-name="EmplPositionResponsibility" value-name="newEntity"/> + <set-pk-fields map-name="parameters" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <if-empty field-name="newEntity.fromDate"> + <now-timestamp-to-env env-name="nowTimeStamp"/> + <set field="newEntity.fromDate" from-field="nowTimeStamp"/> + </if-empty> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updateEmplPositionResponsibility" short-description="Update Employee Position Responsibility"> + <entity-one entity-name="EmplPositionResponsibility" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteEmplPositionResponsibility" short-description="Delete Employee Position Responsibility"> + <entity-one entity-name="EmplPositionResponsibility" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createValidResponsibility" short-description="Create a Valid Responsibility"> + <make-value entity-name="ValidResponsibility" value-name="newEntity"/> + <set-pk-fields map-name="parameters" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <if-empty field-name="newEntity.fromDate"> + <now-timestamp-to-env env-name="nowTimeStamp"/> + <set field="newEntity.fromDate" from-field="nowTimeStamp"/> + </if-empty> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updateValidResponsibility" short-description="Update Valid Responsibility"> + <entity-one entity-name="ValidResponsibility" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteValidResponsibility" short-description="Delete Valid Responsibility"> + <entity-one entity-name="ValidResponsibility" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + <!-- Skill Types --> + <simple-method method-name="createSkillType" short-description="Create a SkillType"> + <make-value entity-name="SkillType" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <sequenced-id-to-env sequence-name="SkillType" env-name="newEntity.skillTypeId"/> + <field-to-result field-name="newEntity.skillTypeId" result-name="skillTypeId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updateSkillType" short-description="Update SkillType"> + <entity-one entity-name="SkillType" value-name="lookedUpValue"/> + <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteSkillType" short-description="Delete SkillType"> + <entity-one entity-name="SkillType" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="createEmployee" short-description="Create New Employee"> + <if-not-empty field-name="generalAddressLine1" map-name="parameters"> + <call-map-processor xml-resource="org/ofbiz/humanres/humanres/HumanResMapProcs.xml" processor-name="postalAddressGeneral" in-map-name="parameters" out-map-name="partyPostalAddressCtx"/> + </if-not-empty> + <if-not-empty field-name="workContactNumber" map-name="parameters"> + <call-map-processor xml-resource="org/ofbiz/humanres/humanres/HumanResMapProcs.xml" processor-name="workPhoneNumber" in-map-name="parameters" out-map-name="workTelecomCtx"/> + </if-not-empty> + <if-not-empty field-name="mobileContactNumber" map-name="parameters"> + <call-map-processor xml-resource="org/ofbiz/humanres/humanres/HumanResMapProcs.xml" processor-name="mobileNumber" in-map-name="parameters" out-map-name="mobileTelecomCtx"/> + </if-not-empty> + <if-not-empty field-name="otherEmail" map-name="parameters"> + <call-map-processor xml-resource="org/ofbiz/humanres/humanres/HumanResMapProcs.xml" processor-name="otherEmail" in-map-name="parameters" out-map-name="partyEmailCtx"/> + </if-not-empty> + <check-errors/> + + <set field="partyTypeId" value="PERSON"/> + <set field="parameters.roleTypeId" value="EMPLOYEE"/> + <call-simple-method method-name="createPersonRoleAndContactMechs" xml-resource="org/ofbiz/party/party/PartySimpleMethods.xml"/> + <field-to-result field-name="partyId"/> + + <if-not-empty field-name="parameters.partyIdFrom"> + <set field="partyRelationshipCtx.partyId" from-field="partyId"/> + <set field="partyRelationshipCtx.partyIdFrom" from-field="parameters.partyIdFrom"/> + <set field="partyRelationshipCtx.partyIdTo" from-field="partyId"/> + <set field="partyRelationshipCtx.roleTypeIdFrom" value="INTERNAL_ORGANIZATIO"/> + <set field="partyRelationshipCtx.roleTypeIdTo" value="EMPLOYEE"/> + <set field="partyRelationshipCtx.relationshipName" value="EMPLOYMENT"/> + <set field="partyRelationshipCtx.fromDate" from-field="parameters.fromDate"/> + <now-timestamp-to-env env-name="nowTimestamp"/> + <if-empty field-name="partyRelationshipCtx.fromDate"> + <set field="partyRelationshipCtx.fromDate" from-field="nowTimestamp"/> + </if-empty> + <call-service service-name="createPartyRelationship" in-map-name="partyRelationshipCtx"/> + </if-not-empty> + + <if-not-empty field-name="generalAddressLine1" map-name="parameters"> + <set field="partyPostalAddressCtx.partyId" from-field="partyId"/> + <set field="partyPostalAddressCtx.contactMechPurposeTypeId" value="GENERAL_LOCATION"/> + <call-service service-name="createPartyPostalAddress" in-map-name="partyPostalAddressCtx"> + <result-to-field result-name="contactMechId" field-name="contactMechId"/> + </call-service> + </if-not-empty> + + <if-not-empty field-name="workContactNumber" map-name="parameters"> + <set field="workTelecomCtx.partyId" from-field="partyId"/> + <set field="workTelecomCtx.contactMechPurposeTypeId" value="PHONE_WORK"/> + <call-service service-name="createPartyTelecomNumber" in-map-name="workTelecomCtx"> + <result-to-field result-name="contactMechId" field-name="contactMechId"/> + </call-service> + </if-not-empty> + + <if-not-empty field-name="mobileContactNumber" map-name="parameters"> + <set field="mobileTelecomCtx.partyId" from-field="partyId"/> + <set field="mobileTelecomCtx.contactMechPurposeTypeId" value="PHONE_MOBILE"/> + <call-service service-name="createPartyTelecomNumber" in-map-name="mobileTelecomCtx"> + <result-to-field result-name="contactMechId" field-name="contactMechId"/> + </call-service> + </if-not-empty> + + <if-not-empty field-name="otherEmail" map-name="parameters"> + <set field="partyEmailCtx.partyId" from-field="partyId"/> + <set field="partyEmailCtx.contactMechPurposeTypeId" value="OTHER_EMAIL"/> + <call-service service-name="createPartyEmailAddress" in-map-name="partyEmailCtx"> + <result-to-field result-name="contactMechId" field-name="contactMechId"/> + </call-service> + </if-not-empty> + + </simple-method> + + <!-- Responsibility Types --> + <simple-method method-name="createResponsibilityType" short-description="Create a ResponsibilityType"> + <make-value entity-name="ResponsibilityType" value-name="newEntity"/> + <set-pk-fields map-name="parameters" value-name="newEntity"/> + <set-nonpk-fields map-name="parameters" value-name="newEntity"/> + <if-empty field-name="newEntity.responsibilityTypeId"> + <sequenced-id-to-env sequence-name="ResponsibilityType" env-name="newEntity.responsibilityTypeId"/> + </if-empty> + <field-to-result field-name="newEntity.responsibilityTypeId" result-name="responsibilityTypeId"/> + <create-value value-name="newEntity"/> + </simple-method> + + <simple-method method-name="updateResponsibilityType" short-description="Update ResponsibilityType"> + <entity-one entity-name="ResponsibilityType" value-name="lookedUpValue"/> + <set-nonpk-fields map-name="parameters" value-name="lookedUpValue"/> + <store-value value-name="lookedUpValue"/> + </simple-method> + + <simple-method method-name="deleteResponsibilityType" short-description="Delete ResponsibilityType"> + <entity-one entity-name="ResponsibilityType" value-name="lookedUpValue"/> + <remove-value value-name="lookedUpValue"/> + </simple-method> </simple-methods> \ No newline at end of file Propchange: ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/permission/HumanResPermissionServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/permission/HumanResPermissionServices.xml?rev=656502&r1=656501&r2=656502&view=diff ============================================================================== --- ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/permission/HumanResPermissionServices.xml (original) +++ ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/permission/HumanResPermissionServices.xml Wed May 14 21:00:01 2008 @@ -1,27 +1,27 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - --> - -<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> - - <simple-method method-name="humanResManagerPermission" short-description="Check user has Humanres Manager permission"> - <set field="primaryPermission" value="HUMANRES"/> - <call-simple-method method-name="genericBasePermissionCheck" xml-resource="org/ofbiz/common/permission/CommonPermissionServices.xml"/> - </simple-method> -</simple-methods> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> + +<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> + + <simple-method method-name="humanResManagerPermission" short-description="Check user has Humanres Manager permission"> + <set field="primaryPermission" value="HUMANRES"/> + <call-simple-method method-name="genericBasePermissionCheck" xml-resource="org/ofbiz/common/permission/CommonPermissionServices.xml"/> + </simple-method> +</simple-methods> Propchange: ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/permission/HumanResPermissionServices.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/permission/HumanResPermissionServices.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/permission/HumanResPermissionServices.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Propchange: ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/controller.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/controller.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/controller.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/web.xml?rev=656502&r1=656501&r2=656502&view=diff ============================================================================== --- ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/web.xml (original) +++ ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/web.xml Wed May 14 21:00:01 2008 @@ -1,100 +1,100 @@ -<?xml version="1.0"?> -<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> - -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -<web-app> - <display-name>Open For Business - HumanRes Manager</display-name> - <description>HumanRes Manager Module of the Open For Business Project</description> - - <context-param> - <param-name>entityDelegatorName</param-name> - <param-value>default</param-value> - <description>The Name of the Entity Delegator to use, defined in entityengine.xml</description> - </context-param> - <context-param> - <param-name>localDispatcherName</param-name> - <param-value>Humanres</param-value> - <description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description> - </context-param> - <context-param> - <param-name>serviceReaderUrls</param-name> - <param-value>/WEB-INF/services.xml</param-value> - <description>Configuration File(s) For The Service Dispatcher</description> - </context-param> - <context-param> - <param-name>mainDecoratorLocation</param-name> - <param-value>component://humanres/widget/CommonScreens.xml</param-value> - <description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description> - </context-param> - - <filter> - <filter-name>ContextFilter</filter-name> - <display-name>ContextFilter</display-name> - <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class> - <init-param> - <param-name>disableContextSecurity</param-name> - <param-value>N</param-value> - </init-param> - <init-param> - <param-name>allowedPaths</param-name> - <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css</param-value> - </init-param> - <init-param> - <param-name>errorCode</param-name> - <param-value>403</param-value> - </init-param> - <init-param> - <param-name>redirectPath</param-name> - <param-value>/control/main</param-value> - </init-param> - </filter> - <filter-mapping> - <filter-name>ContextFilter</filter-name> - <url-pattern>/*</url-pattern> - </filter-mapping> - - <listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener> - <listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener> - <!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface --> - <!-- <listener><listener-class>org.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> --> - - <servlet> - <servlet-name>ControlServlet</servlet-name> - <display-name>ControlServlet</display-name> - <description>Main Control Servlet</description> - <servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class> - <load-on-startup>1</load-on-startup> - </servlet> - <servlet-mapping> - <servlet-name>ControlServlet</servlet-name> - <url-pattern>/control/*</url-pattern> - </servlet-mapping> - - <session-config> - <session-timeout>60</session-timeout> <!-- in minutes --> - </session-config> - - <welcome-file-list> - <welcome-file>index.jsp</welcome-file> - <welcome-file>index.html</welcome-file> - <welcome-file>index.htm</welcome-file> - </welcome-file-list> -</web-app> +<?xml version="1.0"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<web-app> + <display-name>Open For Business - HumanRes Manager</display-name> + <description>HumanRes Manager Module of the Open For Business Project</description> + + <context-param> + <param-name>entityDelegatorName</param-name> + <param-value>default</param-value> + <description>The Name of the Entity Delegator to use, defined in entityengine.xml</description> + </context-param> + <context-param> + <param-name>localDispatcherName</param-name> + <param-value>Humanres</param-value> + <description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description> + </context-param> + <context-param> + <param-name>serviceReaderUrls</param-name> + <param-value>/WEB-INF/services.xml</param-value> + <description>Configuration File(s) For The Service Dispatcher</description> + </context-param> + <context-param> + <param-name>mainDecoratorLocation</param-name> + <param-value>component://humanres/widget/CommonScreens.xml</param-value> + <description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description> + </context-param> + + <filter> + <filter-name>ContextFilter</filter-name> + <display-name>ContextFilter</display-name> + <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class> + <init-param> + <param-name>disableContextSecurity</param-name> + <param-value>N</param-value> + </init-param> + <init-param> + <param-name>allowedPaths</param-name> + <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css</param-value> + </init-param> + <init-param> + <param-name>errorCode</param-name> + <param-value>403</param-value> + </init-param> + <init-param> + <param-name>redirectPath</param-name> + <param-value>/control/main</param-value> + </init-param> + </filter> + <filter-mapping> + <filter-name>ContextFilter</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + + <listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener> + <listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener> + <!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface --> + <!-- <listener><listener-class>org.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> --> + + <servlet> + <servlet-name>ControlServlet</servlet-name> + <display-name>ControlServlet</display-name> + <description>Main Control Servlet</description> + <servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>ControlServlet</servlet-name> + <url-pattern>/control/*</url-pattern> + </servlet-mapping> + + <session-config> + <session-timeout>60</session-timeout> <!-- in minutes --> + </session-config> + + <welcome-file-list> + <welcome-file>index.jsp</welcome-file> + <welcome-file>index.html</welcome-file> + <welcome-file>index.htm</welcome-file> + </welcome-file-list> +</web-app> Propchange: ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/humanres/webapp/humanres/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml |
Free forum by Nabble | Edit this page |