当前位置: 首页>>代码示例>>Java>>正文


Java ContentUsageService类代码示例

本文整理汇总了Java中org.alfresco.service.cmr.usage.ContentUsageService的典型用法代码示例。如果您正苦于以下问题:Java ContentUsageService类的具体用法?Java ContentUsageService怎么用?Java ContentUsageService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ContentUsageService类属于org.alfresco.service.cmr.usage包,在下文中一共展示了ContentUsageService类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
protected void setUp() throws Exception
{
    if (AlfrescoTransactionSupport.isActualTransactionActive())
    {
        fail("Test started with transaction in progress");
    }
    
    nodeService = (NodeService)applicationContext.getBean("NodeService");
    authenticationService = (MutableAuthenticationService)applicationContext.getBean("authenticationService");   
    transactionService = (TransactionService)applicationContext.getBean("transactionComponent");
    personService = (PersonService)applicationContext.getBean("PersonService");
    contentService = (ContentService)applicationContext.getBean("ContentService");
    contentUsageService = (ContentUsageService)applicationContext.getBean("ContentUsageService");
    
    userUsageTrackingComponent = (UserUsageTrackingComponent)applicationContext.getBean("userUsageTrackingComponent");
    
    // Enable
    ContentUsageImpl contentUsage = (ContentUsageImpl)applicationContext.getBean("contentUsageImpl");
    contentUsage.setEnabled(true);
    contentUsage.init();
    userUsageTrackingComponent.setEnabled(true);
    userUsageTrackingComponent.init();
    userUsageTrackingComponent.bootstrapInternal();
    
    AuthenticationUtil.setRunAsUserSystem();
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:27,代码来源:UserUsageTrackingComponentTest.java

示例2: setUp

import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
protected void setUp() throws Exception
{
    applicationContext = ApplicationContextHelper.getApplicationContext();
    if (AlfrescoTransactionSupport.isActualTransactionActive())
    {
        fail("Test started with transaction in progress");
    }
    
    nodeService = (NodeService)applicationContext.getBean("NodeService");
    authenticationService = (MutableAuthenticationService)applicationContext.getBean("authenticationService");   
    transactionService = (TransactionService)applicationContext.getBean("transactionComponent");
    personService = (PersonService)applicationContext.getBean("PersonService");
    contentService = (ContentService)applicationContext.getBean("ContentService");
    contentUsageService = (ContentUsageService)applicationContext.getBean("ContentUsageService");
    
    userUsageTrackingComponent = (UserUsageTrackingComponent)applicationContext.getBean("userUsageTrackingComponent");
    
    // Enable
    ContentUsageImpl contentUsage = (ContentUsageImpl)applicationContext.getBean("contentUsageImpl");
    contentUsage.setEnabled(true);
    contentUsage.init();
    userUsageTrackingComponent.setEnabled(true);
    userUsageTrackingComponent.init();
    userUsageTrackingComponent.bootstrapInternal();
    
    AuthenticationUtil.setRunAsUserSystem();
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:28,代码来源:UserUsageTrackingComponentTest.java

示例3: setContentUsageService

import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
public void setContentUsageService(ContentUsageService contentUsageService)
{
    this.contentUsageService = contentUsageService;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:5,代码来源:UsageQuotaProtector.java

示例4: setContentUsageService

import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
/**
 * @param contentUsageService   the ContentUsageService to set
 */
public void setContentUsageService(ContentUsageService contentUsageService)
{
    this.contentUsageService = contentUsageService;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:8,代码来源:People.java

示例5: setContentUsageService

import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
public void setContentUsageService(ContentUsageService contentUsageService)
   {
	this.contentUsageService = contentUsageService;
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:5,代码来源:PeopleImpl.java

示例6: setContentUsageService

import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
/**
 * @param contentUsageService The contentUsageService to set.
 */
public void setContentUsageService(ContentUsageService contentUsageService)
{
    this.contentUsageService = contentUsageService;
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:8,代码来源:CreateUserWizard.java

示例7: setContentUsageService

import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
/**
 * @param contentUsageService    The ContentUsageService to set.
 */
public void setContentUsageService(ContentUsageService contentUsageService)
{
   this.contentUsageService = contentUsageService;
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:8,代码来源:UsersBeanProperties.java

示例8: getUsageService

import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
/**
 * Get the usage service
 * 
 * @return ContentUsageService
 */
public final ContentUsageService getUsageService() {
    return m_usageService;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:9,代码来源:ContentQuotaManager.java

示例9: setUsageService

import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
/**
 * Set the usage service
 * 
 * @param usageService ContentUsageService
 */
public final void setUsageService(ContentUsageService usageService) {
    m_usageService = usageService;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:9,代码来源:ContentQuotaManager.java


注:本文中的org.alfresco.service.cmr.usage.ContentUsageService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。