Author: snoopdave
Date: Sun Jan 22 06:29:36 2006
New Revision: 371306
URL: http://svn.apache.org/viewcvs?rev=371306&view=rev
Log:
Accept both boolean an int for MetaWeblog API publish flag
Modified:
incubator/roller/trunk/src/org/roller/presentation/xmlrpc/MetaWeblogAPIHandler.java
Modified:
incubator/roller/trunk/src/org/roller/presentation/xmlrpc/MetaWeblogAPIHandler.java
URL:
http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/presentation/xmlrpc/MetaWeblogAPIHandler.java?rev=371306&r1=371305&r2=371306&view=diff
==============================================================================
---
incubator/roller/trunk/src/org/roller/presentation/xmlrpc/MetaWeblogAPIHandler.java
(original)
+++
incubator/roller/trunk/src/org/roller/presentation/xmlrpc/MetaWeblogAPIHandler.java
Sun Jan 22 06:29:36 2006
@@ -106,6 +106,12 @@
* @return
*/
public boolean editPost(String postid, String userid, String password,
+ Hashtable struct, int publish)
+ throws Exception {
+ return editPost(postid, userid, password, struct, publish > 0);
+ }
+
+ public boolean editPost(String postid, String userid, String password,
Hashtable struct, boolean publish)
throws Exception
{
@@ -159,8 +165,6 @@
entry.setPubTime(new Timestamp(dateCreated.getTime()));
}
-
-
if ( cat != null )
{
// Use first category specified by request
@@ -200,6 +204,12 @@
* @throws org.apache.xmlrpc.XmlRpcException
* @return
*/
+ public String newPost(
+ String blogid, String userid, String password, Hashtable struct, int
publish)
+ throws Exception {
+ return newPost(blogid, userid, password, struct, publish > 0);
+ }
+
public String newPost(
String blogid, String userid, String password, Hashtable struct,
boolean publish)
throws Exception