Class DenormalisedPermissionStateLogService
- java.lang.Object
-
- com.atlassian.confluence.security.denormalisedpermissions.impl.manage.DenormalisedPermissionStateLogService
-
@Internal public class DenormalisedPermissionStateLogService extends Object
Manages service state, and state change logs- Since:
- 7.10.0
-
-
Constructor Summary
Constructors Constructor Description DenormalisedPermissionStateLogService(DenormalisedServiceStateDao denormalisedServiceStateDao, org.springframework.transaction.PlatformTransactionManager transactionManager, DenormalisedChangeLogDao denormalisedChangeLogDao)
-
Method Summary
-
-
-
Constructor Detail
-
DenormalisedPermissionStateLogService
public DenormalisedPermissionStateLogService(DenormalisedServiceStateDao denormalisedServiceStateDao, org.springframework.transaction.PlatformTransactionManager transactionManager, DenormalisedChangeLogDao denormalisedChangeLogDao)
-
-
Method Detail
-
getServiceState
public DenormalisedPermissionServiceState getServiceState(DenormalisedServiceStateRecord.ServiceType serviceType)
-
getServiceStateRecord
public DenormalisedServiceStateRecord getServiceStateRecord(DenormalisedServiceStateRecord.ServiceType serviceType)
-
getAllStateRecords
public List<DenormalisedServiceStateRecord> getAllStateRecords()
-
changeState
public void changeState(DenormalisedServiceStateRecord stateRecord, DenormalisedPermissionServiceState newState, StateChangeInformation.MessageLevel messageLevel, String message)
-
changeState
public void changeState(DenormalisedServiceStateRecord.ServiceType serviceType, DenormalisedPermissionServiceState newState, StateChangeInformation.MessageLevel messageLevel, String message, Long lastUpToDateTimestamp)
-
addMessageToStateLog
public void addMessageToStateLog(StateChangeInformation.MessageLevel messageLevel, String message)
Saves information about changed state (or about an important event) to a dedicated table
-
getStateChangeLog
public List<StateChangeInformation> getStateChangeLog(int limit)
Retrives latest messages from the service state log- Parameters:
limit
- - amount of messages to be returned
-
clearHistory
public void clearHistory()
Clears the history of messages. Used by tests
-
updateLastUpToDateTimeStamp
public void updateLastUpToDateTimeStamp(DenormalisedServiceStateRecord.ServiceType serviceType, long time)
-
-