*/
public void createMessageCollection(String userId, MessageCollection msgCollection,
String messageCollectionId)
throws SocialMessageException {
if (messageCollectionId == null || userId == null || msgCollection == null) {
throw new SocialMessageException(
"Invalid parameters to create a message collection");
}
try {
saveMessageCollection(userId, messageCollectionId, msgCollection, false);
}
catch (RegistryException e) {
log.error(e.getMessage(), e);
throw new SocialMessageException("Error while creating message collection with id " +
messageCollectionId + " for user " + userId, e);
}
}