Class LabelledContentSpaceValidator

java.lang.Object
com.atlassian.confluence.api.impl.service.content.LabelledContentSpaceValidator

public class LabelledContentSpaceValidator extends Object
This class is responsible for validating content label permission for a space
Since:
9.2.5
  • Constructor Details

    • LabelledContentSpaceValidator

      public LabelledContentSpaceValidator(@NonNull LabelManager labelManager, @NonNull PermissionManager permissionManager, int batchSize)
  • Method Details

    • validate

      public boolean validate(Collection<Label> labels, Space space)
      Parameters:
      space - Space with content
      labels - content labels
      Returns:
      true if no labels defined or if user has permissions to view any content labelled by all provided labels. false otherwise - there is no visible content which has all provided labels.