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.
-
Constructor Summary
ConstructorsConstructorDescriptionLegacyAttachmentServiceImpl
(AttachmentManager attachmentManager, PermissionManager permissionManager, LabelsService labelsService, I18NBeanFactory i18NBeanFactory) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Adds the given labels to the specified contentgetLabels
(long attachmentId, Collection<Label.Prefix> prefixes) Deprecated.Get the labels attached to a given attachment.void
removeLabel
(long attachmentId, long labelId) Deprecated.Remove a label with labelId from the specified content
-
Constructor Details
-
LegacyAttachmentServiceImpl
@Autowired public LegacyAttachmentServiceImpl(AttachmentManager attachmentManager, PermissionManager permissionManager, LabelsService labelsService, I18NBeanFactory i18NBeanFactory) Deprecated.
-
-
Method Details
-
getLabels
Deprecated.Description copied from interface:AttachmentService
Get the labels attached to a given attachment.- Specified by:
getLabels
in interfaceAttachmentService
- Parameters:
attachmentId
- id of the attachment to fetch labels for.
-
addLabels
Deprecated.Description copied from interface:AttachmentService
Adds the given labels to the specified content- Specified by:
addLabels
in interfaceAttachmentService
- Parameters:
attachmentId
- the id of the content to add labels tolabels
- 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 interfaceAttachmentService
- Parameters:
attachmentId
- the id of the content to remove the label fromlabelId
- the id of the label to remove
-
ContentLabelService