@Override
  public void validateAction( RepositoryOperation... operations ) throws KettleException {

    for ( RepositoryOperation operation : operations ) {
      switch ( operation ) {
        case EXECUTE_TRANSFORMATION:
        case EXECUTE_JOB:
          checkOperationAllowed( EXECUTE_CONTENT_ACTION );
          break;

        case MODIFY_TRANSFORMATION:
        case MODIFY_JOB:
          checkOperationAllowed( CREATE_CONTENT_ACTION );
          break;

        case SCHEDULE_TRANSFORMATION:
        case SCHEDULE_JOB:
          checkOperationAllowed( SCHEDULE_CONTENT_ACTION );
          break;

        case MODIFY_DATABASE:
          checkOperationAllowed( MODIFY_DATABASE_ACTION );
          break;

        case SCHEDULER_EXECUTE:
          checkOperationAllowed( SCHEDULER_EXECUTE_ACTION );
          break;
      }
    }
  }
@Test
  public void noExceptionThrown_WhenOperationIsAllowed_ScheduleOperation() throws Exception {

    setOperationPermissions( IAbsSecurityProvider.EXECUTE_CONTENT_ACTION, true );
    provider.validateAction( RepositoryOperation.EXECUTE_JOB );
  }