Esempio n. 1
0
  @Override
  protected List<Breadcrumb> getUpdateBreadcrumbs(
      SimpleDataSourceDescriptor bean, HttpServletRequest req, User user, URIParser uriParser) {

    return CollectionUtils.getList(
        this.callback.getDefaultBreadcrumb(),
        new Breadcrumb(
            callback.getUpdateDataSourceBreadcrumbText() + bean.getName(),
            callback.getUpdateDataSourceBreadcrumbText() + bean.getName(),
            uriParser.getFormattedURI(),
            URLType.RELATIVE_FROM_CONTEXTPATH));
  }
Esempio n. 2
0
  @Override
  protected List<Breadcrumb> getAddBreadcrumbs(
      HttpServletRequest req, User user, URIParser uriParser) {

    return CollectionUtils.getList(
        this.callback.getDefaultBreadcrumb(),
        new Breadcrumb(
            callback.getAddDataSourceBreadcrumbText(),
            callback.getAddDataSourceBreadcrumbText(),
            uriParser.getFormattedURI(),
            URLType.RELATIVE_FROM_CONTEXTPATH));
  }
Esempio n. 3
0
  /**
   * Adds field(s) which will be excluded from select and update statements.
   *
   * @param excludedFields
   */
  public void addExcludedFields(Field... fields) {

    excludedFields =
        CollectionUtils.addAndInstantiateIfNeeded(excludedFields, Arrays.asList(fields));
  }
Esempio n. 4
0
  /**
   * Adds fields which will be excluded from select and update statements.
   *
   * @param excludedFields
   */
  public void addExcludedFields(List<Field> fields) {

    excludedFields = CollectionUtils.addAndInstantiateIfNeeded(excludedFields, fields);
  }
Esempio n. 5
0
  /**
   * Adds a field which will be excluded from select and update statements.
   *
   * @param excludedFields
   */
  public void addExcludedField(Field field) {

    excludedFields = CollectionUtils.addAndInstantiateIfNeeded(excludedFields, field);
  }