2013-10-24 40 views
0

在使用基於示例的Java代碼創建社區後,我可以通過在「所有連接」中搜索來找到該社區,但是如果選擇「社區」菜單,則可以使用任何子菜單選項:I我是一名會員,公衆...新的社區沒有列出。即使在數小時或數天後,它也不會出現。 API中是否有需要設置的參數,或者這是Connections配置設置問題?通過Social Business SDK創建的社區未在「社區」菜單選項下列出;只能通過搜索找到

+0

要求姆斯瓦蒂迴應 –

回答

0

與Swati聊天...

此代碼適用於我。 https://greenhouse.lotus.com/sbt/SBTPlayground.nsf/JavaSnippets.xsp#snippet=Social_Communities_CreateCommunity

你有什麼版本的連接?

您是否檢查社區名稱是否已經存在?

此代碼的工作對我來說......你必須發表您發表評論的代碼(或代碼的樣本)

CommunityService communityService = new CommunityService(); 
    Community community = new Community(communityService, ""); 
    community.setTitle("Test Community 1ab" + System.currentTimeMillis()); 
    community.setContent("Test Community updated by Update Community Java snippet"); 
    community.setCommunityType("private"); 
    List<String> tags = new ArrayList<String>(); 
    tags.add("tag1"); 
    tags.add("tag2"); 
    community.setTags(tags); 
    community = community.save();