How to use the ember-flexberry-data/query/predicate.IsOfPredicate function in ember-flexberry-data

To help you get started, we’ve selected a few ember-flexberry-data examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Flexberry / ember-flexberry-designer / addon / routes / fd-diagram-list-form.js View on Github external
objectListViewLimitPredicate() {
    let stage = this.get('currentContext').getCurrentStage();
    let spStage = new SimplePredicate('subsystem.stage', 'eq', stage);

    let iopDiagrams = Ember.A();
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cod'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-dpd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-sd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-std'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ucd'));
    let cpDiagrams = new ComplexPredicate(Condition.Or, ...iopDiagrams);

    return new ComplexPredicate(Condition.And, spStage, cpDiagrams);
  },
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-diagram-list-form.js View on Github external
objectListViewLimitPredicate() {
    let stage = this.get('currentContext').getCurrentStage();
    let spStage = new SimplePredicate('subsystem.stage', 'eq', stage);

    let iopDiagrams = Ember.A();
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cod'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-dpd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-sd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-std'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ucd'));
    let cpDiagrams = new ComplexPredicate(Condition.Or, ...iopDiagrams);

    return new ComplexPredicate(Condition.And, spStage, cpDiagrams);
  },
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-diagram-list-form.js View on Github external
objectListViewLimitPredicate() {
    let stage = this.get('currentContext').getCurrentStage();
    let spStage = new SimplePredicate('subsystem.stage', 'eq', stage);

    let iopDiagrams = Ember.A();
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cod'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-dpd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-sd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-std'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ucd'));
    let cpDiagrams = new ComplexPredicate(Condition.Or, ...iopDiagrams);

    return new ComplexPredicate(Condition.And, spStage, cpDiagrams);
  },
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-diagram-list-form.js View on Github external
objectListViewLimitPredicate() {
    let stage = this.get('currentContext').getCurrentStage();
    let spStage = new SimplePredicate('subsystem.stage', 'eq', stage);

    let iopDiagrams = Ember.A();
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cod'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-dpd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-sd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-std'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ucd'));
    let cpDiagrams = new ComplexPredicate(Condition.Or, ...iopDiagrams);

    return new ComplexPredicate(Condition.And, spStage, cpDiagrams);
  },
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-diagram-list-form.js View on Github external
objectListViewLimitPredicate() {
    let stage = this.get('currentContext').getCurrentStage();
    let spStage = new SimplePredicate('subsystem.stage', 'eq', stage);

    let iopDiagrams = Ember.A();
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cod'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-dpd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-sd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-std'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ucd'));
    let cpDiagrams = new ComplexPredicate(Condition.Or, ...iopDiagrams);

    return new ComplexPredicate(Condition.And, spStage, cpDiagrams);
  },
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-diagram-list-form.js View on Github external
objectListViewLimitPredicate() {
    let stage = this.get('currentContext').getCurrentStage();
    let spStage = new SimplePredicate('subsystem.stage', 'eq', stage);

    let iopDiagrams = Ember.A();
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cod'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-dpd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-sd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-std'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ucd'));
    let cpDiagrams = new ComplexPredicate(Condition.Or, ...iopDiagrams);

    return new ComplexPredicate(Condition.And, spStage, cpDiagrams);
  },
});
github Flexberry / ember-flexberry-designer / addon / routes / fd-diagram-list-form.js View on Github external
objectListViewLimitPredicate() {
    let stage = this.get('currentContext').getCurrentStage();
    let spStage = new SimplePredicate('subsystem.stage', 'eq', stage);

    let iopDiagrams = Ember.A();
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cad'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-cod'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-dpd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-sd'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-std'));
    iopDiagrams.pushObject(new IsOfPredicate('fd-dev-uml-ucd'));
    let cpDiagrams = new ComplexPredicate(Condition.Or, ...iopDiagrams);

    return new ComplexPredicate(Condition.And, spStage, cpDiagrams);
  },
});