public class

TagGroupsEditor

extends Object
java.lang.Object
   ↳ com.urbanairship.channel.TagGroupsEditor

Class Overview

Interface used for modifying tag groups.

Summary

Public Constructors
TagGroupsEditor()
Public Methods
TagGroupsEditor addTag(String tagGroup, String tag)
Add a tag to the tag group.
TagGroupsEditor addTags(String tagGroup, Set<String> tags)
Add a set of tags to the tag group.
void apply()
Apply the tag group changes.
TagGroupsEditor removeTag(String tagGroup, String tag)
Remove a tag from the tag group.
TagGroupsEditor removeTags(String tagGroup, Set<String> tags)
Remove a set of tags from the tag group.
TagGroupsEditor setTag(String tagGroup, String tag)
Set a tag to the tag group.
TagGroupsEditor setTags(String tagGroup, Set<String> tags)
Set a set of tags to the tag group.
Protected Methods
boolean allowTagGroupChange(String tagGroup)
void onApply(List<TagGroupsMutation> collapsedMutations)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TagGroupsEditor ()

Public Methods

public TagGroupsEditor addTag (String tagGroup, String tag)

Add a tag to the tag group.

Parameters
tagGroup The tag group string.
tag The tag string.
Returns
  • The TagGroupsEditor.

public TagGroupsEditor addTags (String tagGroup, Set<String> tags)

Add a set of tags to the tag group.

Parameters
tagGroup The tag group string.
tags The tags set.
Returns
  • The TagGroupsEditor

public void apply ()

Apply the tag group changes.

public TagGroupsEditor removeTag (String tagGroup, String tag)

Remove a tag from the tag group.

Parameters
tagGroup The tag group string.
tag The tag string.
Returns
  • The TagGroupsEditor.

public TagGroupsEditor removeTags (String tagGroup, Set<String> tags)

Remove a set of tags from the tag group.

Parameters
tagGroup The tag group string.
tags The tags set.
Returns
  • The TagGroupsEditor.

public TagGroupsEditor setTag (String tagGroup, String tag)

Set a tag to the tag group.

Parameters
tagGroup The tag group string.
tag The tag string.
Returns
  • The TagGroupsEditor.

public TagGroupsEditor setTags (String tagGroup, Set<String> tags)

Set a set of tags to the tag group.

Parameters
tagGroup The tag group string.
tags The tags set.
Returns
  • The TagGroupsEditor

Protected Methods

protected boolean allowTagGroupChange (String tagGroup)

protected void onApply (List<TagGroupsMutation> collapsedMutations)