@Internal public class DenormalisedPermissionStateLogService extends Object
Constructor and Description |
---|
DenormalisedPermissionStateLogService(DenormalisedServiceStateDao denormalisedServiceStateDao,
org.springframework.transaction.PlatformTransactionManager transactionManager,
DenormalisedChangeLogDao denormalisedChangeLogDao) |
public DenormalisedPermissionStateLogService(DenormalisedServiceStateDao denormalisedServiceStateDao, org.springframework.transaction.PlatformTransactionManager transactionManager, DenormalisedChangeLogDao denormalisedChangeLogDao)
public DenormalisedPermissionServiceState getServiceState(DenormalisedServiceStateRecord.ServiceType serviceType)
public DenormalisedServiceStateRecord getServiceStateRecord(DenormalisedServiceStateRecord.ServiceType serviceType)
public List<DenormalisedServiceStateRecord> getAllStateRecords()
public void changeState(DenormalisedServiceStateRecord stateRecord, DenormalisedPermissionServiceState newState, StateChangeInformation.MessageLevel messageLevel, String message)
public void changeState(DenormalisedServiceStateRecord.ServiceType serviceType, DenormalisedPermissionServiceState newState, StateChangeInformation.MessageLevel messageLevel, String message, Long lastUpToDateTimestamp)
public void addMessageToStateLog(StateChangeInformation.MessageLevel messageLevel, String message)
public List<StateChangeInformation> getStateChangeLog(int limit)
limit
- - amount of messages to be returnedpublic void clearHistory()
public void updateLastUpToDateTimeStamp(DenormalisedServiceStateRecord.ServiceType serviceType, long time)
Copyright © 2003–2021 Atlassian. All rights reserved.