org.ofbiz.party.contact
Class ContactMechServices

java.lang.Object
  extended by org.ofbiz.party.contact.ContactMechServices

public class ContactMechServices
extends java.lang.Object

Services for Contact Mechanism maintenance


Field Summary
static java.lang.String module
           
static java.lang.String resource
           
static java.lang.String resourceError
           
 
Constructor Summary
ContactMechServices()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.Object> copyPartyContactMechs(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Copies all contact mechs from one party to another.
static java.util.Map<java.lang.String,java.lang.Object> createContactMech(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Creates a ContactMech security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permission
static java.util.Map<java.lang.String,java.lang.Object> createEmailAddress(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Creates a EmailAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permission
static java.util.Map<java.lang.String,java.lang.Object> createEmailAddressVerification(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Creates an EmailAddressVerification
static java.util.Map<java.lang.String,java.lang.Object> createPartyContactMechPurpose(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Creates a PartyContactMechPurpose security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permission
static java.util.Map<java.lang.String,java.lang.Object> createPostalAddress(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Creates a PostalAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permission
static java.util.Map<java.lang.String,java.lang.Object> createTelecomNumber(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Creates a TelecomNumber security check: userLogin partyId must equal partyId, or must have PARTYMGR_CREATE permission
static java.util.Map<java.lang.String,java.lang.Object> deleteContactMech(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Deletes a ContactMech security check: userLogin partyId must equal partyId, or must have PARTYMGR_DELETE permission
static java.util.Map<java.lang.String,java.lang.Object> deletePartyContactMechPurpose(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Deletes the PartyContactMechPurpose corresponding to the parameters in the context security check: userLogin partyId must equal partyId, or must have PARTYMGR_DELETE permission
static java.util.Map<java.lang.String,java.lang.Object> deletePartyContactMechPurposeIfExists(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
           
static java.util.Map<java.lang.String,java.lang.Object> getPartyContactMechValueMaps(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Just wraps the ContactMechWorker method of the same name.
static java.util.Map<java.lang.String,java.lang.Object> updateContactMech(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Updates a ContactMech security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permission
static java.util.Map<java.lang.String,java.lang.Object> updateEmailAddress(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Updates a EmailAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permission
static java.util.Map<java.lang.String,java.lang.Object> updatePostalAddress(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Updates a PostalAddress security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permission
static java.util.Map<java.lang.String,java.lang.Object> updateTelecomNumber(DispatchContext ctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
          Updates a TelecomNumber security check: userLogin partyId must equal partyId, or must have PARTYMGR_UPDATE permission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

resource

public static final java.lang.String resource
See Also:
Constant Field Values

resourceError

public static final java.lang.String resourceError
See Also:
Constant Field Values
Constructor Detail

ContactMechServices

public ContactMechServices()
Method Detail

createContactMech

public static java.util.Map<java.lang.String,java.lang.Object> createContactMech(DispatchContext ctx,
                                                                                 java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> updateContactMech(DispatchContext ctx,
                                                                                 java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> deleteContactMech(DispatchContext ctx,
                                                                                 java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> createPostalAddress(DispatchContext ctx,
                                                                                   java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> updatePostalAddress(DispatchContext ctx,
                                                                                   java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> createTelecomNumber(DispatchContext ctx,
                                                                                   java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> updateTelecomNumber(DispatchContext ctx,
                                                                                   java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> createEmailAddress(DispatchContext ctx,
                                                                                  java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> updateEmailAddress(DispatchContext ctx,
                                                                                  java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> createPartyContactMechPurpose(DispatchContext ctx,
                                                                                             java.util.Map<java.lang.String,? extends java.lang.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

deletePartyContactMechPurposeIfExists

public static java.util.Map<java.lang.String,java.lang.Object> deletePartyContactMechPurposeIfExists(DispatchContext ctx,
                                                                                                     java.util.Map<java.lang.String,? extends java.lang.Object> context)

deletePartyContactMechPurpose

public static java.util.Map<java.lang.String,java.lang.Object> deletePartyContactMechPurpose(DispatchContext ctx,
                                                                                             java.util.Map<java.lang.String,? extends java.lang.Object> context)
Deletes the PartyContactMechPurpose corresponding to the parameters in the context 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

getPartyContactMechValueMaps

public static java.util.Map<java.lang.String,java.lang.Object> getPartyContactMechValueMaps(DispatchContext ctx,
                                                                                            java.util.Map<java.lang.String,? extends java.lang.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 java.util.Map<java.lang.String,java.lang.Object> copyPartyContactMechs(DispatchContext dctx,
                                                                                     java.util.Map<java.lang.String,? extends java.lang.Object> context)
Copies all contact mechs from one party to another. Does not delete or overwrite any contact mechs.


createEmailAddressVerification

public static java.util.Map<java.lang.String,java.lang.Object> createEmailAddressVerification(DispatchContext dctx,
                                                                                              java.util.Map<java.lang.String,? extends java.lang.Object> context)
Creates an EmailAddressVerification