Package org.geoserver.config.impl

Examples of org.geoserver.config.impl.ServiceInfoImpl


        if (service instanceof Hibernable) {
            this.serviceDAO.save(service);
        } else {
            LOGGER.info("Translating unhibernable instance of " + service.getClass().getName());
            HibServiceTranslator translator = new HibServiceTranslator(factory);
            ServiceInfoImpl hservice = translator.translate(service);
            this.serviceDAO.save(hservice);
        }

        // fire post modification event
        firePostServiceModified(service);
View Full Code Here


        // for (Map.Entry entry : (Set<Map.Entry>)src.getClientProperties().entrySet() )
        // dest.getClientProperties().put(entry.getKey(), entry.getValue());
    }

    private ServiceInfoImpl translateSI(ServiceInfoImpl serviceInfo) {
        ServiceInfoImpl ret = (ServiceInfoImpl) factory.createService();
        copySI(serviceInfo, ret);
        return ret;
    }
View Full Code Here

    public ContactInfo createContact() {
        return new ContactInfoImplHb();
    }

    public ServiceInfo createService() {
        return new ServiceInfoImpl();
    }
View Full Code Here

     * @return
     */
    protected T initialize(T service) {
        if (service instanceof ServiceInfoImpl) {
            // initialize all collections to
            ServiceInfoImpl impl = (ServiceInfoImpl) service;
            if (impl.getClientProperties() == null) {
                impl.setClientProperties(new HashMap());
            }
            if (impl.getExceptionFormats() == null) {
                impl.setExceptionFormats(new ArrayList());
            }
            if (impl.getKeywords() == null) {
                impl.setKeywords(new ArrayList());
            }
            if (impl.getMetadata() == null) {
                impl.setMetadata(new MetadataMap());
            }
            if (impl.getVersions() == null) {
                impl.setVersions(new ArrayList());
            }
        }

        return service;
    }
View Full Code Here

     * @return
     */
    protected T initialize(T service) {
        if (service instanceof ServiceInfoImpl) {
            // initialize all collections to
            ServiceInfoImpl impl = (ServiceInfoImpl) service;
            if (impl.getClientProperties() == null) {
                impl.setClientProperties(new HashMap());
            }
            if (impl.getExceptionFormats() == null) {
                impl.setExceptionFormats(new ArrayList());
            }
            if (impl.getKeywords() == null) {
                impl.setKeywords(new ArrayList());
            }
            if (impl.getMetadata() == null) {
                impl.setMetadata(new MetadataMap());
            }
            if (impl.getVersions() == null) {
                impl.setVersions(new ArrayList());
            }
        }

        return service;
    }
View Full Code Here

    private final ServiceInfoImpl serviceInfo;

    private final GeoWebCacheDispatcher gwcDispatcher;

    public GwcServiceProxy() {
        serviceInfo = new ServiceInfoImpl();
        serviceInfo.setId("gwc");
        serviceInfo.setName("gwc");
        serviceInfo.setEnabled(true);
        serviceInfo.setVersions(ImmutableList.of(new Version("1.0.0")));
        gwcDispatcher = GeoWebCacheExtensions.bean(GeoWebCacheDispatcher.class);
View Full Code Here

TOP

Related Classes of org.geoserver.config.impl.ServiceInfoImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.