add lombok to clean codebase

This commit is contained in:
2025-11-09 18:40:38 +01:00
parent 8d9b10bace
commit c27e68caf0
88 changed files with 704 additions and 7787 deletions
+7
View File
@@ -17,5 +17,12 @@
<artifactId>webstly-partey</artifactId>
<version>${revision}</version>
</dependency>
<!-- Lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>
@@ -5,9 +5,14 @@ package de.bstly.we.jukebox.businesslogic.model;
import java.time.Instant;
import lombok.Getter;
import lombok.Setter;
/**
* The Class JukeboxConfig.
*/
@Getter
@Setter
public class JukeboxConfig {
private String clientId;
@@ -22,202 +27,4 @@ public class JukeboxConfig {
private Instant expires;
private String fallbackContextId;
/**
* Gets the client id.
*
* @return the client id
*/
public String getClientId() {
return clientId;
}
/**
* Sets the client id.
*
* @param clientId the new client id
*/
public void setClientId(String clientId) {
this.clientId = clientId;
}
/**
* Gets the client secret.
*
* @return the client secret
*/
public String getClientSecret() {
return clientSecret;
}
/**
* Sets the client secret.
*
* @param clientSecret the new client secret
*/
public void setClientSecret(String clientSecret) {
this.clientSecret = clientSecret;
}
/**
* Gets the device id.
*
* @return the device id
*/
public String getDeviceId() {
return deviceId;
}
/**
* Sets the device id.
*
* @param deviceId the new device id
*/
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
/**
* Gets the redirect url.
*
* @return the redirect url
*/
public String getRedirectUrl() {
return redirectUrl;
}
/**
* Sets the redirect url.
*
* @param redirectUrl the new redirect url
*/
public void setRedirectUrl(String redirectUrl) {
this.redirectUrl = redirectUrl;
}
/**
* Gets the api url.
*
* @return the api url
*/
public String getApiUrl() {
return apiUrl;
}
/**
* Sets the api url.
*
* @param apiUrl the new api url
*/
public void setApiUrl(String apiUrl) {
this.apiUrl = apiUrl;
}
/**
* Gets the account url.
*
* @return the account url
*/
public String getAccountUrl() {
return accountUrl;
}
/**
* Sets the account url.
*
* @param accountUrl the new account url
*/
public void setAccountUrl(String accountUrl) {
this.accountUrl = accountUrl;
}
/**
* Checks if is active.
*
* @return true, if is active
*/
public boolean isActive() {
return active;
}
/**
* Sets the active.
*
* @param active the new active
*/
public void setActive(boolean active) {
this.active = active;
}
/**
* Gets the access token.
*
* @return the access token
*/
public String getAccessToken() {
return accessToken;
}
/**
* Sets the access token.
*
* @param accessToken the new access token
*/
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
/**
* Gets the refresh token.
*
* @return the refresh token
*/
public String getRefreshToken() {
return refreshToken;
}
/**
* Sets the refresh token.
*
* @param refreshToken the new refresh token
*/
public void setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken;
}
/**
* Gets the expires.
*
* @return the expires
*/
public Instant getExpires() {
return expires;
}
/**
* Sets the expires.
*
* @param expires the new expires
*/
public void setExpires(Instant expires) {
this.expires = expires;
}
/**
* Gets the fallback context id.
*
* @return the fallback context id
*/
public String getFallbackContextId() {
return fallbackContextId;
}
/**
* Sets the fallback context id.
*
* @param fallbackContextId the new fallback context id
*/
public void setFallbackContextId(String fallbackContextId) {
this.fallbackContextId = fallbackContextId;
}
}
@@ -6,8 +6,6 @@ package de.bstly.we.jukebox.controller;
import java.io.IOException;
import java.util.Optional;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.DeleteMapping;
@@ -25,6 +23,7 @@ import com.google.gson.JsonIOException;
import de.bstly.we.controller.BaseController;
import de.bstly.we.jukebox.businesslogic.JukeboxManager;
import de.bstly.we.jukebox.businesslogic.model.JukeboxConfig;
import jakarta.servlet.http.HttpServletResponse;
/**
* The Class JukeboxManagementController.