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