Interface SpaceFilteringManager
- All Known Implementing Classes:
- CachedSpaceFilteringManager,- DefaultSpaceFilteringManager
@Transactional
public interface SpaceFilteringManager
Manager to work with 
SpaceInclusionEntity
 Before version 9.2.8 this class name was SpaceExclusionManager- Since:
- 9.2.7
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd space key to the allowlistReturn the flag that indicates whether new spaces should be added to the allowlist automatically.booleanisExcluded(String spaceKey) Check if the space with the given space key should be excluded from synchronisation.booleanCheck if the content filtering is active (opted-in) or notbooleanReturn the flag that indicates whether new spaces should be added to the allowlist automatically.voidreplaceList(Set<String> spaceKeys, boolean optInNewSpaces, String source) Update the list of spaces.voidReset the allowlist.
- 
Method Details- 
replaceListUpdate the list of spaces. Previous list is completely deleted on the upgrade.- Parameters:
- spaceKeys- set of space keys for the allowlist
- optInNewSpaces- flag that defines if the new spaces have to be added to the allowlist or not
- source- initiator of changes
 
- 
isExcludedCheck if the space with the given space key should be excluded from synchronisation. Space key comparison is performed ignoring the case.- Parameters:
- spaceKey- space key to check
- Returns:
- trueif space should be excluded,- falseotherwise.
 
- 
resetListReset the allowlist. Resetting the list means opting out the filtering feature, and make all content available for synchronisation- Parameters:
- source- initiator of changes
 
- 
optInNewSpacesboolean optInNewSpaces()Return the flag that indicates whether new spaces should be added to the allowlist automatically. IMPORTANT: if the filter list is disabled (opted out), then this method will returntrue. To check opt-in/opt-out settings, please callisOptedIn()- Returns:
- trueif new spaces are allowed to synchronise,- falseotherwise
 
- 
getAllowedSpacesReturn the flag that indicates whether new spaces should be added to the allowlist automatically. IMPORTANT: if the filter list is disabled (opted out), then this method will return empty set. To check opt-in/opt-out settings, please callisOptedIn()- Returns:
- trueif new spaces are allowed to synchronise,- falseotherwise
 
- 
isOptedInboolean isOptedIn()Check if the content filtering is active (opted-in) or not- Returns:
- trueif Confluence is opted in for content filtering,- falseotherwise
 
- 
addSpaceAdd space key to the allowlist- Parameters:
- key- space key
- source- source of changes
- Throws:
- InvalidOperationException- if space filtering is disabled
 
 
-