Lombok no args + serial annotations (#2043)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -12,8 +12,7 @@ package org.eclipse.hawkbit.repository.event;
|
|||||||
import org.springframework.context.ApplicationEvent;
|
import org.springframework.context.ApplicationEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ApplicationEventFilter for hawkBit internal {@link ApplicationEvent}
|
* ApplicationEventFilter for hawkBit internal {@link ApplicationEvent} publishing.
|
||||||
* publishing.
|
|
||||||
*/
|
*/
|
||||||
@FunctionalInterface
|
@FunctionalInterface
|
||||||
public interface ApplicationEventFilter {
|
public interface ApplicationEventFilter {
|
||||||
|
|||||||
@@ -12,6 +12,4 @@ package org.eclipse.hawkbit.repository.event.entity;
|
|||||||
/**
|
/**
|
||||||
* Marker interface to indicate event has created a newly entity.
|
* Marker interface to indicate event has created a newly entity.
|
||||||
*/
|
*/
|
||||||
public interface EntityCreatedEvent extends EntityIdEvent {
|
public interface EntityCreatedEvent extends EntityIdEvent {}
|
||||||
|
|
||||||
}
|
|
||||||
@@ -12,6 +12,4 @@ package org.eclipse.hawkbit.repository.event.entity;
|
|||||||
/**
|
/**
|
||||||
* Marker interface to indicate event has deleted an entity.
|
* Marker interface to indicate event has deleted an entity.
|
||||||
*/
|
*/
|
||||||
public interface EntityDeletedEvent extends EntityIdEvent {
|
public interface EntityDeletedEvent extends EntityIdEvent {}
|
||||||
|
|
||||||
}
|
|
||||||
@@ -30,4 +30,4 @@ public interface EntityIdEvent extends TenantAwareEvent {
|
|||||||
* @return the ID of the entity of this event.
|
* @return the ID of the entity of this event.
|
||||||
*/
|
*/
|
||||||
Long getEntityId();
|
Long getEntityId();
|
||||||
}
|
}
|
||||||
@@ -12,6 +12,4 @@ package org.eclipse.hawkbit.repository.event.entity;
|
|||||||
/**
|
/**
|
||||||
* Marker interface to indicate event has updated an entity.
|
* Marker interface to indicate event has updated an entity.
|
||||||
*/
|
*/
|
||||||
public interface EntityUpdatedEvent extends EntityIdEvent {
|
public interface EntityUpdatedEvent extends EntityIdEvent {}
|
||||||
|
|
||||||
}
|
|
||||||
@@ -9,13 +9,18 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
import org.eclipse.hawkbit.repository.model.Action;
|
import org.eclipse.hawkbit.repository.model.Action;
|
||||||
import org.eclipse.hawkbit.repository.model.ActionProperties;
|
import org.eclipse.hawkbit.repository.model.ActionProperties;
|
||||||
|
|
||||||
@@ -23,19 +28,16 @@ import org.eclipse.hawkbit.repository.model.ActionProperties;
|
|||||||
* Abstract class providing information about an assignment.
|
* Abstract class providing information about an assignment.
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PROTECTED) // for serialization libs like jackson
|
||||||
public abstract class AbstractAssignmentEvent extends RemoteTenantAwareEvent {
|
public abstract class AbstractAssignmentEvent extends RemoteTenantAwareEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final Map<String, ActionProperties> actions = new HashMap<>();
|
private final Map<String, ActionProperties> actions = new HashMap<>();
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
protected AbstractAssignmentEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
protected AbstractAssignmentEvent(final Object source, final Action a, final String applicationId) {
|
protected AbstractAssignmentEvent(final Object source, final Action a, final String applicationId) {
|
||||||
super(source, a.getTenant(), applicationId);
|
super(source, a.getTenant(), applicationId);
|
||||||
actions.put(a.getTarget().getControllerId(), new ActionProperties(a));
|
actions.put(a.getTarget().getControllerId(), new ActionProperties(a));
|
||||||
|
|||||||
@@ -9,25 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.model.Action;
|
import org.eclipse.hawkbit.repository.model.Action;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event that gets sent when the assignment of a distribution set to a target
|
* Event that gets sent when the assignment of a distribution set to a target gets canceled.
|
||||||
* gets canceled.
|
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class CancelTargetAssignmentEvent extends AbstractAssignmentEvent {
|
public class CancelTargetAssignmentEvent extends AbstractAssignmentEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public CancelTargetAssignmentEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
public CancelTargetAssignmentEvent(final Action a, final String applicationId) {
|
public CancelTargetAssignmentEvent(final Action a, final String applicationId) {
|
||||||
super(applicationId, a, applicationId);
|
super(applicationId, a, applicationId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -16,17 +20,12 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event for deletion of {@link DistributionSet}.
|
* Defines the remote event for deletion of {@link DistributionSet}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class DistributionSetDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
public class DistributionSetDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public DistributionSetDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -38,4 +37,4 @@ public class DistributionSetDeletedEvent extends RemoteIdEvent implements Entity
|
|||||||
final Class<? extends TenantAwareBaseEntity> entityClass, final String applicationId) {
|
final Class<? extends TenantAwareBaseEntity> entityClass, final String applicationId) {
|
||||||
super(entityId, tenant, entityClass, applicationId);
|
super(entityId, tenant, entityClass, applicationId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSetTag;
|
import org.eclipse.hawkbit.repository.model.DistributionSetTag;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -16,17 +20,12 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the the remote event of delete a {@link DistributionSetTag}.
|
* Defines the the remote event of delete a {@link DistributionSetTag}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class DistributionSetTagDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
public class DistributionSetTagDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public DistributionSetTagDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for json serialization.
|
* Constructor for json serialization.
|
||||||
*
|
*
|
||||||
@@ -35,9 +34,9 @@ public class DistributionSetTagDeletedEvent extends RemoteIdEvent implements Ent
|
|||||||
* @param entityClass the entity class
|
* @param entityClass the entity class
|
||||||
* @param applicationId the origin application id
|
* @param applicationId the origin application id
|
||||||
*/
|
*/
|
||||||
|
public DistributionSetTagDeletedEvent(
|
||||||
public DistributionSetTagDeletedEvent(final String tenant, final Long entityId,
|
final String tenant, final Long entityId,
|
||||||
final Class<? extends TenantAwareBaseEntity> entityClass, final String applicationId) {
|
final Class<? extends TenantAwareBaseEntity> entityClass, final String applicationId) {
|
||||||
super(entityId, tenant, entityClass, applicationId);
|
super(entityId, tenant, entityClass, applicationId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -16,17 +20,12 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event of deleting a {@link DistributionSetType}.
|
* Defines the remote event of deleting a {@link DistributionSetType}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class DistributionSetTypeDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
public class DistributionSetTypeDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public DistributionSetTypeDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for json serialization.
|
* Constructor for json serialization.
|
||||||
*
|
*
|
||||||
@@ -39,5 +38,4 @@ public class DistributionSetTypeDeletedEvent extends RemoteIdEvent implements En
|
|||||||
final Class<? extends TenantAwareBaseEntity> entityClass, final String applicationId) {
|
final Class<? extends TenantAwareBaseEntity> entityClass, final String applicationId) {
|
||||||
super(entityId, tenant, entityClass, applicationId);
|
super(entityId, tenant, entityClass, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,25 +9,24 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.model.ActionStatus;
|
import org.eclipse.hawkbit.repository.model.ActionStatus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TenantAwareEvent that contains an updated download progress for a given
|
* TenantAwareEvent that contains an updated download progress for a given
|
||||||
* ActionStatus that was written for a download request.
|
* ActionStatus that was written for a download request.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class DownloadProgressEvent extends RemoteTenantAwareEvent {
|
public class DownloadProgressEvent extends RemoteTenantAwareEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private long shippedBytesSinceLast;
|
private long shippedBytesSinceLast;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public DownloadProgressEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -45,5 +44,4 @@ public class DownloadProgressEvent extends RemoteTenantAwareEvent {
|
|||||||
public long getShippedBytesSinceLast() {
|
public long getShippedBytesSinceLast() {
|
||||||
return shippedBytesSinceLast;
|
return shippedBytesSinceLast;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -26,5 +26,4 @@ public interface EventEntityManager {
|
|||||||
* @return the entity
|
* @return the entity
|
||||||
*/
|
*/
|
||||||
<E extends TenantAwareBaseEntity> E findEntity(String tenant, Long id, Class<E> entityType);
|
<E extends TenantAwareBaseEntity> E findEntity(String tenant, Long id, Class<E> entityType);
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,12 +9,14 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A singleton bean which holds the event entity manager to have autowiring in
|
* A singleton bean which holds the event entity manager to have autowiring in the events.
|
||||||
* the events.
|
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
public final class EventEntityManagerHolder {
|
public final class EventEntityManagerHolder {
|
||||||
|
|
||||||
private static final EventEntityManagerHolder SINGLETON = new EventEntityManagerHolder();
|
private static final EventEntityManagerHolder SINGLETON = new EventEntityManagerHolder();
|
||||||
@@ -22,10 +24,6 @@ public final class EventEntityManagerHolder {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private EventEntityManager eventEntityManager;
|
private EventEntityManager eventEntityManager;
|
||||||
|
|
||||||
private EventEntityManagerHolder() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the cache manager holder singleton instance
|
* @return the cache manager holder singleton instance
|
||||||
*/
|
*/
|
||||||
@@ -39,4 +37,4 @@ public final class EventEntityManagerHolder {
|
|||||||
public EventEntityManager getEventEntityManager() {
|
public EventEntityManager getEventEntityManager() {
|
||||||
return eventEntityManager;
|
return eventEntityManager;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
@@ -25,6 +26,7 @@ import org.eclipse.hawkbit.repository.model.Action;
|
|||||||
@NoArgsConstructor(access = AccessLevel.PUBLIC)
|
@NoArgsConstructor(access = AccessLevel.PUBLIC)
|
||||||
public class MultiActionAssignEvent extends MultiActionEvent {
|
public class MultiActionAssignEvent extends MultiActionEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,11 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.model.Action;
|
import org.eclipse.hawkbit.repository.model.Action;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -20,17 +23,12 @@ import org.eclipse.hawkbit.repository.model.Action;
|
|||||||
* actionIds containing the identifiers of the affected actions
|
* actionIds containing the identifiers of the affected actions
|
||||||
* as payload. This event is only published in case of an cancellation.
|
* as payload. This event is only published in case of an cancellation.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class MultiActionCancelEvent extends MultiActionEvent {
|
public class MultiActionCancelEvent extends MultiActionEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public MultiActionCancelEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -9,12 +9,17 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
import org.eclipse.hawkbit.repository.Identifiable;
|
import org.eclipse.hawkbit.repository.Identifiable;
|
||||||
import org.eclipse.hawkbit.repository.model.Action;
|
import org.eclipse.hawkbit.repository.model.Action;
|
||||||
import org.eclipse.hawkbit.repository.model.Target;
|
import org.eclipse.hawkbit.repository.model.Target;
|
||||||
@@ -26,20 +31,17 @@ import org.eclipse.hawkbit.repository.model.Target;
|
|||||||
* an update).
|
* an update).
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PROTECTED) // for serialization libs like jackson
|
||||||
public abstract class MultiActionEvent extends RemoteTenantAwareEvent implements Iterable<String> {
|
public abstract class MultiActionEvent extends RemoteTenantAwareEvent implements Iterable<String> {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final List<String> controllerIds = new ArrayList<>();
|
private final List<String> controllerIds = new ArrayList<>();
|
||||||
private final List<Long> actionIds = new ArrayList<>();
|
private final List<Long> actionIds = new ArrayList<>();
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
protected MultiActionEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -66,5 +68,4 @@ public abstract class MultiActionEvent extends RemoteTenantAwareEvent implements
|
|||||||
private static List<Long> getIdsFromActions(final List<Action> actions) {
|
private static List<Long> getIdsFromActions(final List<Action> actions) {
|
||||||
return actions.stream().map(Identifiable::getId).collect(Collectors.toList());
|
return actions.stream().map(Identifiable::getId).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -12,8 +12,10 @@ package org.eclipse.hawkbit.repository.event.remote;
|
|||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
|
||||||
import com.cronutils.utils.StringUtils;
|
import com.cronutils.utils.StringUtils;
|
||||||
|
import lombok.AccessLevel;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import org.eclipse.hawkbit.repository.event.TenantAwareEvent;
|
import org.eclipse.hawkbit.repository.event.TenantAwareEvent;
|
||||||
import org.springframework.cloud.bus.event.RemoteApplicationEvent;
|
import org.springframework.cloud.bus.event.RemoteApplicationEvent;
|
||||||
@@ -26,6 +28,7 @@ import org.springframework.cloud.bus.event.RemoteApplicationEvent;
|
|||||||
@Getter
|
@Getter
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PROTECTED) // for serialization libs like jackson
|
||||||
public class RemoteTenantAwareEvent extends RemoteApplicationEvent implements TenantAwareEvent {
|
public class RemoteTenantAwareEvent extends RemoteApplicationEvent implements TenantAwareEvent {
|
||||||
|
|
||||||
@Serial
|
@Serial
|
||||||
@@ -33,13 +36,6 @@ public class RemoteTenantAwareEvent extends RemoteApplicationEvent implements Te
|
|||||||
|
|
||||||
private String tenant;
|
private String tenant;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
protected RemoteTenantAwareEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.Rollout;
|
import org.eclipse.hawkbit.repository.model.Rollout;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -16,17 +20,12 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event of deleting a {@link Rollout}.
|
* Defines the remote event of deleting a {@link Rollout}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class RolloutDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
public class RolloutDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public RolloutDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for json serialization.
|
* Constructor for json serialization.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.RolloutGroup;
|
import org.eclipse.hawkbit.repository.model.RolloutGroup;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -16,17 +20,12 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event of deleting a {@link RolloutGroup}.
|
* Defines the remote event of deleting a {@link RolloutGroup}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class RolloutGroupDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
public class RolloutGroupDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public RolloutGroupDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for json serialization.
|
* Constructor for json serialization.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -9,39 +9,42 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event that is published when a rollout is stopped due to invalidation of a
|
* Event that is published when a rollout is stopped due to invalidation of a
|
||||||
* {@link DistributionSet}.
|
* {@link DistributionSet}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
public class RolloutStoppedEvent extends RemoteTenantAwareEvent {
|
public class RolloutStoppedEvent extends RemoteTenantAwareEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private Collection<Long> rolloutGroupIds;
|
private Collection<Long> rolloutGroupIds;
|
||||||
private long rolloutId;
|
private long rolloutId;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public RolloutStoppedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for json serialization.
|
* Constructor for json serialization.
|
||||||
*
|
*
|
||||||
* @param tenant the tenant
|
* @param tenant the tenant
|
||||||
* @param entityId the entity id
|
* @param applicationId the entity id
|
||||||
* @param entityClass the entity class
|
* @param rolloutId the entity class (and source)
|
||||||
* @param applicationId the origin application id
|
* @param rolloutGroupIds the rollouts group ids
|
||||||
*/
|
*/
|
||||||
public RolloutStoppedEvent(final String tenant, final String applicationId, final long rolloutId,
|
public RolloutStoppedEvent(
|
||||||
|
final String tenant, final String applicationId, final long rolloutId,
|
||||||
final Collection<Long> rolloutGroupIds) {
|
final Collection<Long> rolloutGroupIds) {
|
||||||
super(rolloutId, tenant, applicationId);
|
super(rolloutId, tenant, applicationId);
|
||||||
this.rolloutId = rolloutId;
|
this.rolloutId = rolloutId;
|
||||||
|
|||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -16,17 +20,12 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event of deleting a {@link SoftwareModule}.
|
* Defines the remote event of deleting a {@link SoftwareModule}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class SoftwareModuleDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
public class SoftwareModuleDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public SoftwareModuleDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for json serialization.
|
* Constructor for json serialization.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -16,17 +20,12 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event of deleting a {@link SoftwareModuleType}.
|
* Defines the remote event of deleting a {@link SoftwareModuleType}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class SoftwareModuleTypeDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
public class SoftwareModuleTypeDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public SoftwareModuleTypeDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for json serialization.
|
* Constructor for json serialization.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -64,4 +64,4 @@ public class TargetAssignDistributionSetEvent extends AbstractAssignmentEvent {
|
|||||||
this(action.getTenant(), action.getDistributionSet().getId(), Collections.singletonList(action), applicationId,
|
this(action.getTenant(), action.getDistributionSet().getId(), Collections.singletonList(action), applicationId,
|
||||||
action.isMaintenanceWindowAvailable());
|
action.isMaintenanceWindowAvailable());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,8 +11,10 @@ package org.eclipse.hawkbit.repository.event.remote;
|
|||||||
|
|
||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import org.eclipse.hawkbit.repository.model.Target;
|
import org.eclipse.hawkbit.repository.model.Target;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -20,6 +22,7 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event of triggering attribute updates of a {@link Target}.
|
* Defines the remote event of triggering attribute updates of a {@link Target}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
@Getter
|
@Getter
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
@@ -31,13 +34,6 @@ public class TargetAttributesRequestedEvent extends RemoteIdEvent {
|
|||||||
private String controllerId;
|
private String controllerId;
|
||||||
private String targetAddress;
|
private String targetAddress;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetAttributesRequestedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor json serialization
|
* Constructor json serialization
|
||||||
*
|
*
|
||||||
@@ -55,4 +51,4 @@ public class TargetAttributesRequestedEvent extends RemoteIdEvent {
|
|||||||
this.controllerId = controllerId;
|
this.controllerId = controllerId;
|
||||||
this.targetAddress = targetAddress;
|
this.targetAddress = targetAddress;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,8 +11,10 @@ package org.eclipse.hawkbit.repository.event.remote;
|
|||||||
|
|
||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.Target;
|
import org.eclipse.hawkbit.repository.model.Target;
|
||||||
@@ -21,6 +23,7 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event of deleting a {@link Target}.
|
* Defines the remote event of deleting a {@link Target}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
@Getter
|
@Getter
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
@@ -32,13 +35,6 @@ public class TargetDeletedEvent extends RemoteIdEvent implements EntityDeletedEv
|
|||||||
private String controllerId;
|
private String controllerId;
|
||||||
private String targetAddress;
|
private String targetAddress;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param tenant the tenant
|
* @param tenant the tenant
|
||||||
* @param entityId the entity id
|
* @param entityId the entity id
|
||||||
|
|||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TargetFilterQuery;
|
import org.eclipse.hawkbit.repository.model.TargetFilterQuery;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -16,17 +20,12 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event of deleting a {@link TargetFilterQuery}.
|
* Defines the remote event of deleting a {@link TargetFilterQuery}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class TargetFilterQueryDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
public class TargetFilterQueryDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 2L;
|
private static final long serialVersionUID = 2L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetFilterQueryDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param tenant the tenant
|
* @param tenant the tenant
|
||||||
* @param entityId the entity id
|
* @param entityId the entity id
|
||||||
@@ -37,4 +36,4 @@ public class TargetFilterQueryDeletedEvent extends RemoteIdEvent implements Enti
|
|||||||
final Class<? extends TenantAwareBaseEntity> entityClass, final String applicationId) {
|
final Class<? extends TenantAwareBaseEntity> entityClass, final String applicationId) {
|
||||||
super(entityId, tenant, entityClass, applicationId);
|
super(entityId, tenant, entityClass, applicationId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,14 +11,17 @@ package org.eclipse.hawkbit.repository.event.remote;
|
|||||||
|
|
||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import org.eclipse.hawkbit.repository.model.Target;
|
import org.eclipse.hawkbit.repository.model.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event is send in case a target polls either through DDI or DMF.
|
* Event is send in case a target polls either through DDI or DMF.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
@Getter
|
@Getter
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
@@ -28,14 +31,7 @@ public class TargetPollEvent extends RemoteTenantAwareEvent {
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private String controllerId;
|
private String controllerId;
|
||||||
private String targetAdress;
|
private String targetAdress; // TODO - check if could be renamed fixing spelling
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetPollEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
public TargetPollEvent(final String controllerId, final String tenant, final String applicationId) {
|
public TargetPollEvent(final String controllerId, final String tenant, final String applicationId) {
|
||||||
super(controllerId, tenant, applicationId);
|
super(controllerId, tenant, applicationId);
|
||||||
|
|||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TargetTag;
|
import org.eclipse.hawkbit.repository.model.TargetTag;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -16,17 +20,12 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event of delete a {@link TargetTag}.
|
* Defines the remote event of delete a {@link TargetTag}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class TargetTagDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
public class TargetTagDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetTagDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for json serialization.
|
* Constructor for json serialization.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote;
|
package org.eclipse.hawkbit.repository.event.remote;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityDeletedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TargetType;
|
import org.eclipse.hawkbit.repository.model.TargetType;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||||
@@ -16,17 +20,12 @@ import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event of deleting a {@link TargetType}.
|
* Defines the remote event of deleting a {@link TargetType}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class TargetTypeDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
public class TargetTypeDeletedEvent extends RemoteIdEvent implements EntityDeletedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetTypeDeletedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for json serialization.
|
* Constructor for json serialization.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import org.eclipse.hawkbit.repository.model.Action;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ToString(callSuper = false)
|
@ToString
|
||||||
public abstract class AbstractActionEvent extends RemoteEntityEvent<Action> {
|
public abstract class AbstractActionEvent extends RemoteEntityEvent<Action> {
|
||||||
|
|
||||||
@Serial
|
@Serial
|
||||||
@@ -50,7 +50,8 @@ public abstract class AbstractActionEvent extends RemoteEntityEvent<Action> {
|
|||||||
* @param rolloutGroupId rollout group identifier (optional)
|
* @param rolloutGroupId rollout group identifier (optional)
|
||||||
* @param applicationId the origin application id
|
* @param applicationId the origin application id
|
||||||
*/
|
*/
|
||||||
protected AbstractActionEvent(final Action action, final Long targetId, final Long rolloutId,
|
protected AbstractActionEvent(
|
||||||
|
final Action action, final Long targetId, final Long rolloutId,
|
||||||
final Long rolloutGroupId, final String applicationId) {
|
final Long rolloutGroupId, final String applicationId) {
|
||||||
super(action, applicationId);
|
super(action, applicationId);
|
||||||
this.targetId = targetId;
|
this.targetId = targetId;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.repository.model.RolloutGroup;
|
import org.eclipse.hawkbit.repository.model.RolloutGroup;
|
||||||
@@ -18,6 +19,7 @@ import org.eclipse.hawkbit.repository.model.RolloutGroup;
|
|||||||
*/
|
*/
|
||||||
public abstract class AbstractRolloutGroupEvent extends RemoteEntityEvent<RolloutGroup> {
|
public abstract class AbstractRolloutGroupEvent extends RemoteEntityEvent<RolloutGroup> {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final Long rolloutId;
|
private final Long rolloutId;
|
||||||
|
|||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.Action;
|
import org.eclipse.hawkbit.repository.model.Action;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of creating a new {@link Action}.
|
* Defines the remote event of creating a new {@link Action}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class ActionCreatedEvent extends AbstractActionEvent implements EntityCreatedEvent {
|
public class ActionCreatedEvent extends AbstractActionEvent implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 2L;
|
private static final long serialVersionUID = 2L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public ActionCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
@@ -35,9 +34,8 @@ public class ActionCreatedEvent extends AbstractActionEvent implements EntityCre
|
|||||||
* @param rolloutGroupId rollout group identifier (optional)
|
* @param rolloutGroupId rollout group identifier (optional)
|
||||||
* @param applicationId the origin application id
|
* @param applicationId the origin application id
|
||||||
*/
|
*/
|
||||||
public ActionCreatedEvent(final Action action, final Long targetId, final Long rolloutId, final Long rolloutGroupId,
|
public ActionCreatedEvent(
|
||||||
final String applicationId) {
|
final Action action, final Long targetId, final Long rolloutId, final Long rolloutGroupId, final String applicationId) {
|
||||||
super(action, targetId, rolloutId, rolloutGroupId, applicationId);
|
super(action, targetId, rolloutId, rolloutGroupId, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.Action;
|
import org.eclipse.hawkbit.repository.model.Action;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of updated a {@link Action}.
|
* Defines the remote event of updated a {@link Action}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class ActionUpdatedEvent extends AbstractActionEvent implements EntityUpdatedEvent {
|
public class ActionUpdatedEvent extends AbstractActionEvent implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 2L;
|
private static final long serialVersionUID = 2L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public ActionUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
@@ -35,8 +34,8 @@ public class ActionUpdatedEvent extends AbstractActionEvent implements EntityUpd
|
|||||||
* @param rolloutGroupId rollout group identifier (optional)
|
* @param rolloutGroupId rollout group identifier (optional)
|
||||||
* @param applicationId the origin application id
|
* @param applicationId the origin application id
|
||||||
*/
|
*/
|
||||||
public ActionUpdatedEvent(final Action action, final Long targetId, final Long rolloutId, final Long rolloutGroupId,
|
public ActionUpdatedEvent(
|
||||||
final String applicationId) {
|
final Action action, final Long targetId, final Long rolloutId, final Long rolloutGroupId, final String applicationId) {
|
||||||
super(action, targetId, rolloutId, rolloutGroupId, applicationId);
|
super(action, targetId, rolloutId, rolloutGroupId, applicationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the the remote of creating a new {@link DistributionSet}.
|
* Defines the remote of creating a new {@link DistributionSet}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class DistributionSetCreatedEvent extends RemoteEntityEvent<DistributionSet> implements EntityCreatedEvent {
|
public class DistributionSetCreatedEvent extends RemoteEntityEvent<DistributionSet> implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public DistributionSetCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -35,5 +34,4 @@ public class DistributionSetCreatedEvent extends RemoteEntityEvent<DistributionS
|
|||||||
public DistributionSetCreatedEvent(final DistributionSet distributionSet, final String applicationId) {
|
public DistributionSetCreatedEvent(final DistributionSet distributionSet, final String applicationId) {
|
||||||
super(distributionSet, applicationId);
|
super(distributionSet, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSetTag;
|
import org.eclipse.hawkbit.repository.model.DistributionSetTag;
|
||||||
|
|
||||||
@@ -16,18 +20,12 @@ import org.eclipse.hawkbit.repository.model.DistributionSetTag;
|
|||||||
* Defines the {@link RemoteEntityEvent} for creation of a new
|
* Defines the {@link RemoteEntityEvent} for creation of a new
|
||||||
* {@link DistributionSetTag}.
|
* {@link DistributionSetTag}.
|
||||||
*/
|
*/
|
||||||
public class DistributionSetTagCreatedEvent extends RemoteEntityEvent<DistributionSetTag>
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
implements EntityCreatedEvent {
|
public class DistributionSetTagCreatedEvent extends RemoteEntityEvent<DistributionSetTag> implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public DistributionSetTagCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -37,4 +35,4 @@ public class DistributionSetTagCreatedEvent extends RemoteEntityEvent<Distributi
|
|||||||
public DistributionSetTagCreatedEvent(final DistributionSetTag tag, final String applicationId) {
|
public DistributionSetTagCreatedEvent(final DistributionSetTag tag, final String applicationId) {
|
||||||
super(tag, applicationId);
|
super(tag, applicationId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,24 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSetTag;
|
import org.eclipse.hawkbit.repository.model.DistributionSetTag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event for update a {@link DistributionSetTag}.
|
* Defines the remote event for update a {@link DistributionSetTag}.
|
||||||
*/
|
*/
|
||||||
public class DistributionSetTagUpdatedEvent extends RemoteEntityEvent<DistributionSetTag>
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
implements EntityUpdatedEvent {
|
public class DistributionSetTagUpdatedEvent extends RemoteEntityEvent<DistributionSetTag> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public DistributionSetTagUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -36,4 +34,4 @@ public class DistributionSetTagUpdatedEvent extends RemoteEntityEvent<Distributi
|
|||||||
public DistributionSetTagUpdatedEvent(final DistributionSetTag tag, final String applicationId) {
|
public DistributionSetTagUpdatedEvent(final DistributionSetTag tag, final String applicationId) {
|
||||||
super(tag, applicationId);
|
super(tag, applicationId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,24 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of creating a new {@link DistributionSetType}.
|
* Defines the remote event of creating a new {@link DistributionSetType}.
|
||||||
*/
|
*/
|
||||||
public class DistributionSetTypeCreatedEvent extends RemoteEntityEvent<DistributionSetType>
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
implements EntityCreatedEvent {
|
public class DistributionSetTypeCreatedEvent extends RemoteEntityEvent<DistributionSetType> implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public DistributionSetTypeCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -36,5 +34,4 @@ public class DistributionSetTypeCreatedEvent extends RemoteEntityEvent<Distribut
|
|||||||
public DistributionSetTypeCreatedEvent(final DistributionSetType baseEntity, final String applicationId) {
|
public DistributionSetTypeCreatedEvent(final DistributionSetType baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,6 +9,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
||||||
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
||||||
@@ -16,18 +20,12 @@ import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
|||||||
/**
|
/**
|
||||||
* Defines the remote event for updating a {@link SoftwareModuleType}.
|
* Defines the remote event for updating a {@link SoftwareModuleType}.
|
||||||
*/
|
*/
|
||||||
public class DistributionSetTypeUpdatedEvent extends RemoteEntityEvent<DistributionSetType>
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
implements EntityUpdatedEvent {
|
public class DistributionSetTypeUpdatedEvent extends RemoteEntityEvent<DistributionSetType> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public DistributionSetTypeUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -37,5 +35,4 @@ public class DistributionSetTypeUpdatedEvent extends RemoteEntityEvent<Distribut
|
|||||||
public DistributionSetTypeUpdatedEvent(final DistributionSetType baseEntity, final String applicationId) {
|
public DistributionSetTypeUpdatedEvent(final DistributionSetType baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,32 +9,30 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event for updating a {@link DistributionSet}.
|
* Defines the remote event for updating a {@link DistributionSet}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class DistributionSetUpdatedEvent extends RemoteEntityEvent<DistributionSet> implements EntityUpdatedEvent {
|
public class DistributionSetUpdatedEvent extends RemoteEntityEvent<DistributionSet> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private boolean complete;
|
private boolean complete;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public DistributionSetUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param ds Distribution Set
|
* @param ds Distribution Set
|
||||||
* @param applicationId the origin application id
|
* @param applicationId the origin application id
|
||||||
* @param complete <code>true</code> if {@link DistributionSet} is after the
|
* @param complete <code>true</code> if {@link DistributionSet} is after the update {@link DistributionSet#isComplete()}
|
||||||
* update {@link DistributionSet#isComplete()}
|
|
||||||
*/
|
*/
|
||||||
public DistributionSetUpdatedEvent(final DistributionSet ds, final String applicationId, final boolean complete) {
|
public DistributionSetUpdatedEvent(final DistributionSet ds, final String applicationId, final boolean complete) {
|
||||||
super(ds, applicationId);
|
super(ds, applicationId);
|
||||||
@@ -42,11 +40,9 @@ public class DistributionSetUpdatedEvent extends RemoteEntityEvent<DistributionS
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return <code>true</code> if {@link DistributionSet} is after the update
|
* @return <code>true</code> if {@link DistributionSet} is after the update {@link DistributionSet#isComplete()}
|
||||||
* {@link DistributionSet#isComplete()}
|
|
||||||
*/
|
*/
|
||||||
public boolean isComplete() {
|
public boolean isComplete() {
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.Rollout;
|
import org.eclipse.hawkbit.repository.model.Rollout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of creating a new {@link Rollout}.
|
* Defines the remote event of creating a new {@link Rollout}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class RolloutCreatedEvent extends RemoteEntityEvent<Rollout> implements EntityCreatedEvent {
|
public class RolloutCreatedEvent extends RemoteEntityEvent<Rollout> implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public RolloutCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -35,5 +34,4 @@ public class RolloutCreatedEvent extends RemoteEntityEvent<Rollout> implements E
|
|||||||
public RolloutCreatedEvent(final Rollout baseEntity, final String applicationId) {
|
public RolloutCreatedEvent(final Rollout baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,24 +9,23 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.RolloutGroup;
|
import org.eclipse.hawkbit.repository.model.RolloutGroup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TenantAwareEvent definition which is been published in case a rollout group
|
* TenantAwareEvent definition which is being published in case a rollout group
|
||||||
* has been created for a specific rollout.
|
* has been created for a specific rollout.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class RolloutGroupCreatedEvent extends AbstractRolloutGroupEvent implements EntityCreatedEvent {
|
public class RolloutGroupCreatedEvent extends AbstractRolloutGroupEvent implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public RolloutGroupCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
@@ -37,4 +36,4 @@ public class RolloutGroupCreatedEvent extends AbstractRolloutGroupEvent implemen
|
|||||||
public RolloutGroupCreatedEvent(final RolloutGroup rolloutGroup, final Long rolloutId, final String applicationId) {
|
public RolloutGroupCreatedEvent(final RolloutGroup rolloutGroup, final Long rolloutId, final String applicationId) {
|
||||||
super(rolloutGroup, rolloutId, applicationId);
|
super(rolloutGroup, rolloutId, applicationId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.RolloutGroup;
|
import org.eclipse.hawkbit.repository.model.RolloutGroup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of updated a {@link RolloutGroup}.
|
* Defines the remote event of updated a {@link RolloutGroup}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class RolloutGroupUpdatedEvent extends AbstractRolloutGroupEvent implements EntityUpdatedEvent {
|
public class RolloutGroupUpdatedEvent extends AbstractRolloutGroupEvent implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 2L;
|
private static final long serialVersionUID = 2L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public RolloutGroupUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
@@ -36,5 +35,4 @@ public class RolloutGroupUpdatedEvent extends AbstractRolloutGroupEvent implemen
|
|||||||
public RolloutGroupUpdatedEvent(final RolloutGroup rolloutGroup, final Long rolloutId, final String applicationId) {
|
public RolloutGroupUpdatedEvent(final RolloutGroup rolloutGroup, final Long rolloutId, final String applicationId) {
|
||||||
super(rolloutGroup, rolloutId, applicationId);
|
super(rolloutGroup, rolloutId, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.Rollout;
|
import org.eclipse.hawkbit.repository.model.Rollout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of updated a {@link Rollout}.
|
* Defines the remote event of updated a {@link Rollout}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class RolloutUpdatedEvent extends RemoteEntityEvent<Rollout> implements EntityUpdatedEvent {
|
public class RolloutUpdatedEvent extends RemoteEntityEvent<Rollout> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public RolloutUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
@@ -35,5 +34,4 @@ public class RolloutUpdatedEvent extends RemoteEntityEvent<Rollout> implements E
|
|||||||
public RolloutUpdatedEvent(final Rollout rollout, final String applicationId) {
|
public RolloutUpdatedEvent(final Rollout rollout, final String applicationId) {
|
||||||
super(rollout, applicationId);
|
super(rollout, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of creating a new {@link SoftwareModule}.
|
* Defines the remote event of creating a new {@link SoftwareModule}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class SoftwareModuleCreatedEvent extends RemoteEntityEvent<SoftwareModule> implements EntityCreatedEvent {
|
public class SoftwareModuleCreatedEvent extends RemoteEntityEvent<SoftwareModule> implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public SoftwareModuleCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -35,5 +34,4 @@ public class SoftwareModuleCreatedEvent extends RemoteEntityEvent<SoftwareModule
|
|||||||
public SoftwareModuleCreatedEvent(final SoftwareModule baseEntity, final String applicationId) {
|
public SoftwareModuleCreatedEvent(final SoftwareModule baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,24 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of creating a new {@link SoftwareModuleType}.
|
* Defines the remote event of creating a new {@link SoftwareModuleType}.
|
||||||
*/
|
*/
|
||||||
public class SoftwareModuleTypeCreatedEvent extends RemoteEntityEvent<SoftwareModuleType>
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
implements EntityCreatedEvent {
|
public class SoftwareModuleTypeCreatedEvent extends RemoteEntityEvent<SoftwareModuleType> implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public SoftwareModuleTypeCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -36,5 +34,4 @@ public class SoftwareModuleTypeCreatedEvent extends RemoteEntityEvent<SoftwareMo
|
|||||||
public SoftwareModuleTypeCreatedEvent(final SoftwareModuleType baseEntity, final String applicationId) {
|
public SoftwareModuleTypeCreatedEvent(final SoftwareModuleType baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,24 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event for updating a {@link SoftwareModuleType}.
|
* Defines the remote event for updating a {@link SoftwareModuleType}.
|
||||||
*/
|
*/
|
||||||
public class SoftwareModuleTypeUpdatedEvent extends RemoteEntityEvent<SoftwareModuleType>
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
implements EntityUpdatedEvent {
|
public class SoftwareModuleTypeUpdatedEvent extends RemoteEntityEvent<SoftwareModuleType> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public SoftwareModuleTypeUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -36,5 +34,4 @@ public class SoftwareModuleTypeUpdatedEvent extends RemoteEntityEvent<SoftwareMo
|
|||||||
public SoftwareModuleTypeUpdatedEvent(final SoftwareModuleType baseEntity, final String applicationId) {
|
public SoftwareModuleTypeUpdatedEvent(final SoftwareModuleType baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event for updating a {@link SoftwareModule}.
|
* Defines the remote event for updating a {@link SoftwareModule}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class SoftwareModuleUpdatedEvent extends RemoteEntityEvent<SoftwareModule> implements EntityUpdatedEvent {
|
public class SoftwareModuleUpdatedEvent extends RemoteEntityEvent<SoftwareModule> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public SoftwareModuleUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -35,5 +34,4 @@ public class SoftwareModuleUpdatedEvent extends RemoteEntityEvent<SoftwareModule
|
|||||||
public SoftwareModuleUpdatedEvent(final SoftwareModule baseEntity, final String applicationId) {
|
public SoftwareModuleUpdatedEvent(final SoftwareModule baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.Target;
|
import org.eclipse.hawkbit.repository.model.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of creating a new {@link Target}.
|
* Defines the remote event of creating a new {@link Target}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class TargetCreatedEvent extends RemoteEntityEvent<Target> implements EntityCreatedEvent {
|
public class TargetCreatedEvent extends RemoteEntityEvent<Target> implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -35,5 +34,4 @@ public class TargetCreatedEvent extends RemoteEntityEvent<Target> implements Ent
|
|||||||
public TargetCreatedEvent(final Target baseEntity, final String applicationId) {
|
public TargetCreatedEvent(final Target baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,23 +9,19 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TargetFilterQuery;
|
import org.eclipse.hawkbit.repository.model.TargetFilterQuery;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of creating a new {@link TargetFilterQuery}.
|
* Defines the remote event of creating a new {@link TargetFilterQuery}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class TargetFilterQueryCreatedEvent extends RemoteEntityEvent<TargetFilterQuery> implements EntityCreatedEvent {
|
public class TargetFilterQueryCreatedEvent extends RemoteEntityEvent<TargetFilterQuery> implements EntityCreatedEvent {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetFilterQueryCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -35,5 +31,4 @@ public class TargetFilterQueryCreatedEvent extends RemoteEntityEvent<TargetFilte
|
|||||||
public TargetFilterQueryCreatedEvent(final TargetFilterQuery baseEntity, final String applicationId) {
|
public TargetFilterQueryCreatedEvent(final TargetFilterQuery baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TargetFilterQuery;
|
import org.eclipse.hawkbit.repository.model.TargetFilterQuery;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event for updating a {@link TargetFilterQuery}.
|
* Defines the remote event for updating a {@link TargetFilterQuery}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class TargetFilterQueryUpdatedEvent extends RemoteEntityEvent<TargetFilterQuery> implements EntityUpdatedEvent {
|
public class TargetFilterQueryUpdatedEvent extends RemoteEntityEvent<TargetFilterQuery> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetFilterQueryUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -35,5 +34,4 @@ public class TargetFilterQueryUpdatedEvent extends RemoteEntityEvent<TargetFilte
|
|||||||
public TargetFilterQueryUpdatedEvent(final TargetFilterQuery baseEntity, final String applicationId) {
|
public TargetFilterQueryUpdatedEvent(final TargetFilterQuery baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TargetTag;
|
import org.eclipse.hawkbit.repository.model.TargetTag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event for the creation of a new {@link TargetTag}.
|
* Defines the remote event for the creation of a new {@link TargetTag}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class TargetTagCreatedEvent extends RemoteEntityEvent<TargetTag> implements EntityCreatedEvent {
|
public class TargetTagCreatedEvent extends RemoteEntityEvent<TargetTag> implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetTagCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -35,4 +34,4 @@ public class TargetTagCreatedEvent extends RemoteEntityEvent<TargetTag> implemen
|
|||||||
public TargetTagCreatedEvent(final TargetTag tag, final String applicationId) {
|
public TargetTagCreatedEvent(final TargetTag tag, final String applicationId) {
|
||||||
super(tag, applicationId);
|
super(tag, applicationId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TargetTag;
|
import org.eclipse.hawkbit.repository.model.TargetTag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event for updating a {@link TargetTag}.
|
* Defines the remote event for updating a {@link TargetTag}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class TargetTagUpdatedEvent extends RemoteEntityEvent<TargetTag> implements EntityUpdatedEvent {
|
public class TargetTagUpdatedEvent extends RemoteEntityEvent<TargetTag> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetTagUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -35,4 +34,4 @@ public class TargetTagUpdatedEvent extends RemoteEntityEvent<TargetTag> implemen
|
|||||||
public TargetTagUpdatedEvent(final TargetTag tag, final String applicationId) {
|
public TargetTagUpdatedEvent(final TargetTag tag, final String applicationId) {
|
||||||
super(tag, applicationId);
|
super(tag, applicationId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,24 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TargetType;
|
import org.eclipse.hawkbit.repository.model.TargetType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of creating a new {@link TargetType}.
|
* Defines the remote event of creating a new {@link TargetType}.
|
||||||
*/
|
*/
|
||||||
public class TargetTypeCreatedEvent extends RemoteEntityEvent<TargetType>
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
implements EntityCreatedEvent {
|
public class TargetTypeCreatedEvent extends RemoteEntityEvent<TargetType> implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetTypeCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -36,5 +34,4 @@ public class TargetTypeCreatedEvent extends RemoteEntityEvent<TargetType>
|
|||||||
public TargetTypeCreatedEvent(final TargetType baseEntity, final String applicationId) {
|
public TargetTypeCreatedEvent(final TargetType baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,24 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TargetType;
|
import org.eclipse.hawkbit.repository.model.TargetType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event for updating a {@link TargetType}.
|
* Defines the remote event for updating a {@link TargetType}.
|
||||||
*/
|
*/
|
||||||
public class TargetTypeUpdatedEvent extends RemoteEntityEvent<TargetType>
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
implements EntityUpdatedEvent {
|
public class TargetTypeUpdatedEvent extends RemoteEntityEvent<TargetType> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetTypeUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -36,5 +34,4 @@ public class TargetTypeUpdatedEvent extends RemoteEntityEvent<TargetType>
|
|||||||
public TargetTypeUpdatedEvent(final TargetType baseEntity, final String applicationId) {
|
public TargetTypeUpdatedEvent(final TargetType baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,23 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.Target;
|
import org.eclipse.hawkbit.repository.model.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event for updating a {@link Target}.
|
* Defines the remote event for updating a {@link Target}.
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
public class TargetUpdatedEvent extends RemoteEntityEvent<Target> implements EntityUpdatedEvent {
|
public class TargetUpdatedEvent extends RemoteEntityEvent<Target> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TargetUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -35,5 +34,4 @@ public class TargetUpdatedEvent extends RemoteEntityEvent<Target> implements Ent
|
|||||||
public TargetUpdatedEvent(final Target baseEntity, final String applicationId) {
|
public TargetUpdatedEvent(final Target baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,24 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityCreatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantConfiguration;
|
import org.eclipse.hawkbit.repository.model.TenantConfiguration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of creating a new {@link TenantConfiguration}.
|
* Defines the remote event of creating a new {@link TenantConfiguration}.
|
||||||
*/
|
*/
|
||||||
public class TenantConfigurationCreatedEvent extends RemoteEntityEvent<TenantConfiguration>
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
implements EntityCreatedEvent {
|
public class TenantConfigurationCreatedEvent extends RemoteEntityEvent<TenantConfiguration> implements EntityCreatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TenantConfigurationCreatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -36,5 +34,4 @@ public class TenantConfigurationCreatedEvent extends RemoteEntityEvent<TenantCon
|
|||||||
public TenantConfigurationCreatedEvent(final TenantConfiguration baseEntity, final String applicationId) {
|
public TenantConfigurationCreatedEvent(final TenantConfiguration baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,24 +9,22 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.event.remote.entity;
|
package org.eclipse.hawkbit.repository.event.remote.entity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
import org.eclipse.hawkbit.repository.event.entity.EntityUpdatedEvent;
|
||||||
import org.eclipse.hawkbit.repository.model.TenantConfiguration;
|
import org.eclipse.hawkbit.repository.model.TenantConfiguration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the remote event of updating a {@link TenantConfiguration}.
|
* Defines the remote event of updating a {@link TenantConfiguration}.
|
||||||
*/
|
*/
|
||||||
public class TenantConfigurationUpdatedEvent extends RemoteEntityEvent<TenantConfiguration>
|
@NoArgsConstructor(access = AccessLevel.PUBLIC) // for serialization libs like jackson
|
||||||
implements EntityUpdatedEvent {
|
public class TenantConfigurationUpdatedEvent extends RemoteEntityEvent<TenantConfiguration> implements EntityUpdatedEvent {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
*/
|
|
||||||
public TenantConfigurationUpdatedEvent() {
|
|
||||||
// for serialization libs like jackson
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@@ -36,5 +34,4 @@ public class TenantConfigurationUpdatedEvent extends RemoteEntityEvent<TenantCon
|
|||||||
public TenantConfigurationUpdatedEvent(final TenantConfiguration baseEntity, final String applicationId) {
|
public TenantConfigurationUpdatedEvent(final TenantConfiguration baseEntity, final String applicationId) {
|
||||||
super(baseEntity, applicationId);
|
super(baseEntity, applicationId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
||||||
@@ -19,13 +21,11 @@ import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
|||||||
*/
|
*/
|
||||||
public class ArtifactBinaryNoLongerExistsException extends AbstractServerRtException {
|
public class ArtifactBinaryNoLongerExistsException extends AbstractServerRtException {
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_ARTIFACT_BINARY_DELETED;
|
@Serial
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private static final SpServerError THIS_ERROR = SpServerError.SP_ARTIFACT_BINARY_DELETED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new ArtifactBinaryGoneException error.
|
* Creates a new ArtifactBinaryGoneException error.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -9,17 +9,14 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public final class ArtifactBinaryNotFoundException extends AbstractServerRtException {
|
public final class ArtifactBinaryNotFoundException extends AbstractServerRtException {
|
||||||
|
|
||||||
/**
|
@Serial
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -17,9 +19,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public final class ArtifactDeleteFailedException extends AbstractServerRtException {
|
public final class ArtifactDeleteFailedException extends AbstractServerRtException {
|
||||||
|
|
||||||
/**
|
@Serial
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -18,6 +20,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public final class ArtifactEncryptionFailedException extends AbstractServerRtException {
|
public final class ArtifactEncryptionFailedException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final EncryptionOperation encryptionOperation;
|
private final EncryptionOperation encryptionOperation;
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -17,6 +19,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public final class ArtifactEncryptionUnsupportedException extends AbstractServerRtException {
|
public final class ArtifactEncryptionUnsupportedException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,14 +9,14 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public final class ArtifactUploadFailedException extends AbstractServerRtException {
|
public final class ArtifactUploadFailedException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -20,7 +22,9 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class AutoConfirmationAlreadyActiveException extends AbstractServerRtException {
|
public class AutoConfirmationAlreadyActiveException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_AUTO_CONFIRMATION_ALREADY_ACTIVE;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_AUTO_CONFIRMATION_ALREADY_ACTIVE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -20,6 +22,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public final class CancelActionNotAllowedException extends AbstractServerRtException {
|
public final class CancelActionNotAllowedException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -19,6 +21,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class ConcurrentModificationException extends AbstractServerRtException {
|
public class ConcurrentModificationException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_CONCURRENT_MODIFICATION;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_CONCURRENT_MODIFICATION;
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
||||||
@@ -20,9 +22,7 @@ import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
|||||||
*/
|
*/
|
||||||
public class DistributionSetTypeUndefinedException extends AbstractServerRtException {
|
public class DistributionSetTypeUndefinedException extends AbstractServerRtException {
|
||||||
|
|
||||||
/**
|
@Serial
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -18,7 +20,9 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class EntityAlreadyExistsException extends AbstractServerRtException {
|
public class EntityAlreadyExistsException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_ENTITY_ALREADY_EXISTS;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_ENTITY_ALREADY_EXISTS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -26,13 +26,13 @@ import org.eclipse.hawkbit.repository.model.MetaData;
|
|||||||
@Getter
|
@Getter
|
||||||
public class EntityNotFoundException extends AbstractServerRtException {
|
public class EntityNotFoundException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
public static final String KEY = "key";
|
public static final String KEY = "key";
|
||||||
public static final String ENTITY_ID = "entityId";
|
public static final String ENTITY_ID = "entityId";
|
||||||
public static final String TYPE = "type";
|
public static final String TYPE = "type";
|
||||||
|
|
||||||
@Serial
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_ENTITY_NOT_EXISTS;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_ENTITY_NOT_EXISTS;
|
||||||
private static final int ENTITY_STRING_MAX_LENGTH = 100;
|
private static final int ENTITY_STRING_MAX_LENGTH = 100;
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -18,7 +20,9 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class EntityReadOnlyException extends AbstractServerRtException {
|
public class EntityReadOnlyException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_ENTITY_READ_ONLY;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_ENTITY_READ_ONLY;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,18 +9,17 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thrown when force quitting an actions is not allowed. e.g. the action is not
|
* Thrown when force quitting an actions is not allowed. e.g. the action is not active, or it is not canceled before.
|
||||||
* active or it is not canceled before.
|
|
||||||
*/
|
*/
|
||||||
public final class ForceQuitActionNotAllowedException extends AbstractServerRtException {
|
public final class ForceQuitActionNotAllowedException extends AbstractServerRtException {
|
||||||
|
|
||||||
/**
|
@Serial
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
||||||
@@ -24,7 +25,9 @@ import org.eclipse.hawkbit.repository.model.TargetType;
|
|||||||
*/
|
*/
|
||||||
public class IncompatibleTargetTypeException extends AbstractServerRtException {
|
public class IncompatibleTargetTypeException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final Collection<String> targetTypeNames;
|
private final Collection<String> targetTypeNames;
|
||||||
private final Collection<String> distributionSetTypeNames;
|
private final Collection<String> distributionSetTypeNames;
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -18,9 +20,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public final class IncompleteDistributionSetException extends AbstractServerRtException {
|
public final class IncompleteDistributionSetException extends AbstractServerRtException {
|
||||||
|
|
||||||
/**
|
@Serial
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -18,6 +20,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class InsufficientPermissionException extends AbstractServerRtException {
|
public class InsufficientPermissionException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -18,7 +20,9 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class InvalidAutoAssignActionTypeException extends AbstractServerRtException {
|
public class InvalidAutoAssignActionTypeException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_AUTO_ASSIGN_ACTION_TYPE_INVALID;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_AUTO_ASSIGN_ACTION_TYPE_INVALID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -19,7 +21,9 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class InvalidConfirmationFeedbackException extends AbstractServerRtException {
|
public class InvalidConfirmationFeedbackException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_CONFIRMATION_FEEDBACK_INVALID;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_CONFIRMATION_FEEDBACK_INVALID;
|
||||||
|
|
||||||
private final Reason reason;
|
private final Reason reason;
|
||||||
|
|||||||
@@ -9,14 +9,14 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
public class InvalidDistributionSetException extends AbstractServerRtException {
|
public class InvalidDistributionSetException extends AbstractServerRtException {
|
||||||
|
|
||||||
/**
|
@Serial
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -17,9 +19,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class InvalidMD5HashException extends AbstractServerRtException {
|
public class InvalidMD5HashException extends AbstractServerRtException {
|
||||||
|
|
||||||
/**
|
@Serial
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -20,6 +22,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class InvalidMaintenanceScheduleException extends AbstractServerRtException {
|
public class InvalidMaintenanceScheduleException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final int durationErrorIndex;
|
private final int durationErrorIndex;
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -17,9 +19,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class InvalidSHA1HashException extends AbstractServerRtException {
|
public class InvalidSHA1HashException extends AbstractServerRtException {
|
||||||
|
|
||||||
/**
|
@Serial
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -17,6 +19,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class InvalidSHA256HashException extends AbstractServerRtException {
|
public class InvalidSHA256HashException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -17,6 +19,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class InvalidTargetAddressException extends AbstractServerRtException {
|
public class InvalidTargetAddressException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -10,12 +10,16 @@
|
|||||||
|
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
public class InvalidTargetAttributeException extends AbstractServerRtException {
|
public class InvalidTargetAttributeException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_TARGET_ATTRIBUTES_INVALID;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_TARGET_ATTRIBUTES_INVALID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -17,9 +19,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public final class MethodNotSupportedException extends AbstractServerRtException {
|
public final class MethodNotSupportedException extends AbstractServerRtException {
|
||||||
|
|
||||||
/**
|
@Serial
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -18,7 +20,9 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class MultiAssignmentIsNotEnabledException extends AbstractServerRtException {
|
public class MultiAssignmentIsNotEnabledException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_MULTIASSIGNMENT_NOT_ENABLED;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_MULTIASSIGNMENT_NOT_ENABLED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -18,7 +20,9 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class NoWeightProvidedInMultiAssignmentModeException extends AbstractServerRtException {
|
public class NoWeightProvidedInMultiAssignmentModeException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_NO_WEIGHT_PROVIDED_IN_MULTIASSIGNMENT_MODE;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_NO_WEIGHT_PROVIDED_IN_MULTIASSIGNMENT_MODE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -17,9 +19,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class RSQLParameterSyntaxException extends AbstractServerRtException {
|
public class RSQLParameterSyntaxException extends AbstractServerRtException {
|
||||||
|
|
||||||
/**
|
@Serial
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -19,7 +21,9 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class RolloutIllegalStateException extends AbstractServerRtException {
|
public class RolloutIllegalStateException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_ROLLOUT_ILLEGAL_STATE;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_ROLLOUT_ILLEGAL_STATE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,30 +9,29 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.repository.model.Action;
|
import org.eclipse.hawkbit.repository.model.Action;
|
||||||
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the {@link SoftwareModuleNotAssignedToTargetException} is thrown when a
|
* the {@link SoftwareModuleNotAssignedToTargetException} is thrown when a {@link SoftwareModule} is requested as part of an {@link Action}
|
||||||
* {@link SoftwareModule} is requested as part of an {@link Action} that has
|
* that has however never been assigned to the {@link Target}.
|
||||||
* however never been assigned to the {@link Target}.
|
|
||||||
*/
|
*/
|
||||||
public class SoftwareModuleNotAssignedToTargetException extends EntityNotFoundException {
|
public class SoftwareModuleNotAssignedToTargetException extends EntityNotFoundException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param moduleId thats is not assigned to given {@link Target}
|
* @param moduleId that is not assigned to given {@link Target}
|
||||||
* @param controllerId of the {@link Target} where given {@link SoftwareModule} is
|
* @param controllerId of the {@link Target} where given {@link SoftwareModule} is not part of
|
||||||
* not part of
|
|
||||||
*/
|
*/
|
||||||
public SoftwareModuleNotAssignedToTargetException(final Long moduleId, final String controllerId) {
|
public SoftwareModuleNotAssignedToTargetException(final Long moduleId, final String controllerId) {
|
||||||
super("No assignment found for " + SoftwareModule.class.getSimpleName() + " with id {" + moduleId + "} to "
|
super("No assignment found for " + SoftwareModule.class.getSimpleName() + " with id {" + moduleId + "} to "
|
||||||
+ Target.class.getSimpleName() + " with id {" + controllerId + "}.");
|
+ Target.class.getSimpleName() + " with id {" + controllerId + "}.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
||||||
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
||||||
|
|
||||||
@@ -21,19 +23,18 @@ import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
|||||||
*/
|
*/
|
||||||
public class SoftwareModuleTypeNotInDistributionSetTypeException extends EntityNotFoundException {
|
public class SoftwareModuleTypeNotInDistributionSetTypeException extends EntityNotFoundException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param moduleTypeId thats is not part of given {@link DistributionSetType}
|
* @param moduleTypeId that is not part of given {@link DistributionSetType}
|
||||||
* @param distributionSetTypeId of the {@link DistributionSetType} where given
|
* @param distributionSetTypeId of the {@link DistributionSetType} where given {@link SoftwareModuleType} is not part of
|
||||||
* {@link SoftwareModuleType} is not part of
|
|
||||||
*/
|
*/
|
||||||
public SoftwareModuleTypeNotInDistributionSetTypeException(final Long moduleTypeId,
|
public SoftwareModuleTypeNotInDistributionSetTypeException(final Long moduleTypeId,
|
||||||
final Long distributionSetTypeId) {
|
final Long distributionSetTypeId) {
|
||||||
super(SoftwareModuleType.class.getSimpleName() + " with id {" + moduleTypeId + "} is not part of "
|
super(SoftwareModuleType.class.getSimpleName() + " with id {" + moduleTypeId + "} is not part of "
|
||||||
+ DistributionSetType.class.getSimpleName() + " with id {" + distributionSetTypeId + "}.");
|
+ DistributionSetType.class.getSimpleName() + " with id {" + distributionSetTypeId + "}.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -19,6 +21,7 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class StopRolloutException extends AbstractServerRtException {
|
public class StopRolloutException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -17,7 +19,9 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class TargetTypeInUseException extends AbstractServerRtException {
|
public class TargetTypeInUseException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_TARGET_TYPE_IN_USE;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_TARGET_TYPE_IN_USE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ public class TargetTypeKeyOrNameRequiredException extends AbstractServerRtExcept
|
|||||||
|
|
||||||
@Serial
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_TARGET_TYPE_KEY_OR_NAME_REQUIRED;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_TARGET_TYPE_KEY_OR_NAME_REQUIRED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,15 +9,17 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception which is supposed to be thrown if a property value is valid but
|
* Exception which is supposed to be thrown if a property value is valid but cannot be set in the current context.
|
||||||
* cannot be set in the current context.
|
|
||||||
*/
|
*/
|
||||||
public class TenantConfigurationValueChangeNotAllowedException extends AbstractServerRtException {
|
public class TenantConfigurationValueChangeNotAllowedException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
|
|
||||||
@@ -20,7 +22,9 @@ import org.eclipse.hawkbit.exception.SpServerError;
|
|||||||
*/
|
*/
|
||||||
public class TenantNotExistException extends AbstractServerRtException {
|
public class TenantNotExistException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_TENANT_NOT_EXISTS;
|
private static final SpServerError THIS_ERROR = SpServerError.SP_REPO_TENANT_NOT_EXISTS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.exception;
|
package org.eclipse.hawkbit.repository.exception;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
import org.eclipse.hawkbit.exception.AbstractServerRtException;
|
||||||
import org.eclipse.hawkbit.exception.SpServerError;
|
import org.eclipse.hawkbit.exception.SpServerError;
|
||||||
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
import org.eclipse.hawkbit.repository.model.DistributionSet;
|
||||||
@@ -22,6 +24,7 @@ import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
|||||||
*/
|
*/
|
||||||
public class UnsupportedSoftwareModuleForThisDistributionSetException extends AbstractServerRtException {
|
public class UnsupportedSoftwareModuleForThisDistributionSetException extends AbstractServerRtException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -45,4 +48,4 @@ public class UnsupportedSoftwareModuleForThisDistributionSetException extends Ab
|
|||||||
public UnsupportedSoftwareModuleForThisDistributionSetException(final String message) {
|
public UnsupportedSoftwareModuleForThisDistributionSetException(final String message) {
|
||||||
super(message, SpServerError.SP_DS_MODULE_UNSUPPORTED);
|
super(message, SpServerError.SP_DS_MODULE_UNSUPPORTED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.repository.model;
|
package org.eclipse.hawkbit.repository.model;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
@@ -20,6 +21,7 @@ import lombok.Data;
|
|||||||
@Data
|
@Data
|
||||||
public class ActionProperties implements Serializable {
|
public class ActionProperties implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|||||||
Reference in New Issue
Block a user