Mercurial > dive4elements > river
changeset 6000:2e57fb04aa6f
issue949: staticwqkms/W facets are active.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 13 May 2013 11:14:13 +0200 |
parents | 492a17232154 |
children | bd6d7da9c6fd |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java Mon May 13 10:10:09 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java Mon May 13 11:14:13 2013 +0200 @@ -61,8 +61,18 @@ static { // TODO: Move to configuration. - FacetActivity.Registry.getInstance() - .register(NAME, FacetActivity.INACTIVE); + FacetActivity.Registry.getInstance().register( + NAME, + new FacetActivity() { + @Override + public Boolean isInitialActive( + Artifact artifact, + Facet facet, + String outputName + ) { + String fname = facet.getName(); + return (fname.equals(STATIC_WQKMS) || fname.equals(STATIC_WQKMS_W)); + }}); } /**