當前位置: 首頁>>代碼示例>>Java>>正文


Java BlogService類代碼示例

本文整理匯總了Java中org.alfresco.service.cmr.blog.BlogService的典型用法代碼示例。如果您正苦於以下問題:Java BlogService類的具體用法?Java BlogService怎麽用?Java BlogService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BlogService類屬於org.alfresco.service.cmr.blog包,在下文中一共展示了BlogService類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initTestsContext

import org.alfresco.service.cmr.blog.BlogService; //導入依賴的package包/類
@BeforeClass public static void initTestsContext() throws Exception
{
    AUTHENTICATION_SERVICE = (MutableAuthenticationService)testContext.getBean("authenticationService");
    BEHAVIOUR_FILTER       = (BehaviourFilter)testContext.getBean("policyBehaviourFilter");
    BLOG_SERVICE           = (BlogService)testContext.getBean("blogService");
    DICTIONARY_SERVICE     = (DictionaryService)testContext.getBean("dictionaryService");
    NODE_SERVICE           = (NodeService)testContext.getBean("nodeService");
    PERSON_SERVICE         = (PersonService)testContext.getBean("personService");
    TRANSACTION_HELPER     = (RetryingTransactionHelper)testContext.getBean("retryingTransactionHelper");
    SITE_SERVICE           = (SiteService)testContext.getBean("siteService");
    TAGGING_SERVICE        = (TaggingService)testContext.getBean("TaggingService");
    
    AuthenticationUtil.setFullyAuthenticatedUser(ADMIN_USER);
    createUser(TEST_USER);
    
    // We need to create the test site as the test user so that they can contribute content to it in tests below.
    AuthenticationUtil.setFullyAuthenticatedUser(TEST_USER);
    createTestSiteWithBlogContainer();
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:20,代碼來源:BlogServiceImplTest.java

示例2: getBlogService

import org.alfresco.service.cmr.blog.BlogService; //導入依賴的package包/類
@Override
public BlogService getBlogService() 
{
    return (BlogService)getService(BLOG_SERVICE);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:6,代碼來源:ServiceDescriptorRegistry.java

示例3: getBlogService

import org.alfresco.service.cmr.blog.BlogService; //導入依賴的package包/類
@Override
public BlogService getBlogService()
{
    // A mock response
    return null;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:7,代碼來源:MockedTestServiceRegistry.java

示例4: setBlogService

import org.alfresco.service.cmr.blog.BlogService; //導入依賴的package包/類
public void setBlogService(BlogService blogService)
{
    this.blogService = blogService;
}
 
開發者ID:Alfresco,項目名稱:alfresco-remote-api,代碼行數:5,代碼來源:AbstractBlogWebScript.java

示例5: getBlogService

import org.alfresco.service.cmr.blog.BlogService; //導入依賴的package包/類
/**
 * Get the blog service (or null if one is not provided)
 * 
 * @since 4.0
 * @deprecated This method has been deprecated as it would return a service that is not part of the public API. 
 * The service itself is not deprecated, but access to it via the ServiceRegistry will be removed in the future.
 */
@NotAuditable
BlogService getBlogService();
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:10,代碼來源:ServiceRegistry.java


注:本文中的org.alfresco.service.cmr.blog.BlogService類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。