Return-Path: Delivered-To: apmail-incubator-rave-commits-archive@minotaur.apache.org Received: (qmail 46557 invoked from network); 1 Apr 2011 16:44:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Apr 2011 16:44:38 -0000 Received: (qmail 85615 invoked by uid 500); 1 Apr 2011 16:44:38 -0000 Delivered-To: apmail-incubator-rave-commits-archive@incubator.apache.org Received: (qmail 85591 invoked by uid 500); 1 Apr 2011 16:44:38 -0000 Mailing-List: contact rave-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: rave-dev@incubator.apache.org Delivered-To: mailing list rave-commits@incubator.apache.org Received: (qmail 85584 invoked by uid 99); 1 Apr 2011 16:44:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2011 16:44:38 +0000 X-ASF-Spam-Status: No, hits=-1995.7 required=5.0 tests=ALL_TRUSTED,FB_GET_MEDS,FSL_RU_URL X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2011 16:44:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 74B9D2388C93; Fri, 1 Apr 2011 16:42:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1087796 [34/37] - in /incubator/rave/donations/mitre-osec: ./ conf/ db/ db/data/ db/sequences/ db/tables/ lib/ lib/apache-commons/ lib/apache-taglibs/ lib/build/ lib/build/cobertura/ lib/eclipselink/ lib/freemarker/ lib/google-collections/... Date: Fri, 01 Apr 2011 16:42:42 -0000 To: rave-commits@incubator.apache.org From: mfranklin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110401164250.74B9D2388C93@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_it.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_it.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_it.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_it.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_it");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.it");dijit.nls.loading.it={"loadingState":"Caricamento in corso...","errorState":"Si è verificato un errore"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.it");dijit.nls.common.it={"buttonOk":"OK","buttonCancel":"Annulla","buttonSave":"Salva","itemClose":"Chiudi"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.it");dijit.form.nls.validate.it={"rangeMessage":"Questo valore non è compreso nell'intervallo.","invalidMessage":"Il valore immesso non è valido.","missingMessage":"Questo valore è obbligatorio."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ja-jp.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ja-jp.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ja-jp.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ja-jp.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_ja-jp");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.ja_jp");dijit.nls.loading.ja_jp={"loadingState":"ロード中...","errorState":"エラーが発生しました。"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.ja_jp");dijit.nls.common.ja_jp={"buttonOk":"OK","buttonCancel":"キャンセル","buttonSave":"保存","itemClose":"閉じる"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.ja_jp");dijit.form.nls.validate.ja_jp={"rangeMessage":"この値は範囲外です。","invalidMessage":"入力した値は無効です。","missingMessage":"この値は必須です。"}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ja.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ja.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ja.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ja.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_ja");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.ja");dijit.nls.loading.ja={"loadingState":"ロード中...","errorState":"エラーが発生しました。"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.ja");dijit.nls.common.ja={"buttonOk":"OK","buttonCancel":"キャンセル","buttonSave":"保存","itemClose":"閉じる"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.ja");dijit.form.nls.validate.ja={"rangeMessage":"この値は範囲外です。","invalidMessage":"入力した値は無効です。","missingMessage":"この値は必須です。"}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ko-kr.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ko-kr.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ko-kr.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ko-kr.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_ko-kr");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.ko_kr");dijit.nls.loading.ko_kr={"loadingState":"로드 중...","errorState":"죄송합니다. 오류가 발생했습니다."};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.ko_kr");dijit.nls.common.ko_kr={"buttonOk":"확인","buttonCancel":"취소","buttonSave":"저장","itemClose":"닫기"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.ko_kr");dijit.form.nls.validate.ko_kr={"rangeMessage":"이 값은 범위를 벗어납니다.","invalidMessage":"입력된 값이 올바르지 않습니다.","missingMessage":"이 값은 필수입니다."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ko.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ko.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ko.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ko.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_ko");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.ko");dijit.nls.loading.ko={"loadingState":"로드 중...","errorState":"죄송합니다. 오류가 발생했습니다."};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.ko");dijit.nls.common.ko={"buttonOk":"확인","buttonCancel":"취소","buttonSave":"저장","itemClose":"닫기"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.ko");dijit.form.nls.validate.ko={"rangeMessage":"이 값은 범위를 벗어납니다.","invalidMessage":"입력된 값이 올바르지 않습니다.","missingMessage":"이 값은 필수입니다."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nb.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nb.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nb.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nb.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_nb");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.nb");dijit.nls.loading.nb={"loadingState":"Laster inn...","errorState":"Det oppsto en feil"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.nb");dijit.nls.common.nb={"buttonOk":"OK","buttonCancel":"Avbryt","buttonSave":"Lagre","itemClose":"Lukk"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.nb");dijit.form.nls.validate.nb={"rangeMessage":"Denne verdien er utenfor gyldig omrÃ¥de.","invalidMessage":"Den angitte verdien er ikke gyldig.","missingMessage":"Denne verdien er obligatorisk."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nl-nl.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nl-nl.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nl-nl.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nl-nl.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_nl-nl");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.nl_nl");dijit.nls.loading.nl_nl={"loadingState":"Bezig met laden...","errorState":"Er is een fout opgetreden"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.nl_nl");dijit.nls.common.nl_nl={"buttonOk":"OK","buttonCancel":"Annuleren","buttonSave":"Opslaan","itemClose":"Sluiten"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.nl_nl");dijit.form.nls.validate.nl_nl={"rangeMessage":"Deze waarde is niet toegestaan.","invalidMessage":"De opgegeven waarde is ongeldig.","missingMessage":"Deze waarde is verplicht."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nl.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nl.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nl.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_nl.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_nl");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.nl");dijit.nls.loading.nl={"loadingState":"Bezig met laden...","errorState":"Er is een fout opgetreden"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.nl");dijit.nls.common.nl={"buttonOk":"OK","buttonCancel":"Annuleren","buttonSave":"Opslaan","itemClose":"Sluiten"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.nl");dijit.form.nls.validate.nl={"rangeMessage":"Deze waarde is niet toegestaan.","invalidMessage":"De opgegeven waarde is ongeldig.","missingMessage":"Deze waarde is verplicht."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pl.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pl.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pl.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pl.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_pl");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.pl");dijit.nls.loading.pl={"loadingState":"Ładowanie...","errorState":"Niestety, wystąpił błąd"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.pl");dijit.nls.common.pl={"buttonOk":"OK","buttonCancel":"Anuluj","buttonSave":"Zapisz","itemClose":"Zamknij"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.pl");dijit.form.nls.validate.pl={"rangeMessage":"Ta wartość jest spoza zakresu.","invalidMessage":"Wprowadzona wartość jest niepoprawna.","missingMessage":"Ta wartość jest wymagana."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt-br.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt-br.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt-br.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt-br.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_pt-br");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.pt_br");dijit.nls.loading.pt_br={"loadingState":"Carregando...","errorState":"Desculpe, ocorreu um erro"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.pt_br");dijit.nls.common.pt_br={"buttonOk":"OK","buttonCancel":"Cancelar","buttonSave":"Salvar","itemClose":"Fechar"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.pt_br");dijit.form.nls.validate.pt_br={"rangeMessage":"Este valor está fora do intervalo. ","invalidMessage":"O valor inserido não é válido.","missingMessage":"Este valor é necessário."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt-pt.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt-pt.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt-pt.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt-pt.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_pt-pt");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.pt_pt");dijit.nls.loading.pt_pt={"loadingState":"A carregar...","errorState":"Lamentamos, mas ocorreu um erro"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.pt_pt");dijit.nls.common.pt_pt={"buttonOk":"OK","buttonCancel":"Cancelar","buttonSave":"Guardar","itemClose":"Fechar"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.pt_pt");dijit.form.nls.validate.pt_pt={"rangeMessage":"Este valor encontra-se fora do intervalo.","invalidMessage":"O valor introduzido não é válido.","missingMessage":"Este valor é requerido."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_pt.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_pt");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.pt");dijit.nls.loading.pt={"loadingState":"Carregando...","errorState":"Desculpe, ocorreu um erro"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.pt");dijit.nls.common.pt={"buttonOk":"OK","buttonCancel":"Cancelar","buttonSave":"Salvar","itemClose":"Fechar"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.pt");dijit.form.nls.validate.pt={"rangeMessage":"Este valor está fora do intervalo. ","invalidMessage":"O valor inserido não é válido.","missingMessage":"Este valor é necessário."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ru.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ru.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ru.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_ru.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_ru");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.ru");dijit.nls.loading.ru={"loadingState":"Загрузка...","errorState":"Извините, возникла ошибка"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.ru");dijit.nls.common.ru={"buttonOk":"ОК","buttonCancel":"Отмена","buttonSave":"Сохранить","itemClose":"Закрыть"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.ru");dijit.form.nls.validate.ru={"rangeMessage":"Это значение вне диапазона.","invalidMessage":"Указано недопустимое значеР½Ð¸Ðµ.","missingMessage":"Это обязательное значение."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sk.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sk.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sk.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sk.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_sk");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.sk");dijit.nls.loading.sk={"loadingState":"Zavádzanie...","errorState":"Nastala chyba"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.sk");dijit.nls.common.sk={"buttonOk":"OK","buttonCancel":"ZruÅ¡iÅ¥","buttonSave":"UložiÅ¥","itemClose":"ZatvoriÅ¥"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.sk");dijit.form.nls.validate.sk={"rangeMessage":"Táto hodnota je mimo rozsah.","invalidMessage":"Zadaná hodnota nie je platná.","missingMessage":"Táto hodnota je vyžadovaná."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sl.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sl.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sl.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sl.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_sl");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.sl");dijit.nls.loading.sl={"loadingState":"Nalaganje...","errorState":"Oprostite, priÅ¡lo je do napake."};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.sl");dijit.nls.common.sl={"buttonOk":"V redu","buttonCancel":"Prekliči","buttonSave":"Shrani","itemClose":"Zapri"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.sl");dijit.form.nls.validate.sl={"rangeMessage":"Ta vrednost je zunaj obsega. ","invalidMessage":"Vnesena vrednost ni veljavna.","missingMessage":"Ta vrednost je zahtevana."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sv.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sv.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sv.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_sv.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_sv");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.sv");dijit.nls.loading.sv={"loadingState":"Läser in...","errorState":"Det uppstod ett fel."};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.sv");dijit.nls.common.sv={"buttonOk":"OK","buttonCancel":"Avbryt","buttonSave":"Spara","itemClose":"Stäng"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.sv");dijit.form.nls.validate.sv={"rangeMessage":"Värdet är utanför intervallet.","invalidMessage":"Det angivna värdet är ogiltigt.","missingMessage":"Värdet är obligatoriskt."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_th.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_th.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_th.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_th.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_th");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.th");dijit.nls.loading.th={"loadingState":"กำลังโหลด...","errorState":"ขออภัย เกิดข้อผิดพลาด"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.th");dijit.nls.common.th={"buttonOk":"ตกลง","buttonCancel":"ยกเลิก","buttonSave":"บันทึก","itemClose":"ปิด"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.th");dijit.form.nls.validate.th={"rangeMessage":"ค่านี้เกินช่วง","invalidMessage":"ค่าที่ป ้อนไม่ถูกต้อง","missingMessage":"จำเป็นต้องมีค่านี้"}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_tr.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_tr.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_tr.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_tr.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_tr");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.tr");dijit.nls.loading.tr={"loadingState":"Yükleniyor...","errorState":"Üzgünüz, bir hata oluştu"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.tr");dijit.nls.common.tr={"buttonOk":"Tamam","buttonCancel":"Ä°ptal","buttonSave":"Kaydet","itemClose":"Kapat"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.tr");dijit.form.nls.validate.tr={"rangeMessage":"Bu değer aralık dışında.","invalidMessage":"Girilen değer geçersiz.","missingMessage":"Bu değer gerekli."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_xx.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_xx.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_xx.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_xx.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_xx");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.xx");dijit.nls.loading.xx={"loadingState":"Loading...","errorState":"Sorry, an error occurred"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.xx");dijit.nls.common.xx={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.xx");dijit.form.nls.validate.xx={"rangeMessage":"This value is out of range.","invalidMessage":"The value entered is not valid.","missingMessage":"This value is required."}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh-cn.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh-cn.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh-cn.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh-cn.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_zh-cn");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.zh_cn");dijit.nls.loading.zh_cn={"loadingState":"正在加载...","errorState":"对不起,发生了错误"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.zh_cn");dijit.nls.common.zh_cn={"buttonOk":"确定","buttonCancel":"取消","buttonSave":"保存","itemClose":"关闭"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.zh_cn");dijit.form.nls.validate.zh_cn={"rangeMessage":"此值超出范围。","invalidMessage":"输入的值无效。","missingMessage":"此值是必需值。"}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh-tw.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh-tw.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh-tw.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh-tw.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_zh-tw");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.zh_tw");dijit.nls.loading.zh_tw={"loadingState":"載入中...","errorState":"抱歉,發生錯誤"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.zh_tw");dijit.nls.common.zh_tw={"buttonOk":"確定","buttonCancel":"取消","buttonSave":"儲存","itemClose":"關閉"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.zh_tw");dijit.form.nls.validate.zh_tw={"rangeMessage":"此值超出範圍。","invalidMessage":"輸入的值無效。","missingMessage":"必須提供此值。"}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh.js (added) +++ incubator/rave/donations/mitre-osec/web/script/dojo/release/portal/nls/all_zh.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1 @@ +dojo.provide("dojo.release.portal.nls.all_zh");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.zh");dijit.nls.loading.zh={"loadingState":"正在加载...","errorState":"对不起,发生了错误"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.zh");dijit.nls.common.zh={"buttonOk":"确定","buttonCancel":"取消","buttonSave":"保存","itemClose":"关闭"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.zh");dijit.form.nls.validate.zh={"rangeMessage":"此值超出范围。","invalidMessage":"输入的值无效。","missingMessage":"此值是必需值。"}; \ No newline at end of file Added: incubator/rave/donations/mitre-osec/web/script/editPrefs.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/editPrefs.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/editPrefs.js (added) +++ incubator/rave/donations/mitre-osec/web/script/editPrefs.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +portal.editPrefs = (function() { + var _boolCheckboxPrefix = "chk_"; + + // public data and functions + return { + toggleBooleanPref: function(checkbox) { + var isChecked = checkbox.checked; + var prefName = checkbox.name.substring(_boolCheckboxPrefix.length); + dojo.byId(prefName).value = isChecked; + } + } +})(); Propchange: incubator/rave/donations/mitre-osec/web/script/editPrefs.js ------------------------------------------------------------------------------ svn:executable = * Added: incubator/rave/donations/mitre-osec/web/script/gadgets.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/gadgets.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/gadgets.js (added) +++ incubator/rave/donations/mitre-osec/web/script/gadgets.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1,362 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* +This file represents all of the code that we were actually using out of the original gadgets.js file grabbed from Shindig, +and the custom gadgets-ext.js file that we used to add extensions to it. There was a ton of code in gadgets.js that we didn't +need and it was just causing confusion. Note that this code still needs further cleanup, but at least now we can get a better +sense of what we're actually dealing with here. + +TODO: Additional cleanup/reorganization of the entire JavaScript codebase. +*/ + +gadgets.rpc.register('resize_iframe', function(height) { + var max = 0x7FFFFFFF; + if (height > max) { + height = max; + } + + var element = document.getElementById(this.f); + if (element) { + element.style.height = height + 'px'; + } +}); + +gadgets.rpc.register('set_title', function(title) { + var element = document.getElementById(this.f + '_title'); + if (element) { + element.innerHTML = gadgets.util.escapeString(title); + } +}); + +gadgets.rpc.register('requestNavigateTo', function(view, opt_params) { + var regionGadgetId = gadgets.container.getGadget(this.f).regionGadgetId; + if (view.toUpperCase() == "CANVAS") { + portal.regionGadget.viewCanvas(regionGadgetId); + } else if (view.toUpperCase() == "EDITCUSTOMPREFS") { + portal.regionGadget.viewEditCustomPrefs(regionGadgetId); + } else if (view.toUpperCase() == "HOME") { + portal.page.loadPage(); + }else { + console.log("error: requestNavigateTo - unknown view name '" + view + "'"); + } +}); + +gadgets.rpc.register('reloadPage', function() { + portal.page.loadPage(); +}); + +gadgets.rpc.register('viewComments', function(regionGadgetId) { + portal.repository.getRegionGadgetComments(regionGadgetId); +}); + +/** + * Creates a new instance of gadget. Optional parameters are set as instance variables. + * @constructor + * @param {Object} params Parameters to set on gadget. Common parameters: + * "regionGadgetId": The region gadget id. + * "gadgetIdx": The index of the gadget on the page. + */ +gadgets.Gadget = function(params) { + if (params) { + for (var name in params) { + if (params.hasOwnProperty(name)) { + this[name] = params[name]; + } + } + } + + //Only initialize the iFrame information for the gadget if there is an iFrame + //to initalize from, this allows Gadget objects to be created outside of the + //main portal pages + var iFrame = dojo.byId(this.getIframeId()); + if (iFrame) { + //Parse the iframe URL to extract and keep a reference to the current security token. + var urlParams = portal.regionGadget.parseIframeUrl(iFrame.src); + this.securityToken = urlParams.st; + this.moduleId = urlParams.mid; + } +}; + +gadgets.Gadget.prototype.swapToggleButton = function() { + dojo.toggleClass(this.getToggleButtonId(), "gadgets-gadget-title-toggle-button-closed"); +}; + +gadgets.Gadget.prototype.getToggleButtonId = function() { + return this.getIframeId() + "_toggleButton"; +}; + +gadgets.Gadget.prototype.getMaximizeButtonId = function() { + return this.getIframeId() + "_maximizeButton"; +}; + +gadgets.Gadget.prototype.getMinimizeButtonId = function() { + return this.getIframeId() + "_minimizeButton"; +}; + +gadgets.Gadget.prototype.getEditButtonId = function() { + return this.getIframeId() + "_editButton"; +}; + +gadgets.Gadget.prototype.getSettingsButtonId = function() { + return this.getIframeId() + "_settingsButton"; +}; + +gadgets.Gadget.prototype.getDeleteButtonId = function() { + return this.getIframeId() + "_deleteButton"; +}; + +gadgets.Gadget.prototype.getIframeId = function() { + return gadgets.container.gadgetIframeIdPrefix + this.gadgetIdx; +}; + +gadgets.Gadget.prototype.getGadgetId = function() { + return this.gadgetId; +}; + +gadgets.Gadget.prototype.getGadgetIdx = function() { + return this.gadgetIdx; +}; + +gadgets.Gadget.prototype.getModuleId = function() { + return this.moduleId; +}; + +gadgets.Gadget.prototype.getGadgetChromeDivId = function() { + return "gadget-chrome-" + this.gadgetIdx; +}; + +gadgets.Gadget.prototype.getSecurityToken = function() { + return this.securityToken; +}; + +gadgets.Gadget.prototype.setSecurityToken = function(securityToken) { + this.securityToken = securityToken; +}; + +gadgets.Gadget.prototype.handleToggle = function() { + var _AVOIDCACHE = "avoidiframecache"; + var _RPCTOKEN_ANCHOR = "#rpctoken="; + var gadgetIframe = document.getElementById(this.getIframeId()); + if (gadgetIframe) { + var gadgetContent = gadgetIframe.parentNode; + var display = gadgetContent.style.display; + var isCurrentlyCollapsed = (display == 'none'); + + if (isCurrentlyCollapsed) { + // reload the iframe src so the gadget height gets rendered properly + gadgetContent.style.display = ''; + + // to avoid IE from reloading iframe from cache, and not resizing + // properly, we must add a dummy param to force a reload + // setting the src to itself doesn't work + + // first strip off rpctoken + var rpctokenSplit = gadgetIframe.src.split(_RPCTOKEN_ANCHOR); + var rpctoken = rpctokenSplit[1]; + // strip out any existing AVOIDCACHE param if someone is having a togglefest + var existingUrl = rpctokenSplit[0].split("&" + _AVOIDCACHE)[0]; + // recreate url with new AVOIDCACHE and the existing rpctoken + gadgetIframe.src = existingUrl + "&" + _AVOIDCACHE + "=" + new Date().getTime() + _RPCTOKEN_ANCHOR + rpctoken; + + // update the iframe and content div heights as appropriate + var curIframeHeight = gadgetIframe.style.height; + if (curIframeHeight == '0px') { + gadgetIframe.style.height = ''; + gadgetContent.style.height = ''; + } else { + gadgetContent.style.height = curIframeHeight; + } + + portal.regionGadget.setCollapseState(this.regionGadgetId, false); + } else { + gadgetContent.style.display = 'none'; + portal.regionGadget.setCollapseState(this.regionGadgetId, true); + } + } +}; + +gadgets.container = (function() { + // private data and functions + var gadgetMap = {}; + var editPrefsGadgetIdx; + + dojo.addOnLoad(function() { + // register our refresh security token function to fire every 50 minutes + window.setInterval(gadgets.container.refreshSecurityTokens, 1000 * 60 * 50); + }); + + // public data and functions + return { + errorContent: '' + + '' + + '' + + '' + + '' + + ''+ + '' + + '
' + portal.common.applicationName + ' was not able to update its data. Chances are, this happened because the internet connection was lost.

Please try reconnecting, and then refreshing the page.

'+ + '' + + '
', + + gadgetIframeIdPrefix: "remote_iframe_", + + addGadget: function(gadget) { + gadgetMap[gadget.gadgetIdx] = gadget; + }, + + getGadget: function(gadgetIdx) { + // gadgetIdx could be a simple integer or a string name of the iframe depending + // on where it is called from. The indexOf function won't exist for the integer + // so check to see that it does exist before calling, otherwise will get an error. + if (gadgetIdx.indexOf && gadgetIdx.indexOf(gadgets.container.gadgetIframeIdPrefix) != -1) { + gadgetIdx = gadgetIdx.substring(gadgets.container.gadgetIframeIdPrefix.length); + } + + return gadgetMap[gadgetIdx]; + }, + + getAllGadgets: function() { + var allGadgets = new Array(); + + for (var name in gadgetMap) { + if (gadgetMap.hasOwnProperty(name)) { + allGadgets.push(gadgetMap[name]); + } + } + + return allGadgets; + }, + + getAllGadgetInstances: function(gadgetId) { + var returnGadgets = new Array(); + var allGadgets = gadgets.container.getAllGadgets(); + + for (var i = 0; i < allGadgets.length; i++) { + var gadget = allGadgets[i]; + if (gadget.getGadgetId() == gadgetId) { + returnGadgets.push(gadget); + } + } + + return returnGadgets; + }, + + refreshSecurityTokens: function() { + //gather up all the current tokens to send them off to be refreshed + var allGadgets = gadgets.container.getAllGadgets(); + var securityTokens = new Array(); + + for (var i = 0; i < allGadgets.length; i++) { + var gadget = allGadgets[i]; + securityTokens.push({gadgetId: gadget.getGadgetIdx(), securityToken: gadget.getSecurityToken()}) + } + + //send the request to refresh the tokens + dojo.xhrPost({ + url: portal.common.webservice.securityToken + '/refresh', + content: {json: dojo.toJson(securityTokens)}, + handleAs: 'json', + load: function(response) { + var securityTokens = response.result; + for (var i = 0; i < securityTokens.length; i++) { + var securityToken = securityTokens[i]; + //get the gadget from the gadget container and update its token on the container side + var gadget = gadgets.container.getGadget(securityToken.gadgetId); + gadget.setSecurityToken(securityToken.securityToken); + try { + //and now update its token on the gadget side via gadgets rpc + gadgets.rpc.call(gadget.getIframeId(), "update_security_token", null, gadget.getSecurityToken()); + } catch (e) { + var dialog = new dijit.Dialog({title: 'Inactivity Timeout', content: gadgets.container.errorContent}); + dialog.show(); + } + } + }, + error: function(error, ioargs) { + // if the xhrPost fails completely, most likely there is a network or server issue + var dialog = new dijit.Dialog({title: 'Inactivity Timeout', content: gadgets.container.errorContent}); + dialog.show(); + } + }); + }, + + /** + * When we drag n' drop a gadget in FF, FF reloads the iframe -- and if the security token in + * the original iframe URL has expired, we get an ugly malformed security token error from shindig. + * To get around this we'll take the current iframe url and replace the security token in it with + * the current token we have for the gadget (which has been maintained by the auth-refresh process) + * and then navigate the iframe to the updated url. + * + * @param iframeId The DOM id of the gadget iframe to reload or the gadget iframe object itself. + */ + reloadGadgetIframe: function(iframeId) { + var gadgetIframe = dojo.byId(iframeId); + var gadgetObject = gadgets.container.getGadget(gadgetIframe.id); + gadgetIframe.src = gadgetIframe.src.replace(/st=.*?&/, "st=" + gadgetObject.getSecurityToken() + "&"); + }, + + setEditPrefsGadgetIdx: function(gadgetIdx) { + editPrefsGadgetIdx = gadgetIdx; + }, + + getEditPrefsGadgetIdx: function() { + return editPrefsGadgetIdx; + }, + + // this is the initiator of the container->gadget rpc call to save the gadget's prefs in custom edit mode + customEditPrefsSave: function() { + gadgets.container.showSavingPrefsDialog(true); + gadgets.rpc.call(gadgets.container.gadgetIframeIdPrefix + gadgets.container.getEditPrefsGadgetIdx(), 'savePrefs', gadgets.container.customEditPrefsSaveCallback); + }, + + // callback function fired after gadgets.rpc has completed the rpc call to the custom gadget save function + customEditPrefsSaveCallback: function(cancelSaveAction) { + gadgets.container.showSavingPrefsDialog(false); + // if cancelSaveAction is false or null then proceed with redirect + // if it is true (due to gadget form invalidation?) then stay on edit prefs page + if (!cancelSaveAction) { + portal.page.loadPage(); + } + }, + + customEditPrefsCancel: function() { + if (confirm("Are you sure you want to lose any changes?")) { + portal.page.loadPage(); + } + }, + + showSavingPrefsDialog: function(display) { + var dialog = dijit.byId("customEditPrefsSaveDialog"); + if (display) { + if (dialog == null) { + dialog = new dijit.Dialog({ + id: "customEditPrefsSaveDialog", + title: "Saving Preferences", + content: "Saving Preferences...", + style: "width: 300px" + }); + } + dialog.show(); + } else { + if (dialog != null) dialog.hide(); + } + } + } +})(); \ No newline at end of file Propchange: incubator/rave/donations/mitre-osec/web/script/gadgets.js ------------------------------------------------------------------------------ svn:executable = * Added: incubator/rave/donations/mitre-osec/web/script/gadgets/osec_gadget.js URL: http://svn.apache.org/viewvc/incubator/rave/donations/mitre-osec/web/script/gadgets/osec_gadget.js?rev=1087796&view=auto ============================================================================== --- incubator/rave/donations/mitre-osec/web/script/gadgets/osec_gadget.js (added) +++ incubator/rave/donations/mitre-osec/web/script/gadgets/osec_gadget.js Fri Apr 1 16:42:22 2011 @@ -0,0 +1,173 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +// This javascript file is used for common gadget functions +var osec = osec || {}; + +osec.common = (function() { + // this value must match up with what gets called on the container side + var _SAVE_PREFS_HANDLER_NAME = "savePrefs"; + var _SET_USER_PREFS_HANDLER_NAME = "setUserPrefs"; + var _RELOAD_PAGE_HANDLER_NAME = "reloadPage"; + var _VIEW_COMMENTS_HANDLER_NAME = "viewComments"; + + return { + init: function() { + // register a dummy default savePrefs function which throws an error + osec.common.registerSavePrefsRPC(function() { + throw("No custom save prefs function has been registered. Call osec.common.registerSavePrefsRPC in your gadget"); + }); + + // Change font size based on the screen width + if (screen.width) { + if (screen.width <= 1024) { document.body.style.fontSize = '70%'; } + } + + }, + + /** + * Gadgets using the custom edit prefs functionality need to used this function to register their own save + * method. + * + * @param savePrefFunction The gadget's custom function to be invoked from the container when a user clicks on + * the save button. Clicking the save button results in an RPC call from the container to the gadget for the + * "savePrefs" RPC service (which results in the custom function registered here being called). + */ + registerSavePrefsRPC: function(savePrefFunction) { + gadgets.rpc.register(_SAVE_PREFS_HANDLER_NAME, function() { + //When the user clicks on the save button on the container, the container makes an RPC call to the gadget + //which gets us here. Along with that RPC call the container passed a callback which it would like fired + //when the gadget has finished handling the save call. The reference to the callback below is our handle + //to fire that container side callback from our gadget. Under the covers the callback actually results + //in another RPC call back to the container to tell the container side RPC machinery to execute the callback + //the container registered when it made the initial call to get us here. + savePrefFunction(this.callback); + }); + }, + + /** + * Gadgets using the custom edit prefs functionality should call this function to save all their userPrefs. An + * example call to this function might look something like: + * + * osec.common.setUserPrefs({userPref1:"value1", userPref2:"value2", ...}, callback); + * + * @param userPrefs A javascript object containing key/value pairs of user prefs and values to save. + * @param callback The callback function to execute once setUserPrefs has finished. + */ + setUserPrefs: function(userPrefs, callback) { + gadgets.rpc.call(null, _SET_USER_PREFS_HANDLER_NAME, callback, userPrefs); + }, + + /** + * Call to the container to reload the current page. This function is + * usefull if you want to reset the state of a page after manipulating + * a gadget or to keep multiple gadgets in sync if they are pulling + * from the same data source. + * + */ + reloadPage: function() { + gadgets.rpc.call('', _RELOAD_PAGE_HANDLER_NAME); + }, + + /** + * Call to the container to view this gadget's comments on the + * detail page + * + */ + viewComments: function(moduleId) { + gadgets.rpc.call('', _VIEW_COMMENTS_HANDLER_NAME, null, moduleId); + }, + + + quicksort : function () { + this.quicksort = function (list) { + this.sort(list, 0, list.length - 1); + }; + + this.sort = function(list, first, last) { + if (first < last) + { + var pivot = list[first]; + var splitPoint = this.partition(list, pivot, first, last); + list[splitPoint] = pivot; + this.sort(list, first, splitPoint-1); + this.sort(list, splitPoint+1, last); + } + }; + + this.partition = function(list, pivot, first, last) { + //The lowMark is the low 'empty spot' in the array this is initialized + //as the pivot point + var lowMark = first; + //The highMark is the current high 'empty spot' + var highMark = last; + + //Continue searching for entries that need to be placed on either side + //of the pivot point until they meet in the middle and the lowMark and the + //highMark are the same flagging that the pivot entry needs to be placed + //back into that spot of the array. + while (lowMark < highMark) + { + //search the end of the array until we find an entry which needs to + //go before to pivot point + while (highMark > lowMark) + { + if (this.compare(pivot, list[highMark]) > 0) + { + //move the item to the lowMark which is an empty spot + //making the highMark now the empty spot in the array + list[lowMark] = list[highMark]; + break; + } + highMark--; + } + + //search the beginning of the array until we find an entry which + //needs to go after the pivot point + while (lowMark < highMark) + { + if (this.compare(pivot, list[lowMark]) < 0) + { + //move the item to the highMark which is an empty spot + //making the lowMark now the empty spot in the array + list[highMark] = list[lowMark]; + break; + } + lowMark++; + } + } + return lowMark; + }; + + this.compare = function(firstObject, secondObject) { + if (firstObject > secondObject) + return -1; + + else if (firstObject == secondObject) + return 0; + + return 1; + }; + } + + } +})(); + +// initialize the osec.common namespace +osec.common.init(); \ No newline at end of file Propchange: incubator/rave/donations/mitre-osec/web/script/gadgets/osec_gadget.js ------------------------------------------------------------------------------ svn:executable = *