Package org.alfresco.heartbeat
Class AuthoritiesDataCollector
java.lang.Object
org.alfresco.heartbeat.HBBaseDataCollector
org.alfresco.heartbeat.AuthoritiesDataCollector
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class AuthoritiesDataCollector
extends HBBaseDataCollector
implements org.springframework.beans.factory.InitializingBean
A collector of data related authorities. The AuthorityService encapsulates authorities granted to users.
- Collector ID: acs.repository.usage.authorities
- Data:
- numUsers: Integer - The total number of users in the system.
AuthorityService.getAllAuthoritiesInZone(String, AuthorityType) - numGroups: Integer - The total number of groups in the system.
AuthorityService.getAllAuthoritiesInZone(String, AuthorityType)
- numUsers: Integer - The total number of users in the system.
- Author:
- eknizat
-
Constructor Summary
ConstructorsConstructorDescriptionAuthoritiesDataCollector(String collectorId, String collectorVersion, String cronExpression, HeartBeatJobScheduler hbJobScheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoidList<org.alfresco.heartbeat.datasender.HBData>This method returns data to be collected.voidsetAuthorityService(AuthorityService authorityService) voidsetCurrentRepoDescriptorDAO(DescriptorDAO currentRepoDescriptorDAO) Methods inherited from class org.alfresco.heartbeat.HBBaseDataCollector
deregister, getCollectorId, getCollectorVersion, getCronExpression, getHbJobScheduler, register, setHbDataCollectorService, setHbJobScheduler
-
Constructor Details
-
AuthoritiesDataCollector
public AuthoritiesDataCollector(String collectorId, String collectorVersion, String cronExpression, HeartBeatJobScheduler hbJobScheduler)
-
-
Method Details
-
setCurrentRepoDescriptorDAO
-
setAuthorityService
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
collectData
Description copied from class:HBBaseDataCollectorThis method returns data to be collected.- Specified by:
collectDatain classHBBaseDataCollector- Returns:
- List of
HBData
-