/** * Returns information on all the blogs a given user is a member of * * @param appkey Unique identifier/passcode of the application sending the post * @param userid Login for a Blogger user who has permission to post to the blog * @param password Password for said username * @throws XmlRpcException If there are no categories or the user was not authenticated correctly * @return Blog category list */ public Object getUsersBlogs(String appkey, String userid, String password) throws Exception { _logger.debug("getUsersBlogs() Called ===[ SUPPORTED ]======="); _logger.debug(" Appkey: " + appkey); _logger.debug(" UserId: " + userid); _logger.debug(" Password: "******""; Map _metadata = _category.getMetaData(); if (_metadata != null && _metadata.containsKey(NAME_KEY)) { _description = (String) _metadata.get(NAME_KEY); } else { _description = _blogid; } _bloglist.put(MEMBER_URL, _category.getCategoryURL()); _bloglist.put(MEMBER_BLOGID, _blogid); _bloglist.put(MEMBER_BLOGNAME, _description); result.add(_bloglist); } } else { throw new XmlRpcException(NOBLOGS_EXCEPTION, NOBLOGS_EXCEPTION_MSG); } return result; } catch (BlojsomException e) { _logger.error( "Failed to authenticate user [" + userid + "] with password [" + password + "]"); throw new XmlRpcException(AUTHORIZATION_EXCEPTION, AUTHORIZATION_EXCEPTION_MSG); } }