Class DefaultLabelsService

    • Method Detail

      • newAddLabelCommand

        public AddLabelsCommand newAddLabelCommand​(String labelString,
                                                   com.atlassian.user.User user,
                                                   long entityId)
        Description copied from interface: LabelsService
        Builds a command that takes a string of comma separated labels and adds them to a Page or Blog Post for the specified user.
        Specified by:
        newAddLabelCommand in interface LabelsService
        Parameters:
        labelString - - string of labels
        user - - logged in user
        entityId - - page or blogpost
        Returns:
        command //TODO deprecate
      • newAddLabelCommand

        public AddLabelsCommand newAddLabelCommand​(String labelString,
                                                   com.atlassian.user.User user,
                                                   long entityId,
                                                   String entityType)
        Description copied from interface: LabelsService
        Builds a command that takes a string of comma separated labels and adds them to a Page or Blog Post for the specified user.
        Specified by:
        newAddLabelCommand in interface LabelsService
        Parameters:
        labelString - - string of labels
        user - - logged in user
        entityId - - page or blogpost
        Returns:
        command
      • newValidateLabelCommand

        public ValidateLabelsCommand newValidateLabelCommand​(String labelString,
                                                             com.atlassian.user.User user)
        Description copied from interface: LabelsService
        Builds a command that will validate the labels without actually adding them.
        Specified by:
        newValidateLabelCommand in interface LabelsService
        Parameters:
        labelString - - string of labels
        user - - logged in user
        Returns:
        command
      • newRemoveLabelCommand

        public RemoveLabelCommand newRemoveLabelCommand​(Label label,
                                                        com.atlassian.user.User user,
                                                        long entityId)
        Description copied from interface: LabelsService
        Builds a command that takes removes the specified label Page or Blog Post for the specified user.
        Specified by:
        newRemoveLabelCommand in interface LabelsService
        Parameters:
        label - - label object
        user - - logged in user
        entityId - - page or blogpost
        Returns:
        command
      • newRemoveLabelCommand

        public RemoveLabelCommand newRemoveLabelCommand​(String labelIdString,
                                                        com.atlassian.user.User user,
                                                        long entityId)
        Description copied from interface: LabelsService
        Builds a command that takes removes the specified label Page or Blog Post for the specified user.
        Specified by:
        newRemoveLabelCommand in interface LabelsService
        Parameters:
        labelIdString - - label id or string
        user - - logged in user
        entityId - - page or blogpost
        Returns:
        command
      • newRemoveLabelCommand

        public RemoveLabelCommand newRemoveLabelCommand​(long labelId,
                                                        com.atlassian.user.User user,
                                                        long entityId)
        Description copied from interface: LabelsService
        Builds a command that takes removes the specified label Page or Blog Post for the specified user.
        Specified by:
        newRemoveLabelCommand in interface LabelsService
        Parameters:
        labelId - - label id
        user - - logged in user
        entityId - - page or blogpost
        Returns:
        command