Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEOS-8039] Fix JMS plugin styles workspaces change handling
- Loading branch information
Nuno Oliveira
committed
Mar 18, 2017
1 parent
e9ab4c3
commit 059fd40
Showing
5 changed files
with
319 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...ter/jms-geoserver/src/main/java/org/geoserver/cluster/server/events/StyleModifyEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,48 @@ | |||
/* (c) 2017 Open Source Geospatial Foundation - all rights reserved | |||
* This code is licensed under the GPL 2.0 license, available at the root | |||
* application directory. | |||
*/ | |||
package org.geoserver.cluster.server.events; | |||
|
|||
import org.geoserver.catalog.CatalogInfo; | |||
import org.geoserver.catalog.event.CatalogModifyEvent; | |||
|
|||
import java.util.List; | |||
|
|||
/** | |||
* Catalog modify event for styles that include the style file as an array of bytes. | |||
*/ | |||
public class StyleModifyEvent implements CatalogModifyEvent { | |||
|
|||
private final CatalogModifyEvent event; | |||
private final byte[] file; | |||
|
|||
public StyleModifyEvent(CatalogModifyEvent event, byte[] file) { | |||
this.event = event; | |||
this.file = file; | |||
} | |||
|
|||
@Override | |||
public CatalogInfo getSource() { | |||
return event.getSource(); | |||
} | |||
|
|||
@Override | |||
public List<String> getPropertyNames() { | |||
return event.getPropertyNames(); | |||
} | |||
|
|||
@Override | |||
public List<Object> getOldValues() { | |||
return event.getOldValues(); | |||
} | |||
|
|||
@Override | |||
public List<Object> getNewValues() { | |||
return event.getNewValues(); | |||
} | |||
|
|||
public byte[] getFile() { | |||
return file; | |||
} | |||
} |
Oops, something went wrong.