diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-25 14:24:08 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-25 14:24:08 -0700 |
commit | bf0173eb4bac4ab86b43f101eb013051bfc40817 (patch) | |
tree | 166beb98c54799a62922762f70be9a9556bb01f0 /src/main/java/org/traccar/api/BaseObjectResource.java | |
parent | 2fcffc5b55f59310d289a21d1ebc2ee6bf15bcd5 (diff) | |
download | trackermap-server-bf0173eb4bac4ab86b43f101eb013051bfc40817.tar.gz trackermap-server-bf0173eb4bac4ab86b43f101eb013051bfc40817.tar.bz2 trackermap-server-bf0173eb4bac4ab86b43f101eb013051bfc40817.zip |
Simplify broadcast calls
Diffstat (limited to 'src/main/java/org/traccar/api/BaseObjectResource.java')
-rw-r--r-- | src/main/java/org/traccar/api/BaseObjectResource.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main/java/org/traccar/api/BaseObjectResource.java b/src/main/java/org/traccar/api/BaseObjectResource.java index 403021c6c..489360619 100644 --- a/src/main/java/org/traccar/api/BaseObjectResource.java +++ b/src/main/java/org/traccar/api/BaseObjectResource.java @@ -16,7 +16,6 @@ */ package org.traccar.api; -import org.traccar.broadcast.BroadcastService; import org.traccar.helper.LogAction; import org.traccar.model.BaseModel; import org.traccar.model.Group; @@ -42,9 +41,6 @@ public abstract class BaseObjectResource<T extends BaseModel> extends BaseResour @Inject private CacheManager cacheManager; - @Inject - private BroadcastService broadcastService; - protected final Class<T> baseClass; public BaseObjectResource(Class<T> baseClass) { @@ -72,7 +68,6 @@ public abstract class BaseObjectResource<T extends BaseModel> extends BaseResour LogAction.create(getUserId(), entity); storage.addPermission(new Permission(User.class, getUserId(), baseClass, entity.getId())); cacheManager.invalidatePermission(User.class, getUserId(), baseClass, entity.getId()); - broadcastService.invalidatePermission(User.class, getUserId(), baseClass, entity.getId()); LogAction.link(getUserId(), User.class, getUserId(), baseClass, entity.getId()); return Response.ok(entity).build(); @@ -99,7 +94,6 @@ public abstract class BaseObjectResource<T extends BaseModel> extends BaseResour new Columns.Exclude("id"), new Condition.Equals("id", "id"))); cacheManager.updateOrInvalidate(entity); - broadcastService.invalidateObject(entity.getClass(), entity.getId()); LogAction.edit(getUserId(), entity); return Response.ok(entity).build(); |