import javax.annotation.Nullable;
public abstract class AbstractEditorNewValue extends NewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
protected String qualityGateUuid;
@Nullable
@Nullable
protected String qualityProfileName;
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getQualityGateUuid() {
return this.qualityGateUuid;
public class ComponentKeyNewValue extends NewValue {
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
private final String componentUuid;
private final String oldKey;
private final String newKey;
this.newKey = newKey;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
public String getComponentUuid() {
return componentUuid;
}
import static java.util.Objects.requireNonNull;
public class ComponentNewValue extends NewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
private final String componentUuid;
private final String componentKey;
private final String componentName;
this.qualifier = qualifier;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
public String getComponentUuid() {
return componentUuid;
}
import org.sonar.db.project.ProjectDto;
public class DevOpsPlatformSettingNewValue extends NewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String devOpsPlatformSettingUuid;
@Nullable
private String clientId;
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String projectUuid;
this.projectName = projectDto.getName();
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getDevOpsPlatformSettingUuid() {
return this.devOpsPlatformSettingUuid;
return this.clientId;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getProjectUuid() {
return this.projectUuid;
import org.sonar.db.user.GroupDto;
public class GroupEditorNewValue extends AbstractEditorNewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String groupUuid;
@Nullable
this.qualityProfileName = qualityProfileDto.getName();
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getGroupUuid() {
return this.groupUuid;
public class GroupPermissionNewValue extends PermissionNewValue {
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String groupUuid;
this(dto.getUuid(), dto.getEntityUuid(), componentKey, dto.getEntityName(), dto.getRole(), dto.getGroupUuid(), dto.getGroupName(), qualifier, permissionTemplate);
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
public String getGroupUuid() {
return groupUuid;
import org.sonar.db.permission.template.PermissionTemplateDto;
public abstract class PermissionNewValue extends NewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
protected String permissionUuid;
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
protected String componentUuid;
this.permissionTemplateName = permissionTemplateDto == null ? null : permissionTemplateDto.getName();
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getPermissionUuid() {
return this.permissionUuid;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getComponentUuid() {
return this.componentUuid;
import org.sonar.db.permission.template.PermissionTemplateDto;
public class PermissionTemplateNewValue extends NewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
private String templateUuid;
private String name;
@Nullable
private String permission;
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String userUuid;
@Nullable
private String userLogin;
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String groupUuid;
this.withProjectCreator = withProjectCreator;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
public String getTemplateUuid() {
return this.templateUuid;
}
return this.permission;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getUserUuid() {
return this.userUuid;
return this.userLogin;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getGroupUuid() {
return this.groupUuid;
import org.sonar.db.user.UserDto;
public class PersonalAccessTokenNewValue extends NewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String patUuid;
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String userUuid;
this.almSettingKey = almSettingDto.getKey();
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getPatUuid() {
return this.patUuid;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getUserUuid() {
return this.userUuid;
import org.sonar.db.plugin.PluginDto;
public class PluginNewValue extends NewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
private final String pluginUuid;
private final String kee;
private final String basePluginKey;
this.type = pluginDto.getType().name();
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
public String getPluginUuid() {
return this.pluginUuid;
}
public class ProjectBadgeTokenNewValue extends NewValue {
private final String projectKey;
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
private final String userUuid;
private final String userLogin;
@Nullable
private String propertyValue;
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String userUuid;
@Nullable
private String userLogin;
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String componentUuid;
this.propertyKey = propertyKey;
}
- public PropertyNewValue(String propertyKey, @Nullable String userUuid, String userLogin) {
- this.propertyKey = propertyKey;
- this.userUuid = userUuid;
- this.userLogin = userLogin;
- }
-
public PropertyNewValue(String propertyKey, String propertyValue) {
this.propertyKey = propertyKey;
return this.propertyValue;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getUserUuid() {
return this.userUuid;
return this.userLogin;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getComponentUuid() {
return this.componentUuid;
import org.sonar.db.user.UserDto;
public class UserEditorNewValue extends AbstractEditorNewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String userUuid;
@Nullable
this.qualityProfileName = qProfileDto.getName();
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getUserUuid() {
return this.userUuid;
import static com.google.common.base.Preconditions.checkState;
public class UserGroupNewValue extends NewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
private final String groupUuid;
private final String name;
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
private final String userUuid;
private final String userLogin;
private final String description;
this.description = description;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getGroupUuid() {
return this.groupUuid;
return this.description;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getUserUuid() {
return this.userUuid;
import static java.util.Objects.requireNonNull;
public class UserNewValue extends NewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
private String userUuid;
private String userLogin;
this.lastConnectionDate = userDto.getLastConnectionDate();
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
public String getUserUuid() {
return this.userUuid;
}
public class UserPermissionNewValue extends PermissionNewValue {
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private final String userUuid;
this.userLogin = userId != null ? userId.getLogin() : null;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
public String getUserUuid() {
return userUuid;
import org.sonar.db.user.UserTokenDto;
public class UserTokenNewValue extends NewValue {
+
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String tokenUuid;
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String userUuid;
this.type = TokenType.PROJECT_ANALYSIS_TOKEN.name();
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getTokenUuid() {
return this.tokenUuid;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
public String getUserUuid() {
return this.userUuid;
}
import org.sonar.db.webhook.WebhookDto;
public class WebhookNewValue extends NewValue {
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String webhookUuid;
@Nullable
private String url;
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@Nullable
private String projectUuid;
}
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getWebhookUuid() {
return this.webhookUuid;
return this.url;
}
+ /**
+ * @deprecated The uuids in the audit logs are not product requirement anymore and will be removed in 11.x
+ */
+ @Deprecated(since = "10.2")
@CheckForNull
public String getProjectUuid() {
return this.projectUuid;