Class DenormalisedPermissionStateLogService
java.lang.Object
com.atlassian.confluence.security.denormalisedpermissions.impl.manage.DenormalisedPermissionStateLogService
Manages service state, and state change logs
- Since:
- 7.10.0
-
Constructor Summary
ConstructorsConstructorDescriptionDenormalisedPermissionStateLogService
(DenormalisedServiceStateDao denormalisedServiceStateDao, org.springframework.transaction.PlatformTransactionManager transactionManager, DenormalisedChangeLogDao denormalisedChangeLogDao) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessageToStateLog
(StateChangeInformation.MessageLevel messageLevel, String message) Saves information about changed state (or about an important event) to a dedicated tablevoid
changeState
(DenormalisedServiceStateRecord.ServiceType serviceType, DenormalisedPermissionServiceState newState, StateChangeInformation.MessageLevel messageLevel, String message, Long lastUpToDateTimestamp) void
changeState
(DenormalisedServiceStateRecord stateRecord, DenormalisedPermissionServiceState newState, StateChangeInformation.MessageLevel messageLevel, String message) void
Clears the history of messages.getStateChangeLog
(int limit) Retrives latest messages from the service state logvoid
updateLastUpToDateTimeStamp
(DenormalisedServiceStateRecord.ServiceType serviceType, long time)
-
Constructor Details
-
DenormalisedPermissionStateLogService
public DenormalisedPermissionStateLogService(DenormalisedServiceStateDao denormalisedServiceStateDao, org.springframework.transaction.PlatformTransactionManager transactionManager, DenormalisedChangeLogDao denormalisedChangeLogDao)
-
-
Method Details
-
getServiceState
public DenormalisedPermissionServiceState getServiceState(DenormalisedServiceStateRecord.ServiceType serviceType) -
getServiceStateRecord
public DenormalisedServiceStateRecord getServiceStateRecord(DenormalisedServiceStateRecord.ServiceType serviceType) -
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
Saves information about changed state (or about an important event) to a dedicated table -
getStateChangeLog
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)
-