Improved: Convert ContactMechAttribute entity related CRUD services from simple to entity-auto.

(OFBIZ-8373)(OFBIZ-8374)(OFBIZ-8375)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765322 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Deepak Dixit
2016-10-17 16:04:54 +00:00
parent 982d1be463
commit bcbe59ed43
2 changed files with 3 additions and 23 deletions
@@ -241,23 +241,6 @@ under the License.
<remove-value value-field="contactMechLinkInstance"/>
</simple-method>
<!-- contactmech attribute services -->
<simple-method method-name="createContactMechAttribute" short-description="createContactMechAttribute">
<make-value value-field="newEntity" entity-name="ContactMechAttribute"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateContactMechAttribute" short-description="updateContactMechAttribute">
<entity-one entity-name="ContactMechAttribute" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="removeContactMechAttribute" short-description="removeContactMechAttribute">
<entity-one entity-name="ContactMechAttribute" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="sendVerifyEmailAddressNotification" short-description="Send an email to the person for Verification of his Email Address" login-required="false">
<entity-condition entity-name="ProductStoreEmailSetting" list="productStoreEmailSettings">
<condition-list>
+3 -6
View File
@@ -563,22 +563,19 @@ under the License.
</service>
<!-- contact mech attribute services -->
<service name="createContactMechAttribute" engine="simple" default-entity-name="ContactMechAttribute"
location="component://party/minilang/contact/ContactMechServices.xml" invoke="createContactMechAttribute" auth="true">
<service name="createContactMechAttribute" engine="entity-auto" default-entity-name="ContactMechAttribute" invoke="create" auth="true">
<description>create a contact mech attribute record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateContactMechAttribute" engine="simple" default-entity-name="ContactMechAttribute"
location="component://party/minilang/contact/ContactMechServices.xml" invoke="updateContactMechAttribute" auth="true">
<service name="updateContactMechAttribute" engine="entity-auto" default-entity-name="ContactMechAttribute" invoke="update" auth="true">
<description>updates a contact mech attribute record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removeContactMechAttribute" engine="simple" default-entity-name="ContactMechAttribute"
location="component://party/minilang/contact/ContactMechServices.xml" invoke="removeContactMechAttribute" auth="true">
<service name="removeContactMechAttribute" engine="entity-auto" default-entity-name="ContactMechAttribute" invoke="delete" auth="true">
<description>removes a contact mech attribute record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>