/** * Method to handle GET-Requests. This is default. * * @return The ModelAndView to use. */ @RequestMapping public ModelAndView get() { ClientProfileNotificationsForm notificationSettings = new ClientProfileNotificationsForm(); notificationSettings.setRenderAttachmentLinks( ClientProperty.NOTIFICATION_RENDER_ATTACHMENTLINKS.getValue( ClientProperty.DEFAULT_NOTIFICATION_RENDER_ATTACHMENTLINKS)); notificationSettings.setRenderPermalinks( ClientProperty.NOTIFICATION_RENDER_PERMALINKS.getValue( ClientProperty.DEFAULT_NOTIFICATION_RENDER_PERMALINKS)); notificationSettings.setRenderBlogPermalinkInInvitation( ClientProperty.INVITATION_RENDER_BLOG_PERMALINK.getValue( ClientProperty.DEFAULT_INVITATION_RENDER_BLOG_PERMALINK)); notificationSettings.setMaxUsersToMention( ClientProperty.MAX_NUMBER_OF_MENTIONED_USERS.getValue( ClientProperty.DEFAULT_MAX_NUMBER_OF_MENTIONED_USERS)); return new ModelAndView( "main.microblog.client.profile.notifications", "command", notificationSettings); }