Skip to content

Commit

Permalink
ListTagEvent to ListTagsEvent & ListTagInfoEvent to ListTagsInfoEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
TungYuChiang committed Jan 19, 2025
1 parent 2c66d22 commit 64a293c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
import org.apache.gravitino.listener.api.event.GetTagForMetadataObjectFailureEvent;
import org.apache.gravitino.listener.api.event.ListMetadataObjectsForTagEvent;
import org.apache.gravitino.listener.api.event.ListMetadataObjectsForTagFailureEvent;
import org.apache.gravitino.listener.api.event.ListTagEvent;
import org.apache.gravitino.listener.api.event.ListTagInfoEvent;
import org.apache.gravitino.listener.api.event.ListTagsEvent;
import org.apache.gravitino.listener.api.event.ListTagsFailureEvent;
import org.apache.gravitino.listener.api.event.ListTagsForMetadataObjectEvent;
import org.apache.gravitino.listener.api.event.ListTagsForMetadataObjectFailureEvent;
import org.apache.gravitino.listener.api.event.ListTagsInfoEvent;
import org.apache.gravitino.listener.api.event.ListTagsInfoFailureEvent;
import org.apache.gravitino.listener.api.event.ListTagsInfoForMetadataObjectEvent;
import org.apache.gravitino.listener.api.event.ListTagsInfoForMetadataObjectFailureEvent;
Expand Down Expand Up @@ -69,7 +69,7 @@ public String[] listTags(String metalake) {
// TODO: listTagsPreEvent
try {
String[] tagNames = dispatcher.listTags(metalake);
eventBus.dispatchEvent(new ListTagEvent(PrincipalUtils.getCurrentUserName(), metalake));
eventBus.dispatchEvent(new ListTagsEvent(PrincipalUtils.getCurrentUserName(), metalake));
return tagNames;
} catch (Exception e) {
eventBus.dispatchEvent(
Expand All @@ -84,7 +84,7 @@ public Tag[] listTagsInfo(String metalake) {
try {
Tag[] tags = dispatcher.listTagsInfo(metalake);
eventBus.dispatchEvent(
new ListTagInfoEvent(PrincipalUtils.getCurrentUserName(), metalake, tags));
new ListTagsInfoEvent(PrincipalUtils.getCurrentUserName(), metalake, tags));
return tags;
} catch (Exception e) {
eventBus.dispatchEvent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

/** Represents an event that is triggered upon the successful listing of tags. */
@DeveloperApi
public final class ListTagEvent extends TagEvent {
public final class ListTagsEvent extends TagEvent {
private final String metalake;

/**
Expand All @@ -33,7 +33,7 @@ public final class ListTagEvent extends TagEvent {
* @param user The username of the individual who initiated the tag listing.
* @param metalake The namespace from which tags were listed.
*/
public ListTagEvent(String user, String metalake) {
public ListTagsEvent(String user, String metalake) {
super(user, NameIdentifier.of(metalake));
this.metalake = metalake;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/** Represents an event that is triggered upon the successful listing of tags. */
@DeveloperApi
public final class ListTagInfoEvent extends TagEvent {
public final class ListTagsInfoEvent extends TagEvent {
private final Tag[] tags;

/**
Expand All @@ -35,7 +35,7 @@ public final class ListTagInfoEvent extends TagEvent {
* @param metalake The namespace from which tags were listed.
* @param tags An array of {@link Tag} objects representing the tags.
*/
public ListTagInfoEvent(String user, String metalake, Tag[] tags) {
public ListTagsInfoEvent(String user, String metalake, Tag[] tags) {
super(user, NameIdentifier.of(metalake));
this.tags = tags;
}
Expand Down

0 comments on commit 64a293c

Please sign in to comment.