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:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user