private DataBinder<ServiceClientQuery> getDataBinder() {
   if (dataBinder == null) {
     final BeanBinder<ServiceClientQuery> binder = BeanBinder.instance(ServiceClientQuery.class);
     binder.registerBinder("pageParameters", DataBinderHelper.pageBinder());
     dataBinder = binder;
   }
   return dataBinder;
 }
 public BeanCollectionBinder<Map<String, Object>> getAccountTypeBinderWithScheduling() {
   if (accountTypeBinderWithScheduling == null) {
     final BeanBinder<Map<String, Object>> binder = DataBinderHelper.accountTypeBinder();
     binder.registerBinder(
         "allowsScheduledPayments",
         PropertyBinder.instance(Boolean.TYPE, "allowsScheduledPayments"));
     accountTypeBinderWithScheduling = BeanCollectionBinder.instance(binder);
   }
   return accountTypeBinderWithScheduling;
 }
 private DataBinder<ScheduledPaymentQuery> getDataBinder() {
   if (dataBinder == null) {
     final BeanBinder<ScheduledPaymentQuery> binder =
         BeanBinder.instance(ScheduledPaymentQuery.class);
     final LocalSettings localSettings =
         SettingsHelper.getLocalSettings(getServlet().getServletContext());
     binder.registerBinder(
         "accountType", PropertyBinder.instance(AccountType.class, "accountType"));
     binder.registerBinder(
         "searchType",
         PropertyBinder.instance(ScheduledPaymentQuery.SearchType.class, "searchType"));
     binder.registerBinder(
         "statusGroup",
         PropertyBinder.instance(ScheduledPaymentQuery.StatusGroup.class, "statusGroup"));
     binder.registerBinder("period", DataBinderHelper.periodBinder(localSettings, "period"));
     binder.registerBinder("member", PropertyBinder.instance(Member.class, "member"));
     binder.registerBinder("pageParameters", DataBinderHelper.pageBinder());
     dataBinder = binder;
   }
   return dataBinder;
 }
示例#4
0
 public DataBinder<MessageQuery> getDataBinder() {
   if (dataBinder == null) {
     final BeanBinder<MessageQuery> binder = BeanBinder.instance(MessageQuery.class);
     binder.registerBinder("messageBox", PropertyBinder.instance(MessageBox.class, "messageBox"));
     binder.registerBinder("rootType", PropertyBinder.instance(RootType.class, "rootType"));
     binder.registerBinder(
         "relatedMember", PropertyBinder.instance(Member.class, "relatedMember"));
     binder.registerBinder("category", PropertyBinder.instance(MessageCategory.class, "category"));
     binder.registerBinder("keywords", PropertyBinder.instance(String.class, "keywords"));
     binder.registerBinder("pageParameters", DataBinderHelper.pageBinder());
     dataBinder = binder;
   }
   return dataBinder;
 }
 public BeanCollectionBinder<Map<String, Object>> getAccountTypeBinder() {
   if (accountTypeBinder == null) {
     accountTypeBinder = BeanCollectionBinder.instance(DataBinderHelper.accountTypeBinder());
   }
   return accountTypeBinder;
 }