Package org.apache.ofbiz.party.contact
Class ContactMechServices
java.lang.Object
org.apache.ofbiz.party.contact.ContactMechServices
Services for Contact Mechanism maintenance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopyPartyContactMechs
(DispatchContext dctx, Map<String, ? extends Object> context) Copies all contact mechs from one party to another.createContactMech
(DispatchContext ctx, Map<String, ? extends Object> context) Creates a ContactMech security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permissioncreateEmailAddress
(DispatchContext ctx, Map<String, ? extends Object> context) Creates a EmailAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permissioncreateEmailAddressVerification
(DispatchContext dctx, Map<String, ? extends Object> context) Creates an EmailAddressVerificationcreatePartyContactMechPurpose
(DispatchContext ctx, Map<String, ? extends Object> context) Creates a PartyContactMechPurpose security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permissioncreatePostalAddress
(DispatchContext ctx, Map<String, ? extends Object> context) Creates a PostalAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permissioncreateTelecomNumber
(DispatchContext ctx, Map<String, ? extends Object> context) Creates a TelecomNumber security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permissiondeleteContactMech
(DispatchContext ctx, Map<String, ? extends Object> context) Deletes a ContactMech security check: userLogin partyId must equal partyId, or must have PARTYMGR_DELETE permissiongetPartyContactMechValueMaps
(DispatchContext ctx, Map<String, ? extends Object> context) Just wraps the ContactMechWorker method of the same name.updateContactMech
(DispatchContext ctx, Map<String, ? extends Object> context) Updates a ContactMech security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permissionupdateEmailAddress
(DispatchContext ctx, Map<String, ? extends Object> context) Updates a EmailAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permissionupdatePostalAddress
(DispatchContext ctx, Map<String, ? extends Object> context) Updates a PostalAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permissionupdateTelecomNumber
(DispatchContext ctx, Map<String, ? extends Object> context) Updates a TelecomNumber security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permission
-
Constructor Details
-
ContactMechServices
public ContactMechServices()
-
-
Method Details
-
createContactMech
public static Map<String,Object> createContactMech(DispatchContext ctx, Map<String, ? extends Object> context) Creates a ContactMech security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permission- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
updateContactMech
public static Map<String,Object> updateContactMech(DispatchContext ctx, Map<String, ? extends Object> context) Updates a ContactMech security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permission- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
deleteContactMech
public static Map<String,Object> deleteContactMech(DispatchContext ctx, Map<String, ? extends Object> context) Deletes a ContactMech security check: userLogin partyId must equal partyId, or must have PARTYMGR_DELETE permission- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
createPostalAddress
public static Map<String,Object> createPostalAddress(DispatchContext ctx, Map<String, ? extends Object> context) Creates a PostalAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permission- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
updatePostalAddress
public static Map<String,Object> updatePostalAddress(DispatchContext ctx, Map<String, ? extends Object> context) Updates a PostalAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permission- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
createTelecomNumber
public static Map<String,Object> createTelecomNumber(DispatchContext ctx, Map<String, ? extends Object> context) Creates a TelecomNumber security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permission- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
updateTelecomNumber
public static Map<String,Object> updateTelecomNumber(DispatchContext ctx, Map<String, ? extends Object> context) Updates a TelecomNumber security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permission- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
createEmailAddress
public static Map<String,Object> createEmailAddress(DispatchContext ctx, Map<String, ? extends Object> context) Creates a EmailAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permission- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
updateEmailAddress
public static Map<String,Object> updateEmailAddress(DispatchContext ctx, Map<String, ? extends Object> context) Updates a EmailAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permission- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
createPartyContactMechPurpose
public static Map<String,Object> createPartyContactMechPurpose(DispatchContext ctx, Map<String, ? extends Object> context) Creates a PartyContactMechPurpose security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permission- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
getPartyContactMechValueMaps
public static Map<String,Object> getPartyContactMechValueMaps(DispatchContext ctx, Map<String, ? extends Object> context) Just wraps the ContactMechWorker method of the same name.- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
copyPartyContactMechs
public static Map<String,Object> copyPartyContactMechs(DispatchContext dctx, Map<String, ? extends Object> context) Copies all contact mechs from one party to another. Does not delete or overwrite any contact mechs. -
createEmailAddressVerification
public static Map<String,Object> createEmailAddressVerification(DispatchContext dctx, Map<String, ? extends Object> context) Creates an EmailAddressVerification
-