本文整理汇总了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();
}
示例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();
}
示例3: setContentUsageService
import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
public void setContentUsageService(ContentUsageService contentUsageService)
{
this.contentUsageService = contentUsageService;
}
示例4: setContentUsageService
import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
/**
* @param contentUsageService the ContentUsageService to set
*/
public void setContentUsageService(ContentUsageService contentUsageService)
{
this.contentUsageService = contentUsageService;
}
示例5: setContentUsageService
import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
public void setContentUsageService(ContentUsageService contentUsageService)
{
this.contentUsageService = contentUsageService;
}
示例6: setContentUsageService
import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
/**
* @param contentUsageService The contentUsageService to set.
*/
public void setContentUsageService(ContentUsageService contentUsageService)
{
this.contentUsageService = contentUsageService;
}
示例7: setContentUsageService
import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
/**
* @param contentUsageService The ContentUsageService to set.
*/
public void setContentUsageService(ContentUsageService contentUsageService)
{
this.contentUsageService = contentUsageService;
}
示例8: getUsageService
import org.alfresco.service.cmr.usage.ContentUsageService; //导入依赖的package包/类
/**
* Get the usage service
*
* @return ContentUsageService
*/
public final ContentUsageService getUsageService() {
return m_usageService;
}
示例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;
}