@ExperimentalApi
@Internal
public interface DenormalisedPermissionStateManager
Modifier and Type | Method and Description |
---|---|
void |
disableService(boolean cleanDenormalisedData)
Disables the service and deletes all triggers/functions, so denormalised data will not be updated.
|
void |
enableService()
Enables the service.
|
Long |
getContentPermissionUpdateLag()
Returns the time difference between updating regular content permissions and denormalised content permissions
|
DenormalisedPermissionServiceState |
getContentServiceState(boolean realTimeData)
Get the state of denormalised content service.
|
Long |
getSpacePermissionUpdateLag()
Returns the time difference between updating regular space permissions and denormalised space permissions
|
DenormalisedPermissionServiceState |
getSpaceServiceState(boolean realTimeData)
Get the state of denormalised space service.
|
List<StateChangeInformation> |
getStateChangeLog(int limit)
Returns a list of service state change events
|
boolean |
isApiReady()
Returns true if the state of the service is "READY", if both CONTENT and SPACE services are in ready state
Possible reasons for returning false:
1.
|
boolean |
isContentApiReady()
Returns true if the state of denormalised CONTENT service is "READY", which means that denormalised content permissions
reflect real permissions.
|
boolean |
isSpaceApiReady()
Returns true if the state of denormalised SPACE service is "READY", which means that denormalised space permissions
reflect real permissions.
|
void |
scheduled() |
boolean isApiReady()
boolean isSpaceApiReady()
boolean isContentApiReady()
DenormalisedPermissionServiceState getSpaceServiceState(boolean realTimeData)
realTimeData
- if true, data will be read from the DB. If false, cached data will be returned.DenormalisedPermissionServiceState getContentServiceState(boolean realTimeData)
realTimeData
- if true, data will be read from the DB. If false, cached data will be returned.void enableService()
void disableService(boolean cleanDenormalisedData)
cleanDenormalisedData
- - if true, all denormalised data will be truncatedLong getSpacePermissionUpdateLag()
Long getContentPermissionUpdateLag()
List<StateChangeInformation> getStateChangeLog(int limit)
limit
- limitvoid scheduled()
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences