TSK-1442: Removed serialVersionUID class variable from all entities
This commit is contained in:
parent
fbc623bd31
commit
85573e9ce7
|
|
@ -2,7 +2,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
|
|
||||||
/** Thrown in ConnectionManagementMode AUTOCOMMIT when an attempt to commit fails. */
|
/** Thrown in ConnectionManagementMode AUTOCOMMIT when an attempt to commit fails. */
|
||||||
public class AutocommitFailedException extends TaskanaRuntimeException {
|
public class AutocommitFailedException extends TaskanaRuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public AutocommitFailedException(Throwable cause) {
|
public AutocommitFailedException(Throwable cause) {
|
||||||
super("Autocommit failed", cause);
|
super("Autocommit failed", cause);
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
*/
|
*/
|
||||||
public class ConcurrencyException extends TaskanaException {
|
public class ConcurrencyException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public ConcurrencyException(String msg) {
|
public ConcurrencyException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
*/
|
*/
|
||||||
public class ConnectionNotSetException extends TaskanaRuntimeException {
|
public class ConnectionNotSetException extends TaskanaRuntimeException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public ConnectionNotSetException() {
|
public ConnectionNotSetException() {
|
||||||
super("Connection not set");
|
super("Connection not set");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
*/
|
*/
|
||||||
public class DomainNotFoundException extends NotFoundException {
|
public class DomainNotFoundException extends NotFoundException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public DomainNotFoundException(String domain, String msg) {
|
public DomainNotFoundException(String domain, String msg) {
|
||||||
super(domain, msg);
|
super(domain, msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
/** This exception is thrown when a method is called with invalid argument. */
|
/** This exception is thrown when a method is called with invalid argument. */
|
||||||
public class InvalidArgumentException extends TaskanaException {
|
public class InvalidArgumentException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public InvalidArgumentException(String msg) {
|
public InvalidArgumentException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
/** This exception is used to communicate a not authorized user. */
|
/** This exception is used to communicate a not authorized user. */
|
||||||
public class NotAuthorizedException extends TaskanaException {
|
public class NotAuthorizedException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 21235L;
|
|
||||||
private final String currentUserId;
|
private final String currentUserId;
|
||||||
|
|
||||||
public NotAuthorizedException(String msg, String currentUserId) {
|
public NotAuthorizedException(String msg, String currentUserId) {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
/** This exception will be thrown if a specific object is not in the database. */
|
/** This exception will be thrown if a specific object is not in the database. */
|
||||||
public class NotFoundException extends TaskanaException {
|
public class NotFoundException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
private final String id;
|
private final String id;
|
||||||
|
|
||||||
public NotFoundException(String id, String message) {
|
public NotFoundException(String id, String message) {
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
/** This exception is thrown when a generic taskana problem is encountered. */
|
/** This exception is thrown when a generic taskana problem is encountered. */
|
||||||
public class SystemException extends TaskanaRuntimeException {
|
public class SystemException extends TaskanaRuntimeException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public SystemException(String msg) {
|
public SystemException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
/** common base class for Taskana's checked exceptions. */
|
/** common base class for Taskana's checked exceptions. */
|
||||||
public class TaskanaException extends Exception {
|
public class TaskanaException extends Exception {
|
||||||
|
|
||||||
private static final long serialVersionUID = 123234345123412L;
|
|
||||||
|
|
||||||
public TaskanaException() {
|
public TaskanaException() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
/** Common base class for Taskana's runtime exceptions. */
|
/** Common base class for Taskana's runtime exceptions. */
|
||||||
public class TaskanaRuntimeException extends RuntimeException {
|
public class TaskanaRuntimeException extends RuntimeException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1511142769801824L;
|
|
||||||
|
|
||||||
public TaskanaRuntimeException() {
|
public TaskanaRuntimeException() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
*/
|
*/
|
||||||
public class UnsupportedDatabaseException extends RuntimeException {
|
public class UnsupportedDatabaseException extends RuntimeException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public UnsupportedDatabaseException(String name) {
|
public UnsupportedDatabaseException(String name) {
|
||||||
super("Database with '" + name + "' not found");
|
super("Database with '" + name + "' not found");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@ package pro.taskana.common.api.exceptions;
|
||||||
|
|
||||||
public class WrongCustomHolidayFormatException extends TaskanaException {
|
public class WrongCustomHolidayFormatException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = -7644923780787018797L;
|
|
||||||
|
|
||||||
public WrongCustomHolidayFormatException(String message) {
|
public WrongCustomHolidayFormatException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
|
||||||
/** Thrown, when a classification does already exits, but wanted to create with same ID+domain. */
|
/** Thrown, when a classification does already exits, but wanted to create with same ID+domain. */
|
||||||
public class ClassificationAlreadyExistException extends TaskanaException {
|
public class ClassificationAlreadyExistException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 4716611657569005013L;
|
|
||||||
|
|
||||||
public ClassificationAlreadyExistException(Classification classification) {
|
public ClassificationAlreadyExistException(Classification classification) {
|
||||||
super(
|
super(
|
||||||
"ID='"
|
"ID='"
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
|
||||||
/** Thrown if a specific task is not in the database. */
|
/** Thrown if a specific task is not in the database. */
|
||||||
public class ClassificationInUseException extends TaskanaException {
|
public class ClassificationInUseException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public ClassificationInUseException(String msg) {
|
public ClassificationInUseException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import pro.taskana.common.api.exceptions.NotFoundException;
|
||||||
/** Thrown if a specific task is not in the database. */
|
/** Thrown if a specific task is not in the database. */
|
||||||
public class ClassificationNotFoundException extends NotFoundException {
|
public class ClassificationNotFoundException extends NotFoundException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
private String key;
|
private String key;
|
||||||
private String domain;
|
private String domain;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ import pro.taskana.common.api.exceptions.NotFoundException;
|
||||||
|
|
||||||
public class TaskanaHistoryEventNotFoundException extends NotFoundException {
|
public class TaskanaHistoryEventNotFoundException extends NotFoundException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public TaskanaHistoryEventNotFoundException(String id, String msg) {
|
public TaskanaHistoryEventNotFoundException(String id, String msg) {
|
||||||
super(id, msg);
|
super(id, msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
|
||||||
*/
|
*/
|
||||||
public class AttachmentPersistenceException extends TaskanaException {
|
public class AttachmentPersistenceException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 123L;
|
|
||||||
|
|
||||||
public AttachmentPersistenceException(String msg, Throwable cause) {
|
public AttachmentPersistenceException(String msg, Throwable cause) {
|
||||||
super(msg, cause);
|
super(msg, cause);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
|
||||||
|
|
||||||
/** This exception is thrown when the task state doesn't allow the requested operation. */
|
/** This exception is thrown when the task state doesn't allow the requested operation. */
|
||||||
public class InvalidOwnerException extends TaskanaException {
|
public class InvalidOwnerException extends TaskanaException {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public InvalidOwnerException(String msg) {
|
public InvalidOwnerException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
|
||||||
|
|
||||||
/** This exception is thrown when the task state doesn't allow the requested operation. */
|
/** This exception is thrown when the task state doesn't allow the requested operation. */
|
||||||
public class InvalidStateException extends TaskanaException {
|
public class InvalidStateException extends TaskanaException {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public InvalidStateException(String msg) {
|
public InvalidStateException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
|
||||||
*/
|
*/
|
||||||
public class TaskAlreadyExistException extends TaskanaException {
|
public class TaskAlreadyExistException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public TaskAlreadyExistException(String id) {
|
public TaskAlreadyExistException(String id) {
|
||||||
super(id);
|
super(id);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.NotFoundException;
|
||||||
/** This exception will be thrown if a specific task comment is not in the database. */
|
/** This exception will be thrown if a specific task comment is not in the database. */
|
||||||
public class TaskCommentNotFoundException extends NotFoundException {
|
public class TaskCommentNotFoundException extends NotFoundException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public TaskCommentNotFoundException(String id, String msg) {
|
public TaskCommentNotFoundException(String id, String msg) {
|
||||||
super(id, msg);
|
super(id, msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.NotFoundException;
|
||||||
/** This exception will be thrown if a specific task is not in the database. */
|
/** This exception will be thrown if a specific task is not in the database. */
|
||||||
public class TaskNotFoundException extends NotFoundException {
|
public class TaskNotFoundException extends NotFoundException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public TaskNotFoundException(String id, String msg) {
|
public TaskNotFoundException(String id, String msg) {
|
||||||
super(id, msg);
|
super(id, msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
|
||||||
/** This exception will be thrown if a specific task is not in the database. */
|
/** This exception will be thrown if a specific task is not in the database. */
|
||||||
public class UpdateFailedException extends TaskanaException {
|
public class UpdateFailedException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public UpdateFailedException(String msg) {
|
public UpdateFailedException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
|
||||||
*/
|
*/
|
||||||
public class InvalidWorkbasketException extends TaskanaException {
|
public class InvalidWorkbasketException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public InvalidWorkbasketException(String msg) {
|
public InvalidWorkbasketException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.TaskanaRuntimeException;
|
||||||
/** This exception is used to communicate that a user is not authorized to query a Workbasket. */
|
/** This exception is used to communicate that a user is not authorized to query a Workbasket. */
|
||||||
public class NotAuthorizedToQueryWorkbasketException extends TaskanaRuntimeException {
|
public class NotAuthorizedToQueryWorkbasketException extends TaskanaRuntimeException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
public NotAuthorizedToQueryWorkbasketException(String msg) {
|
public NotAuthorizedToQueryWorkbasketException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
|
||||||
import pro.taskana.workbasket.api.models.WorkbasketAccessItem;
|
import pro.taskana.workbasket.api.models.WorkbasketAccessItem;
|
||||||
|
|
||||||
public class WorkbasketAccessItemAlreadyExistException extends TaskanaException {
|
public class WorkbasketAccessItemAlreadyExistException extends TaskanaException {
|
||||||
private static final long serialVersionUID = 4716611657569005013L;
|
|
||||||
|
|
||||||
public WorkbasketAccessItemAlreadyExistException(WorkbasketAccessItem accessItem) {
|
public WorkbasketAccessItemAlreadyExistException(WorkbasketAccessItem accessItem) {
|
||||||
super(
|
super(
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@ import pro.taskana.workbasket.api.models.Workbasket;
|
||||||
/** Thrown, when a workbasket does already exits, but wanted to create with same ID. */
|
/** Thrown, when a workbasket does already exits, but wanted to create with same ID. */
|
||||||
public class WorkbasketAlreadyExistException extends TaskanaException {
|
public class WorkbasketAlreadyExistException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 6115013L;
|
|
||||||
|
|
||||||
public WorkbasketAlreadyExistException(Workbasket workbasket) {
|
public WorkbasketAlreadyExistException(Workbasket workbasket) {
|
||||||
super(
|
super(
|
||||||
"ID='"
|
"ID='"
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@ import pro.taskana.common.api.exceptions.TaskanaException;
|
||||||
/** Thrown if a specific Workbasket does have content and should be deleted. */
|
/** Thrown if a specific Workbasket does have content and should be deleted. */
|
||||||
public class WorkbasketInUseException extends TaskanaException {
|
public class WorkbasketInUseException extends TaskanaException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1234L;
|
|
||||||
|
|
||||||
public WorkbasketInUseException(String msg) {
|
public WorkbasketInUseException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import pro.taskana.common.api.exceptions.NotFoundException;
|
||||||
/** This exception will be thrown if a specific workbasket is not in the database. */
|
/** This exception will be thrown if a specific workbasket is not in the database. */
|
||||||
public class WorkbasketNotFoundException extends NotFoundException {
|
public class WorkbasketNotFoundException extends NotFoundException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
private String key;
|
private String key;
|
||||||
private String domain;
|
private String domain;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -226,6 +226,5 @@ class AccessIdControllerIntTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
static class AccessIdListResource extends ArrayList<AccessIdRepresentationModel> {
|
static class AccessIdListResource extends ArrayList<AccessIdRepresentationModel> {
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue