| 1 |
/* |
/* |
| 2 |
* Copyright 2005-2006 The Portal Application Laboratory Team. |
* Copyright 2005-2008 The Portal Application Laboratory Team. |
| 3 |
* |
* |
| 4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
* you may not use this file except in compliance with the License. |
* you may not use this file except in compliance with the License. |
| 26 |
import jp.sf.pal.blog.BlogConstants; |
import jp.sf.pal.blog.BlogConstants; |
| 27 |
import jp.sf.pal.blog.model.BlogMessage; |
import jp.sf.pal.blog.model.BlogMessage; |
| 28 |
import jp.sf.pal.blog.util.BlogMessaging; |
import jp.sf.pal.blog.util.BlogMessaging; |
| 29 |
|
import jp.sf.pal.blog.util.BlogMessagingKeyToken; |
| 30 |
|
|
| 31 |
import org.apache.commons.logging.Log; |
import org.apache.commons.logging.Log; |
| 32 |
import org.apache.commons.logging.LogFactory; |
import org.apache.commons.logging.LogFactory; |
| 61 |
BlogMessage blogMsg = (BlogMessage) blogMap.get("0"); |
BlogMessage blogMsg = (BlogMessage) blogMap.get("0"); |
| 62 |
if (blogMsg != null) |
if (blogMsg != null) |
| 63 |
{ |
{ |
| 64 |
|
BlogMessagingKeyToken keyToken = new BlogMessagingKeyToken(); |
| 65 |
|
keyToken.setPrefix(BlogConstants.BLOG_MESSAGE_ID); |
| 66 |
|
keyToken.setOwner(getTitleViewSession().getOwner()); |
| 67 |
try |
try |
| 68 |
{ |
{ |
| 69 |
BlogMessaging.publishToAll(BlogConstants.BLOG_MESSAGE_ID, |
BlogMessaging.publishToAll(keyToken.toString(), |
| 70 |
blogMsg.getId()); |
blogMsg.getId()); |
| 71 |
} |
} |
| 72 |
catch (NotSerializableException e) |
catch (NotSerializableException e) |