@View public Response.Content index() { return index.ok(); } }
@Override public String id(Annotation annotation) throws ClassCastException { return ((juzu.View)annotation).id(); }
@View public Response index() { return helloworld.ok(); } }
@Override public String id(Annotation annotation) throws ClassCastException { return ((juzu.View)annotation).id(); }
@View public Response.Content index() { return container.ok(); }
@View public Response.Content index() { return index.ok(); }
@View public Response.Content index() { return list.ok().withCharset(Tools.UTF_8); } }
/** * The controller method index() is the name of the default method that Juzu * will call. set localization and put into parameters * * @param httpContext * @return Response */ @View public Response index(HttpContext httpContext) { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("urlUploadFile", BrandingController_.uploadFile(null)); parameters.put("imageUrl", getLogoUrl(httpContext, true)); return index.ok(parameters); }
@View public Response.Content index() throws Exception { return gettingStarted.ok().withCharset(Tools.UTF_8); }
@View public Response index(ApplicationContext applicationContext, UserContext userContext){ //Redirect yo the home's page when the feature is off if (! CommonsUtils.isFeatureActive(NotificationUtils.FEATURE_NAME)) { return redirectToHomePage(); } this.locale = userContext.getLocale(); ResourceBundle rs = applicationContext.resolveBundle(this.locale); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("_ctx", new Context(rs)); List<GroupProvider> groups = pluginSettingService.getGroupPlugins(); parameters.put("groups", groups); // parameters.put("channels", getChannels()); //try to get sender name and email from database. If fail, get default value from properties file SettingValue<?> senderName = settingService.get(org.exoplatform.commons.api.settings.data.Context.GLOBAL, Scope.GLOBAL, NotificationPluginUtils.NOTIFICATION_SENDER_NAME); SettingValue<?> senderEmail = settingService.get(org.exoplatform.commons.api.settings.data.Context.GLOBAL, Scope.GLOBAL, NotificationPluginUtils.NOTIFICATION_SENDER_EMAIL); parameters.put("senderName", senderName != null ? (String)senderName.getValue() : System.getProperty("exo.notifications.portalname", "eXo")); parameters.put("senderEmail", senderEmail != null ? (String)senderEmail.getValue() : System.getProperty("gatein.email.smtp.from", "noreply@exoplatform.com")); return index.ok(parameters); }