public class EcMApi extends Object implements EcMSoapBridge
This class is the base remote interface of eC-Messenger. It may be used directly or through further wrappers, e.g. SOAP via HTTP.
Even when used in additional wrapped API's, the documentation derived from this class represents the authoritative source of the method descriptions.
A typical use (Java Code) is as follows:
// construct a connection. The object is created through interface specific operations
EcMApi ecm = ....
String session = ecm.logon(...);
// example: look up a user in eC-M
String userXML = ecm.lookupUserByEmail(session, "somename@somedomain.somewhere");
if (userXML == null) {
System.out.println("No Such User in eC-M");
} else {
User u = User.fromXML(userXML); // java helper code available from eCircle
System.out.println("User exists: " + u.getFirstname() + " " + u.getLastName());
}
ecm.logout(session);
The eC-Messenger entities User, Member, Group are uniquely identified by an ID (a String). They can
be serialized as XML (see eCircle's W3C schema definitions). As in the example above, many
methods use the serialized form to transfer this objects.
All methods are subject to eC-Messenger's permission system that checks the permission of the executor against the different entities and for the right to executeAction upon method execution.
There is a hardcoded session timout of 10 minutes build in.
| Modifier and Type | Field and Description |
|---|---|
static String |
EMAIL_ENCODING |
| Constructor and Description |
|---|
EcMApi()
If the Remote Java API is used, this constructor can be used to get a eC-M representation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSingleRelatedDataRecord(String session,
String relatedDatasetId,
String key,
String[] colNames,
String[] colValues)
Adds a single record to a related data set
key123
colNamesregdate
colNamesproductId
colValues2005-06-06
colValues1
An add call that will insert a row with key: 123 and columns: regdate, productId with values: 2005-06-06, 1
|
boolean |
addToBlacklist(String session,
String groupId,
String email)
Add a email to the system or group blacklist.
|
void |
changeGroupSettings(String session,
String groupId,
String description,
String prefix,
String textFooter,
String textHeader,
String htmlFooter,
String htmlHeader)
Allows to change some basic properties of a group.
|
String |
cloneGroup(String session,
String templateGroupId,
String newGroupEmail,
String newGroupName,
boolean keepOwner)
Clone a existing group with all its settings and including all its priviledged users (managers).
|
String |
copyAndSendDraftMessage(String session,
String groupId,
String messageId)
Send a prepared message (a draft) to the group.
|
String |
createMember(String session,
String userId,
String groupId,
boolean invite,
boolean sendMessage)
Add a existing user to a existing group.
|
String |
createOrUpdateGroup(String session,
String groupXML)
Create or update Group.
|
String |
createOrUpdateUserByEmail(String session,
String userXml,
boolean sendMessage)
Create or Update a Use in eC-Messenger.
|
String |
createOrUpdateUserMemberByEmail(String session,
String memberXml,
String groupId,
boolean sendMessage)
This method is a combination of createUser(), createMember() and the respective update methods.
|
String |
createUser(String session,
String userXmlSpec)
Create a new user in the system.
|
boolean |
deleteGroup(String session,
String groupId)
Delete a group; this also deletes all memberships (Members).
|
boolean |
deleteMember(String session,
String memberId)
Delete a Member (aka Membership).
|
boolean |
deleteMessage(String session,
String messageId)
Delete a Message.
|
int |
deleteRelatedDataRecords(String session,
String relatedDatasetId,
String key,
String[] colNames,
String[] colValues)
Removes records from a related data set.
|
boolean |
deleteUser(String session,
String userId)
Delete a User from the eC-Messenger system.
|
void |
deleteUserByEmail(String session,
String email)
Delete a user given by its email.
|
String[] |
findMembershipsByEmail(String session,
String email)
Find eC-Messenger group IDs in whose a user is a member.
|
String[] |
findUserIdsByIdentifier(String session,
String identifier)
Find eC-Messenger users based on their Identifier.
|
String |
getGroupId(String session,
String email)
Get the email of a group, provided its eC-Messenger ID.
|
String |
getGroupProperty(String session,
String gid,
String name)
Beside the standard properties (name, email and others), Groups can have properties (aka attributes)
assigned that may be used within messages (placeholders, conditions).
|
String |
getVersion()
Public Method to obtain the API Version.
|
boolean |
isEmailBouncedSystemwide(String session,
String email)
Check if email is bounced systemwide
|
boolean |
isEmailOnSystemBlacklist(String session,
String email)
Check if email is entered in the system blacklist
|
String |
logon(String realm,
String user,
String passwd)
Log on by obtaining a session id, very much like a HTTP session to eC-Messenger.
|
void |
logout(String session)
Safely finish the obtained session.
|
GroupCore[] |
lookupGroups(String session,
GroupLookupParams lookupParams)
Lookup groups.
|
HourlyMessageStats[] |
lookupHourlyMessageStats(String session,
String messageid,
Calendar periodStartDate,
Calendar periodEndDate)
Returns message statistics aggregated by hours.
|
String |
lookupMemberByEmail_v2_0(String session,
String groupId,
String email,
boolean onlyActive)
Find a Member.
|
String |
lookupMemberByEmail(String session,
String groupId,
String email)
Deprecated.
|
String |
lookupMemberById_v2_0(String session,
String memberid,
boolean onlyActive)
Find a member given its member id.
|
String |
lookupMemberById(String session,
String memberid)
Deprecated.
|
String |
lookupMemberByIdentifier(String session,
String groupId,
String identifier,
boolean onlyActive)
Find a member in eC-Messenger.
|
String |
lookupMemberByMobileNumber(String session,
String groupId,
String mobile,
boolean onlyActive)
Lookup a Member by its mobile id .
|
String |
lookupMemberByUserId_v2_0(String session,
String groupid,
String userId,
boolean onlyActive)
Look up a member.
|
String |
lookupMemberByUserId(String session,
String groupid,
String userId)
Deprecated.
|
MessageContent |
lookupMessageById(String session,
String messageId)
Lookup a message by its ID.
|
MessageInfo[] |
lookupMessages(String session,
MessageLookupParams lookupParams)
Lookup messages.
|
String |
lookupUserByEmail(String session,
String email)
Find a user in eC-Messenger.
|
String |
lookupUserByFaxNumber(String session,
String fax)
Lookup a User by its fax number .
|
String |
lookupUserById(String session,
String userId)
Lookup a User by its Id.
|
String |
lookupUserByIdentifier(String session,
String identifier)
Find a user in eC-Messenger.
|
String |
lookupUserByMobileNumber(String session,
String mobile)
Lookup a User by its mobile id .
|
String |
lookupUserIdByEmail(String session,
String email)
Find a user id in eC-Messenger.
|
String |
registerUser(String session,
String userXmlSpec,
boolean sendMessage)
Register a new user in the system.
|
boolean |
removeFromBlacklist(String session,
String groupId,
String email)
Remove a email from the system or group blacklist
|
void |
sendEmailToMe(String session,
String subject,
String message)
Deprecated.
without replacement. Use the sendSingleMessage*() methods instead.
|
void |
sendGroupMessageToUser(String session,
String groupid,
String messageId,
String userId)
(Re-)sends a group message to an existing user.
|
void |
sendParametrizedSingleMessageToUser(String session,
String singleMessageId,
String userId,
String[] names,
String[] values)
Send one single message to a user.
|
void |
sendPriorityParametrizedSingleMessageToUser(String session,
String singleMessageId,
String userId,
String[] names,
String[] values)
Another version of sendParametrizedSingleMessageToUser() that sends through a internal high priority channel.
|
void |
sendPrioritySingleMessageToUser(String session,
String singleMessageId,
String userId)
Another version of sendSingleMessageToUser() that sends through a internal high priority channel.
|
void |
sendSingleMessageToUser(String session,
String singleMessageId,
String userId)
Send one single message to a user without any further personalization parameters.
|
void |
setAsynchronous(String session,
boolean asynchronous)
Deprecated.
without replacement.
|
void |
setGroupProperty(String session,
String gid,
String name,
String value)
Beside the standard properties (name, email and others), Groups can have properties (aka attributes)
assigned that may be used within messages (placeholders, conditions).
|
void |
setMessageFormat(String session,
String groupId,
String userId,
String messageFormat)
Set the reception mode of a group member.
|
boolean |
subscribeMemberByEmail(String session,
String email,
String groupId,
boolean sendMessage)
Subscribe a Member (aka Membership) by Email-Address.
|
String |
subscribeOrRegisterUserMemberByEmail(String session,
String userXmlSpec,
String groupId,
boolean sendMessage)
This method is a combination of registerUser(), subscribeMemberByEmail() and the respective update methods.
|
boolean |
unsubscribeMemberByEmail(String session,
String email,
String groupId,
boolean sendMessage)
Unsubscribe a Member (aka Membership) by Email-Address.
|
boolean |
updateMember(String session,
String memberXmlSpec)
Updates a member as given in the spec.
|
void |
updateRelatedDataRecord(String session,
String relatedDatasetId,
String key,
String[] colNamesId,
String[] colValuesId,
String[] colNames,
String[] colValues)
An update call that will update a specified record(s) in related data.
|
boolean |
updateUser(String session,
String userXmlSpec)
Update one user as given by its xml spec.
|
boolean |
updateUserAttributesByEmail(String session,
String email,
String[] names,
String[] values,
boolean createUser)
Update a users attributes in eC-Messenger.
|
boolean |
updateUserByEmail(String session,
String userXmlSpec)
Update one user as given by its xml spec.
|
public static final String EMAIL_ENCODING
public EcMApi()
public String logon(String realm, String user, String passwd) throws EcMException
A customer system is uniquely identified by its HTTP access url for interactive use.
The session timeout is about 4 minutes.
Note: the resulting session should be used as black box object. Altough it may look like a regular HTTP sessionid from an interactive session, this is neither garuanteed to stay like this nor it is true in all circumstances.
logon in interface EcMSoapBridgerealm - The customers web domain, for example http://customer.domain.invalid/
or https://customer.domain.invalid/user - A existing eC-Messenger user name (a email address or mobile number)passwd - The eC-Messenger Password.EcMExceptionpublic void logout(String session)
logout in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .public void setAsynchronous(String session, boolean asynchronous) throws EcMException
setAsynchronous in interface EcMSoapBridgeEcMExceptionpublic String createUser(String session, String userXmlSpec) throws EcMException
createUser in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .userXmlSpec - The xml serialized user (u.toXML()).EcMExceptionUserpublic String createOrUpdateUserByEmail(String session, String userXml, boolean sendMessage) throws EcMException
createOrUpdateUserByEmail in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .userXml - the xml describing the user, includes the email address. Must start with <user...sendMessage - if true, a message is sent to the user that he go an account in the system. This message
may contain the passwort for the system access.EcMExceptionpublic String createOrUpdateUserMemberByEmail(String session, String memberXml, String groupId, boolean sendMessage) throws EcMException
createOrUpdateUserMemberByEmail in interface EcMSoapBridgesession - session A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .memberXml - a xml serialized member. The ID is not used here and the email attribute is mandatorygroupId - the group to add the user, after successfully adding it to the systemsendMessage - true if a notification message (about the new group membership) is to be send to the user.
Note: No message is sent here about the users possibly new system account.EcMException - on Parameter errors, invalid sessions, execution problems or when the user email is on the blacklistpublic void deleteUserByEmail(String session, String email) throws EcMException
deleteUserByEmail in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .email - The users email to be dropped from the system.EcMException - if the deletion failsdeleteUser(String, String)public String lookupUserByEmail(String session, String email) throws EcMException
lookupUserByEmail in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .email - The email to be used for finding the unique user.EcMExceptionUserpublic String lookupUserIdByEmail(String session, String email) throws EcMException
lookupUserIdByEmail in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .email - The email to be used for finding the unique user.EcMException - on any backend failurepublic boolean updateUserAttributesByEmail(String session, String email, String[] names, String[] values, boolean createUser) throws EcMException
updateUserAttributesByEmail in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .email - The email to be used for finding the unique user.names - String array containing the names of the user attributes. prefix named attributes with "namedattr_"values - String array containing the values for the attributes. Must have the same order than "names"createUser - if true, creates a user if email/user does not exist.EcMException - on backend exceptionspublic String lookupUserByIdentifier(String session, String identifier) throws EcMException
lookupUserByIdentifier in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .identifier - The user identifier for finding the unique user. If multiple users have the same identifier,
the first match is deliveredEcMException - on any ecm problem or a parsing problemUserpublic String getGroupId(String session, String email) throws EcMException
getGroupId in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .email - the email of the groupEcMExceptionpublic String lookupUserByMobileNumber(String session, String mobile) throws EcMException
lookupUserByMobileNumber in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .mobile - the mobile numberEcMExceptionUserpublic String lookupMemberByMobileNumber(String session, String groupId, String mobile, boolean onlyActive) throws EcMException
lookupMemberByMobileNumber in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupId - The group to search formobile - the mobile numberonlyActive - if true, only retrieve active members (e.g. no pending or aspirant members)EcMExceptionMemberpublic String lookupUserByFaxNumber(String session, String fax) throws EcMException
lookupUserByFaxNumber in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .fax - the fax numberEcMExceptionUserpublic MessageContent lookupMessageById(String session, String messageId) throws EcMException
lookupMessageById in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .messageId - EcMExceptionMessageContentpublic MessageInfo[] lookupMessages(String session, MessageLookupParams lookupParams) throws EcMException
MessageLookupParams object. Only messages are returned
for which the currently logged in user has the permission
message_view.
NOTE: The number of messages returned by this method is limited to
the number of records specified in the batchSize property
of the given MessageLookupParams. If no value has been
specified, a default value of 50 is used.lookupMessages in interface EcMSoapBridgesession - an authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String).lookupParams - parameters expressing the search criteria
for the lookup.MessageInfo objects.EcMException - any exception is wrapped into this oneMessageLookupParamspublic GroupCore[] lookupGroups(String session, GroupLookupParams lookupParams) throws EcMException
GroupLookupParams object. Only groups are returned
for which the currently logged in user has the permission
NOTE: The number of groups returned by this method is limited to
the number of records specified in the batchSize property
of the given GroupLookupParams. If no value has been
specified, a default value of 50 is used.lookupGroups in interface EcMSoapBridgesession - an authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String).lookupParams - parameters expressing the search criteria
for the lookup.GroupCore objects.EcMException - any exception is wrapped into this oneGroupLookupParamspublic String createMember(String session, String userId, String groupId, boolean invite, boolean sendMessage) throws EcMException
createMember in interface EcMSoapBridgesession - A authenticated session iduserId - The user to be a member of the groupgroupId - The group to be member ininvite - If true, a invitation message is sent. The receiver is a member only after
reponding to that message.sendMessage - if true, the group specific "you are added" message will be sent out. This switch has
no meaning if invite is true (because the receipient anyhow gets a message). Specific
permissions are required to add members without notifying them.EcMException - Permission or IO exception
throws AlreadyMemberException if the user is already member of the group.public String lookupUserById(String session, String userId) throws EcMException
lookupUserById in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .userId - the userid within eC-MEcMExceptionpublic String lookupMemberByEmail(String session, String groupId, String email) throws EcMException
lookupMemberByEmail in interface EcMSoapBridgegroupId - The group to search foremail - the user id.session - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .EcMException - on Parameter or Communication ProblemsMemberpublic String lookupMemberByEmail_v2_0(String session, String groupId, String email, boolean onlyActive) throws EcMException
lookupMemberByEmail_v2_0 in interface EcMSoapBridgegroupId - The group to search foremail - the user id.session - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .onlyActive - if true, only retrieve active members (e.g. no pending or aspirant members)EcMException - on Parameter or Communication ProblemsMemberpublic String lookupMemberById(String session, String memberid) throws EcMException
lookupMemberById in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .memberid - the id in questionEcMException - on Parameter or Communication ProblemsMember.buildMemberId(String, String)public String lookupMemberById_v2_0(String session, String memberid, boolean onlyActive) throws EcMException
lookupMemberById_v2_0 in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .memberid - the id in questiononlyActive - if true, only retrieve active members (e.g. no pending or aspirant members)EcMException - on Parameter or Communication ProblemsMember.buildMemberId(String, String)public String lookupMemberByIdentifier(String session, String groupId, String identifier, boolean onlyActive) throws EcMException
lookupMemberByIdentifier in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupId - The group to search foridentifier - The user identifier for finding the one user.
If multiple users have the same identifier, the first match is deliveredonlyActive - if true, only retrieve active members (e.g. no pending or aspirant members)EcMExceptionUserpublic String[] findUserIdsByIdentifier(String session, String identifier) throws EcMException
findUserIdsByIdentifier in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .identifier - The user identifier for finding the user.EcMException - on any eC-M related problem, such as a Permission problem.public String[] findMembershipsByEmail(String session, String email) throws EcMException
findMembershipsByEmail in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String).email - the email of the user in question.EcMException - on any eC-M related problem, such as a Permission problem.public String lookupMemberByUserId(String session, String groupid, String userId) throws EcMException
lookupMemberByUserId in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupid - The eC-M internal group iduserId - The eC-M internal user idEcMException - on Parameter or Communication ProblemsMemberpublic String lookupMemberByUserId_v2_0(String session, String groupid, String userId, boolean onlyActive) throws EcMException
lookupMemberByUserId_v2_0 in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupid - The eC-M internal group iduserId - The eC-M internal user idonlyActive - if true, only retrieve active members (e.g. no pending or aspirant members)EcMException - on Parameter or Communication ProblemsMemberpublic boolean updateMember(String session, String memberXmlSpec) throws EcMException
updateMember in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .memberXmlSpec - a xml serialized memberEcMException - on Parameter or Communication ProblemsNote: A member id consists of userid and groupid!public boolean updateUser(String session, String userXmlSpec) throws EcMException
updateUser in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .userXmlSpec - a xml serialized user.EcMException - on Parameter errors or communication problemspublic boolean updateUserByEmail(String session, String userXmlSpec) throws EcMException
updateUserByEmail in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .userXmlSpec - a xml serialized user.EcMException - on Parameter errors or communication problemspublic boolean deleteUser(String session, String userId) throws EcMException
deleteUser in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .userId - The eC-Messenger internal userid.EcMException - on Parameter or Communication Problemspublic boolean deleteMember(String session, String memberId) throws EcMException
deleteMember in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .memberId - The Member id as obtains by other API methods.EcMException - on Parameter or Communication ProblemsNote: A member id consists of userid and groupidpublic String subscribeOrRegisterUserMemberByEmail(String session, String userXmlSpec, String groupId, boolean sendMessage) throws EcMException
subscribeOrRegisterUserMemberByEmail in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String)userXmlSpec - The xml serialized user (u.toXML()).sendMessage - if true a confirmation message will be send to the memberEcMException - on Parameter or Communication ProblemsUserpublic boolean subscribeMemberByEmail(String session, String email, String groupId, boolean sendMessage) throws EcMException
subscribeMemberByEmail in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String)email - The email address of the membergroupId - The id of the group to subscribe tosendMessage - if true a confirmation message will be send to the membertrue if the subscription was successfulEcMException - on Parameter or Communication Problemspublic String registerUser(String session, String userXmlSpec, boolean sendMessage) throws EcMException
registerUser in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .userXmlSpec - The xml serialized user (u.toXML()).sendMessage - if true a confirmation message will be send to the memberEcMException - on Parameter or Communication ProblemsUserpublic boolean unsubscribeMemberByEmail(String session, String email, String groupId, boolean sendMessage) throws EcMException
unsubscribeMemberByEmail in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .email - The email address of the membergroupId - The groupId from which the member should be unsubscribed.sendMessage - if true a confirmation message will be send to the memberEcMException - on Parameter or Communication Problemspublic boolean deleteMessage(String session, String messageId) throws EcMException
deleteMessage in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .messageId - The message id as obtains by other API methods.EcMException - on Parameter or Communication Problemspublic String cloneGroup(String session, String templateGroupId, String newGroupEmail, String newGroupName, boolean keepOwner) throws EcMException
cloneGroup in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .templateGroupId - The groupid of the group to copynewGroupEmail - The emailof the new group. This must be an allowed address for this customer system.newGroupName - The group name as it appears in the catalog of eC-MessengerkeepOwner - If true, the owner of the new group is the one from the cloned group. Otherwise the executor
is assigned to be the owner.EcMException - If group creation fails, possibly trough a permission problem.public void changeGroupSettings(String session, String groupId, String description, String prefix, String textFooter, String textHeader, String htmlFooter, String htmlHeader) throws EcMException
changeGroupSettings in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupId - the id of the groupdescription - A new Description Stringprefix - A new prefix String. This is prefixed to all messages.textFooter - The footer text for text parts of messagestextHeader - The header text for text parts of messageshtmlFooter - The footer text for html parts of messageshtmlHeader - The header text for html parts of messagesEcMExceptionpublic void setGroupProperty(String session, String gid, String name, String value) throws EcMException
setGroupProperty in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .gid - groupId of the groupname - A case insensitive name of the propertyvalue - the new valueEcMExceptionpublic String getGroupProperty(String session, String gid, String name) throws EcMException
getGroupProperty in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .gid - groupId of the groupname - A case insensitive name of the propertyEcMExceptionpublic void setMessageFormat(String session, String groupId, String userId, String messageFormat) throws EcMException
setMessageFormat in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupId - the group where we set the readmode for the recipientuserId - the userid of the membermessageFormat - A messageFormat String in the form (ALLOW|DENY|PREFER):(email|mobile|fax)[;...]Exception - on Permission or Format Spec problems.EcMExceptionpublic String copyAndSendDraftMessage(String session, String groupId, String messageId) throws EcMException
copyAndSendDraftMessage in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupId - the group (of recipients) that should receive that messagemessageId - the messageId of the draft messageEcMExceptionpublic void sendSingleMessageToUser(String session, String singleMessageId, String userId) throws EcMException
sendSingleMessageToUser in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .singleMessageId - Id of message in EcMessengeruserId - Id of the userEcMExceptionsendParametrizedSingleMessageToUser(String, String, String, String[], String[])public void sendPrioritySingleMessageToUser(String session, String singleMessageId, String userId) throws EcMException
sendPrioritySingleMessageToUser in interface EcMSoapBridgeEcMExceptionsendSingleMessageToUser(String, String, String)public void sendParametrizedSingleMessageToUser(String session, String singleMessageId, String userId, String[] names, String[] values) throws EcMException
sendParametrizedSingleMessageToUser in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .singleMessageId - The messageId of the single-message to send; within eC-Messenger such a message is
known as a Single-Message (as opposed to a group message).names - A string array comprising the names of the placeholdes. Correspondends to the values arrayvalues - This String array contains the values for the placeholders named in the names array.userId - The user that should get the message.EcMExceptionpublic void sendPriorityParametrizedSingleMessageToUser(String session, String singleMessageId, String userId, String[] names, String[] values) throws EcMException
sendPriorityParametrizedSingleMessageToUser in interface EcMSoapBridgeEcMExceptionsendPriorityParametrizedSingleMessageToUser(String, String, String, String[], String[])public void sendGroupMessageToUser(String session, String groupid, String messageId, String userId) throws EcMException
sendGroupMessageToUser in interface EcMSoapBridgesession - session A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupid - The group that the message belongs tomessageId - The messageiduserId - the userid of the recipient. It must be known in the system therefore.EcMExceptionpublic boolean deleteGroup(String session, String groupId) throws EcMException
deleteGroup in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupId - The group to be deletedEcMExceptionpublic void sendEmailToMe(String session, String subject, String message) throws EcMException
sendEmailToMe in interface EcMSoapBridgeEcMExceptionpublic boolean addToBlacklist(String session, String groupId, String email) throws EcMException
addToBlacklist in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupId - a group id or *. If a groupId is specified, the given email address is added to the
groups blacklist. If groupId is *, the given email is added to the system blacklist.email - the email address to be added to the blacklistEcMExceptionpublic boolean isEmailOnSystemBlacklist(String session, String email) throws EcMException
isEmailOnSystemBlacklist in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String)email - the email address to be looked up on the blacklistEcMExceptionpublic boolean isEmailBouncedSystemwide(String session, String email) throws EcMException
isEmailBouncedSystemwide in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String)email - the email address to be looked upEcMExceptionpublic boolean removeFromBlacklist(String session, String groupId, String email) throws EcMException
removeFromBlacklist in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupId - a group id or *. If a groupId is specified, the given email address is removed from the
groups blacklist. If groupId is *, the given email is removed from the system blacklist.email - the email address to be removed from the blacklistEcMExceptionpublic String createOrUpdateGroup(String session, String groupXML) throws EcMException
createOrUpdateGroup in interface EcMSoapBridgesession - A authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String) .groupXML - Group definition as defined in element "<group>"
of schema http://webservices.ecircle-ag.com/ecmEcMExceptionpublic HourlyMessageStats[] lookupHourlyMessageStats(String session, String messageid, Calendar periodStartDate, Calendar periodEndDate) throws EcMException
HourlyMessageStats objects. The result length is
determined by the number of hours between the specified start
and end date.lookupHourlyMessageStats in interface EcMSoapBridgesession - an authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String).messageid - the message id as obtained by other API methods.periodStartDate - the start date of the period.periodEndDate - the end date of the period. The maximum length of the period is 48 hours.HourlyMessageStats objects.EcMException - any exception is wrapped into this one.public void addSingleRelatedDataRecord(String session, String relatedDatasetId, String key, String[] colNames, String[] colValues) throws EcMException
| key | 123 |
| colNames | regdate |
| colNames | productId |
| colValues | 2005-06-06 |
| colValues | 1 |
addSingleRelatedDataRecord in interface EcMSoapBridgesession - an authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String).relatedDatasetId - the id of the related data setkey - the key to store columns inside the related data setcolNames - a array of column namescolValues - a array of column values, ordering must match colNames arrayEcMException - if data could not be writtenpublic void updateRelatedDataRecord(String session, String relatedDatasetId, String key, String[] colNamesId, String[] colValuesId, String[] colNames, String[] colValues) throws EcMException
updateRelatedDataRecord in interface EcMSoapBridgesession - an authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String).relatedDatasetId - the id of the related data setkey - the key to store columns inside the related data setcolNamesId - an array of column names, which will be used to find record(s) for updatingcolValuesId - an array of values, which will be used to find record(s) for updating. Ordering and size must match colNamesId arraycolNames - an array of column namescolValues - an array of column values. Ordering and size must match colNames arrayEcMException - if data could not be writtenpublic int deleteRelatedDataRecords(String session, String relatedDatasetId, String key, String[] colNames, String[] colValues) throws EcMException
colNames and colValues can be empty or null, but if you provide any, they have to match in length values will be deleted only if they exactly match stored data if they are empty or null, all records matching the given key will be deleted
| key | reg_id | Product |
|---|---|---|
| 123 | ZSDF1234 | DSC-1234 |
| 123 | ZLKJJ123 | DSC-1234 |
| 123 | LSKDFG09 | VAIO-12 |
| 456 | KJ234894 | DSC-1234 |
deleteRelatedDataRecords in interface EcMSoapBridgesession - an authenticated session id, obtained from logon(java.lang.String, java.lang.String, java.lang.String).relatedDatasetId - the id of the related data setkey - the key to remove columns inside the related data set fromcolNames - an array of column names,colValues - an array of column values, ordering must match colNames arrayEcMException - if data could not be deletedpublic String getVersion()
getVersion in interface EcMSoapBridge© 2004..2009, eCircle AG, Version: 1.82 (${buildNumber})