package com.atlassian.stash.internal.repository.ref.restriction.analytics;

import com.atlassian.analytics.api.annotations.EventName;
import com.atlassian.event.api.AsynchronousPreferred;
import com.atlassian.bitbucket.repository.Repository;
import com.atlassian.bitbucket.repository.ref.restriction.RefRestriction;
import com.atlassian.bitbucket.user.ApplicationUser;

import javax.annotation.Nonnull;
import java.util.Collection;

@AsynchronousPreferred
@EventName("stash.branch-permission.updated")
public class RefRestrictionUpdatedAnalyticsEvent extends RefRestrictionAnalyticsEvent {

    public RefRestrictionUpdatedAnalyticsEvent(@Nonnull Object source,
                                               @Nonnull Repository repository,
                                               @Nonnull RefRestriction restriction,
                                               @Nonnull Collection<ApplicationUser> affectedUsers,
                                               @Nonnull Collection<String> affectedGroups) {
        super(source, repository, restriction, affectedUsers, affectedGroups);
    }
}
