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 SummaryConstructorsConstructorDescriptionLegacyAttachmentServiceImpl(AttachmentManager attachmentManager, PermissionManager permissionManager, LabelsService labelsService, I18NBeanFactory i18NBeanFactory) Deprecated.
- 
Method SummaryModifier 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.voidremoveLabel(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- 
getLabelsDeprecated.Description copied from interface:AttachmentServiceGet the labels attached to a given attachment.- Specified by:
- getLabelsin interface- AttachmentService
- Parameters:
- attachmentId- id of the attachment to fetch labels for.
 
- 
addLabelsDeprecated.Description copied from interface:AttachmentServiceAdds the given labels to the specified content- Specified by:
- addLabelsin 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
 
- 
removeLabelpublic void removeLabel(long attachmentId, long labelId) Deprecated.Description copied from interface:AttachmentServiceRemove a label with labelId from the specified content- Specified by:
- removeLabelin interface- AttachmentService
- Parameters:
- attachmentId- the id of the content to remove the label from
- labelId- the id of the label to remove
 
 
- 
ContentLabelService