Class ContactMechServices

java.lang.Object
org.apache.ofbiz.party.contact.ContactMechServices

public class ContactMechServices extends Object
Services for Contact Mechanism maintenance
  • 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 in
      context - 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 in
      context - 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 in
      context - 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 in
      context - 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 in
      context - 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 in
      context - 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 in
      context - 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 in
      context - 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 in
      context - 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 in
      context - 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 in
      context - 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