import { CommonUtil } from './../utils/' ; import { IConditionFunction } from './IConditionFunction' ; import { AccessControlError } from '../core' ; import { ConditionUtil } from './util' ; author Dilip Kola <dilip@tensult.com>
  export class NotEqualsCondition implements IConditionFunction { evaluate ( args ? , context ? ) { if ( ! args ) { return true ; } if ( ! context ) { return false ; } if ( CommonUtil . type ( args ) !== 'object' ) { throw new AccessControlError ( 'NotEqualsCondition expects type of args to be object' ) ; } return ! ConditionUtil . EQUALS . evaluate ( args , context ) ; } }