org.alfresco.repo.usage
Class UserUsageTrackingComponent

java.lang.Object
  extended by org.springframework.extensions.surf.util.AbstractLifecycleBean
      extended by org.alfresco.repo.usage.UserUsageTrackingComponent
All Implemented Interfaces:
java.util.EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class UserUsageTrackingComponent
extends org.springframework.extensions.surf.util.AbstractLifecycleBean

User Usage Tracking Component - to allow user usages to be collapsed or re-calculated - used by UserUsageCollapseJob to collapse usage deltas. - used on bootstrap to either clear all usages or (re-)calculate all missing usages.


Field Summary
 
Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log
 
Constructor Summary
UserUsageTrackingComponent()
           
 
Method Summary
 void bootstrapInternal()
           
 void execute()
           
protected  void onBootstrap(org.springframework.context.ApplicationEvent event)
           
protected  void onShutdown(org.springframework.context.ApplicationEvent event)
           
 void setClearBatchSize(int clearBatchSize)
           
 void setContentUsageImpl(ContentUsageImpl contentUsageImpl)
           
 void setEnabled(boolean enabled)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setPersonStoreUrl(java.lang.String storeUrl)
           
 void setTenantAdminService(TenantAdminService tenantAdminService)
           
 void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
           
 void setTransactionService(TransactionServiceImpl transactionService)
           
 void setUpdateBatchSize(int updateBatchSize)
           
 void setUsageDAO(UsageDAO usageDAO)
           
 void setUsageService(UsageService usageService)
           
 
Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserUsageTrackingComponent

public UserUsageTrackingComponent()
Method Detail

setTransactionService

public void setTransactionService(TransactionServiceImpl transactionService)

setContentUsageImpl

public void setContentUsageImpl(ContentUsageImpl contentUsageImpl)

setPersonStoreUrl

public void setPersonStoreUrl(java.lang.String storeUrl)

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

setUsageDAO

public void setUsageDAO(UsageDAO usageDAO)

setUsageService

public void setUsageService(UsageService usageService)

setTenantAdminService

public void setTenantAdminService(TenantAdminService tenantAdminService)

setTenantService

public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)

setClearBatchSize

public void setClearBatchSize(int clearBatchSize)

setUpdateBatchSize

public void setUpdateBatchSize(int updateBatchSize)

setEnabled

public void setEnabled(boolean enabled)

execute

public void execute()

onBootstrap

protected void onBootstrap(org.springframework.context.ApplicationEvent event)
Specified by:
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean

bootstrapInternal

public void bootstrapInternal()

onShutdown

protected void onShutdown(org.springframework.context.ApplicationEvent event)
Specified by:
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.