All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.surati.gap.admin.module.web.pages.TkEnterpriseLogoEdit Maven / Gradle / Ivy

There is a newer version: 0.5.2
Show newest version
package io.surati.gap.admin.module.web.pages;

/**
 * Take that edits an enterprise logo.
 *
 * 

The class is immutable and thread-safe.

* * @since 0.1 */ import io.surati.gap.admin.module.web.server.RsPage; import org.cactoos.iterable.Sticky; import org.takes.Request; import org.takes.Response; import org.takes.Take; import org.takes.rs.xe.XeAppend; import javax.sql.DataSource; public final class TkEnterpriseLogoEdit implements Take { /** * DataSource */ private final DataSource source; /** * Ctor. * @param source DataSource */ public TkEnterpriseLogoEdit(final DataSource source) { this.source = source; } @Override public Response act(Request req) throws Exception { return new RsPage( "/io/surati/gap/admin/module/xsl/enterprise/logo_edit.xsl", req, this.source, () -> new Sticky<>( new XeAppend("menu", "enterprise") ) ); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy