Switch (mostly) to JPA generic events (#2104)

instead of EclipseLink specific

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-11-26 12:59:45 +02:00
committed by GitHub
parent 46c83feb6b
commit d435c0a424
18 changed files with 219 additions and 481 deletions

View File

@@ -321,8 +321,7 @@ public interface ControllerManagement {
* @throws InvalidTargetAttributeException if attributes violate constraints
*/
@PreAuthorize(SpringEvalExpressions.IS_CONTROLLER)
Target updateControllerAttributes(@NotEmpty String controllerId, @NotNull Map<String, String> attributes,
UpdateMode mode);
Target updateControllerAttributes(@NotEmpty String controllerId, @NotNull Map<String, String> attributes, UpdateMode mode);
/**
* Finds {@link Target} based on given controller ID returns found Target

View File

@@ -53,7 +53,9 @@ public interface Target extends NamedEntity {
String getControllerId();
/**
* @return the securityToken
* @return the securityToken if the current security context contains the necessary permission
* {@link org.eclipse.hawkbit.im.authentication.SpPermission#READ_TARGET_SEC_TOKEN}
* or the current context is executed as system code, otherwise {@code null}.
*/
String getSecurityToken();
@@ -70,8 +72,7 @@ public interface Target extends NamedEntity {
URI getAddress();
/**
* @return time in {@link TimeUnit#MILLISECONDS} GMT when the {@link Target}
* polled the server the last time or <code>null</code> if target
* @return time in {@link TimeUnit#MILLISECONDS} GMT when the {@link Target} polled the server the last time or <code>null</code> if target
* has never queried yet.
*/
Long getLastTargetQuery();
@@ -113,4 +114,4 @@ public interface Target extends NamedEntity {
* {@link #getControllerAttributes()}.
*/
boolean isRequestControllerAttributes();
}
}