Package org.apache.ofbiz.party.contact
Class ContactMechServices
- java.lang.Object
-
- org.apache.ofbiz.party.contact.ContactMechServices
-
public class ContactMechServices extends java.lang.Object
Services for Contact Mechanism maintenance
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
static java.lang.String
resource
static java.lang.String
resourceError
-
Constructor Summary
Constructors Constructor Description ContactMechServices()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 permissionstatic 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 permissionstatic 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 EmailAddressVerificationstatic 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 permissionstatic 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 permissionstatic 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 permissionstatic 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 permissionstatic 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 permissionstatic 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 permissionstatic 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 permissionstatic 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
-
-
-
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
-
-
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 incontext
- 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 incontext
- 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 incontext
- 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 incontext
- 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 incontext
- 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 incontext
- 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 incontext
- 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 incontext
- 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 incontext
- 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 incontext
- 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 incontext
- 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
-
-