class WebsiteResolversImpl implements WebsiteResolvers {

    @Override
    public DataFetcher<Website> updateWebsiteDataFetcher() {
        return environment -> {
            long websiteId = util.getLongArg(environment, "websiteId");
            String url = util.getStringArg(environment, "url");
            long typeId = util.getLongArg(environment, "typeId");
            boolean primary = util.getBooleanArg(environment, "primary");

            return websiteLocalService.updateWebsite(
                    websiteId,
                    url,
                    typeId,
                    primary);
        };
    }

}