Changeset 2426
- Timestamp:
- 12/14/12 13:03:27 (11 years ago)
- Location:
- ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/IsocatConnectLinkButton.as
r2423 r2426 10 10 import flash.net.navigateToURL; 11 11 12 import mx.controls.Alert; 13 12 14 public class IsocatConnectLinkButton extends LabelButton 13 15 { 14 16 public function IsocatConnectLinkButton() 15 17 { 16 super(connectToIsocat); 18 super(connectToIsocat); 17 19 } 18 20 -
ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/Config.as
r2423 r2426 41 41 private static const USER_SETTINGS_URL:String = "/admin/userSettings"; 42 42 private static const COMMENTS_URL_PATH:String = "/comments/"; 43 private static const OAUTH_SERVLET:String = "/oauth2/connect"; 44 private static const OAUTH_CONNECT_SERVLET:String = OAUTH_SERVLET; 45 private static const OAUTH_CHECK_SERVLET:String = OAUTH_SERVLET + "?acquire=false"; 43 private static const OAUTH_CONNECT_SERVLET:String = "/oauth2/connect"; 44 private static const OAUTH_CHECK_SERVLET:String = "/oauth2/check"; 46 45 private static const ISOCAT_SERVLET:String = "/oauth2/isocat"; 47 46 -
ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/OAuth2Service.as
r2423 r2426 3 3 4 4 import flash.events.EventDispatcher; 5 import flash.external.ExternalInterface; 5 6 6 7 import mx.controls.Alert; … … 24 25 25 26 public function OAuth2Service() { 27 ExternalInterface.addCallback("handleOAuthConnect", handleOAuthConnect); 26 28 } 27 29 … … 68 70 } 69 71 } 70 71 // private function handleAcquireResult(resultEvent:ResultEvent):void {72 // if (resultEvent.statusCode >= 200 && resultEvent.statusCode < 300) {73 // var data:XML = new XML(resultEvent.result);74 // searchResults = data.dcif::dataCategory;75 // } else {76 // Alert.show("Unexpected error, server returned status: " + resultEvent.statusCode + "\n Message = ");77 // }78 // }79 72 80 73 private function handleError(faultEvent:FaultEvent):void { … … 84 77 } 85 78 86 79 /*** 80 * To be called from JavaScript in embedding page 81 */ 82 private function handleOAuthConnect(result:String):void{ 83 // OAuth connect finished, either failed or succeeded. Update status. 84 check(); 85 ExternalInterface.call("hideOAuthFrame"); 86 } 87 87 } 88 88 }
Note: See TracChangeset
for help on using the changeset viewer.