Class AbstractAttachmentCopier

    • Field Detail

      • progress

        protected com.atlassian.core.util.ProgressMeter progress
    • Constructor Detail

      • AbstractAttachmentCopier

        public AbstractAttachmentCopier()
    • Method Detail

      • isSpaceIncluded

        protected boolean isSpaceIncluded​(Space space)
        Returns whether the space is in the inclusion List.
        Parameters:
        space - the Space to check
        Returns:
        true if it is included, false otherwise
      • isContentSpaceIncluded

        protected boolean isContentSpaceIncluded​(ContentEntityObject content)
        Returns whether the content's Space is in the inclusion List.

        This method first checks if there are any Space restrictions. If there are none, true is returned.

        Then checks whether content belongs to a Space. If it is not a SpaceContentEntityObject, false is returned.

        Otherwise, #isSpaceIncluded() is called.

        Parameters:
        content - the ContentEntityObject to check
        Returns:
        true if it is included, false otherwise
      • isContentExcluded

        protected boolean isContentExcluded​(ContentEntityObject content)
        Returns whether a ContentEntityObject is excluded from the copy
        Parameters:
        content - the ContentEntityObject to check
        Returns:
        true if excluded, false otherwise
      • getSpacesToInclude

        protected List<Space> getSpacesToInclude()