Class LegacyAttachmentServiceImpl

java.lang.Object
com.atlassian.confluence.ui.rest.service.content.LegacyAttachmentServiceImpl
All Implemented Interfaces:
AttachmentService

@Deprecated @Component("localAttachmentService") public class LegacyAttachmentServiceImpl extends Object implements AttachmentService
Deprecated.
since 7.0.1 , use ContentLabelService
  • Constructor Details

  • Method Details

    • getLabels

      public Iterable<Label> getLabels(long attachmentId, Collection<Label.Prefix> prefixes)
      Deprecated.
      Description copied from interface: AttachmentService
      Get the labels attached to a given attachment.
      Specified by:
      getLabels in interface AttachmentService
      Parameters:
      attachmentId - id of the attachment to fetch labels for.
    • addLabels

      public Iterable<Label> addLabels(long attachmentId, Iterable<Label> labels)
      Deprecated.
      Description copied from interface: AttachmentService
      Adds the given labels to the specified content
      Specified by:
      addLabels in interface AttachmentService
      Parameters:
      attachmentId - the id of the content to add labels to
      labels - the label(s) that will be added
      Returns:
      all the labels that are associated with the specified content
    • removeLabel

      public void removeLabel(long attachmentId, long labelId)
      Deprecated.
      Description copied from interface: AttachmentService
      Remove a label with labelId from the specified content
      Specified by:
      removeLabel in interface AttachmentService
      Parameters:
      attachmentId - the id of the content to remove the label from
      labelId - the id of the label to remove