Changeset 1232
- Timestamp:
- 04/21/11 15:04:29 (13 years ago)
- Location:
- ComponentRegistry/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui
- Property svn:ignore
-
old new 5 5 html-template 6 6 .settings 7 .externalToolBuilders 8 .flexConfig.xml
-
- Property svn:ignore
-
ComponentRegistry/trunk/ComponentBrowserGui/pom.xml
r1218 r1232 4 4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 5 5 6 6 <modelVersion>4.0.0</modelVersion> 7 7 <parent> 8 <groupId>clarin.cmdi</groupId>9 <artifactId>componentRegistry.parent</artifactId>10 <version>1.0</version>11 12 13 14 15 16 17 18 19 8 <groupId>clarin.cmdi</groupId> 9 <artifactId>componentRegistry.parent</artifactId> 10 <version>1.0</version> 11 </parent> 12 <groupId>clarin.cmdi</groupId> 13 <artifactId>ComponentBrowserGui</artifactId> 14 <version>${ComponentBrowserGui.version}</version> 15 <packaging>swf</packaging> 16 <name>ComponentBrowserGui</name> 17 <properties> 18 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 19 </properties> 20 20 21 <dependencies> 22 <dependency> 23 <groupId>com.adobe.flex.framework</groupId> 24 <artifactId>flex-framework</artifactId> 25 <version>3.6.0.16321</version> 26 <type>pom</type> 27 <exclusions> 28 <exclusion> 29 <groupId>com.adobe.flex.framework</groupId> 30 <artifactId>playerglobal</artifactId> 31 </exclusion> 32 </exclusions> 33 </dependency> 34 <dependency> 35 <groupId>com.adobe.flex.framework</groupId> 36 <artifactId>playerglobal</artifactId> 37 <version>3.6.0.16321</version> 38 <classifier>10</classifier> 39 <type>swc</type> 40 </dependency> 41 <dependency> 42 <groupId>com.adobe</groupId> 43 <artifactId>as3corelib</artifactId> 44 <version>0.92.1</version> 45 <type>swc</type> 46 </dependency> 47 <dependency> 48 <groupId>com.adobe.flexunit</groupId> 49 <artifactId>flexunit</artifactId> 50 <version>0.90</version> 51 <type>swc</type> 52 <scope>test</scope> 53 </dependency> 54 </dependencies> 21 <dependencies> 22 <dependency> 23 <groupId>com.adobe.flex.framework</groupId> 24 <artifactId>flex-framework</artifactId> 25 <version>3.6.0.16321</version> 26 <type>pom</type> 27 <exclusions> 28 <exclusion> 29 <groupId>com.adobe.flex.framework</groupId> 30 <artifactId>playerglobal</artifactId> 31 </exclusion> 32 </exclusions> 33 </dependency> 34 <dependency> 35 <groupId>com.adobe.flex.framework</groupId> 36 <artifactId>playerglobal</artifactId> 37 <version>3.6.0.16321</version> 38 <classifier>10</classifier> 39 <type>swc</type> 40 </dependency> 41 <dependency> 42 <groupId>com.adobe</groupId> 43 <artifactId>as3corelib</artifactId> 44 <version>0.92.1</version> 45 <type>swc</type> 46 </dependency> 47 <dependency> 48 <groupId>com.adobe.flexunit</groupId> 49 <artifactId>flexunit</artifactId> 50 <version>0.90</version> 51 <type>swc</type> 52 <scope>test</scope> 53 </dependency> 54 <dependency> 55 <groupId>com.flexspy</groupId> 56 <artifactId>flexspy</artifactId> 57 <version>1.3</version> 58 <type>swc</type> 59 </dependency> 60 </dependencies> 55 61 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 62 <build> 63 <sourceDirectory>src/main/flex</sourceDirectory> 64 <plugins> 65 <plugin> 66 <groupId>org.sonatype.flexmojos</groupId> 67 <artifactId>flexmojos-maven-plugin</artifactId> 68 <version>3.9</version> 69 <extensions>true</extensions> 70 <configuration> 71 <debug>true</debug> 72 <generateHtmlWrapper>true</generateHtmlWrapper> 73 <targetPlayer>10.0.0</targetPlayer> 74 </configuration> 75 <dependencies> 76 <dependency> 77 <groupId>com.adobe.flex</groupId> 78 <artifactId>compiler</artifactId> 79 <version>3.6.0.16321</version> 80 <type>pom</type> 81 </dependency> 82 </dependencies> 83 </plugin> 84 </plugins> 85 </build> 80 86 81 87 82 83 84 85 86 87 88 89 90 91 92 93 88 <repositories> 89 <repository> 90 <id>forge</id> 91 <url>http://repository.sonatype.org/content/groups/flexgroup</url> 92 <snapshots> 93 <enabled>true</enabled> 94 </snapshots> 95 <releases> 96 <enabled>true</enabled> 97 </releases> 98 </repository> 99 </repositories> 94 100 95 96 97 98 99 100 101 102 103 104 105 106 101 <pluginRepositories> 102 <pluginRepository> 103 <id>forge</id> 104 <url>http://repository.sonatype.org/content/groups/flexgroup</url> 105 <snapshots> 106 <enabled>true</enabled> 107 </snapshots> 108 <releases> 109 <enabled>true</enabled> 110 </releases> 111 </pluginRepository> 112 </pluginRepositories> 107 113 108 114 -
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/Config.as
r1092 r1232 16 16 public static const REGISTRY_PARAM_ITEM:String = "item"; 17 17 public static const REGISTRY_PARAM_SPACE:String = "space"; 18 public static const REGISTRY_PARAM_DEBUG:String = "debug"; 18 19 19 20 //Possible views to start with. … … 45 46 private var _space:String = SPACE_PUBLIC; 46 47 private var _userSpace:Boolean = false; 48 private var _debug:Boolean = false; 47 49 48 50 public function Config() { … … 68 70 if (space) { 69 71 _space = space; 72 } 73 var debug:int = applicationParameters.debug; 74 if(debug) { 75 _debug = Boolean(debug); 70 76 } 71 77 } … … 133 139 return _space; 134 140 } 141 142 public function get debug():Boolean { 143 return _debug; 144 } 135 145 136 146 public static function getBookmarkUrl(item:ItemDescription):String { -
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/main.mxml
r1092 r1232 11 11 import clarin.cmdi.componentregistry.services.PingSessionService; 12 12 import mx.controls.Alert; 13 import mx.controls.Button; 13 14 import clarin.cmdi.componentregistry.services.Config; 14 15 import clarin.cmdi.componentregistry.common.Credentials; 15 16 import mx.managers.PopUpManager; 16 17 import org.hasseg.externalMouseWheel.ExternalMouseWheelSupport; 18 import com.flexspy.FlexSpy; 17 19 18 20 private var sessionPinger:PingSessionService; … … 20 22 private function initializeInstances():void { 21 23 Credentials.create(Application.application.parameters); 22 Config.create(Application.application.parameters); 24 Config.create(Application.application.parameters); 23 25 } 24 26 … … 31 33 } 32 34 viewStack.loadStartup(); 35 36 if(Config.instance.debug){ 37 var flexSpyButton:Button = new Button(); 38 flexSpyButton.label="FlexSpy"; 39 flexSpyButton.addEventListener(MouseEvent.CLICK,showFlexSpy); 40 topBar.addChild(flexSpyButton); 41 } 42 } 43 44 private function showFlexSpy(event:Event):void{ 45 FlexSpy.show(); 33 46 } 34 47 ]]> … … 40 53 title="Clarin Component Browser" 41 54 x="0" 42 y="0"> 55 y="0"> 43 56 44 57 <mx:VBox height="100%" 45 58 width="100%"> 46 <mx:HBox borderStyle="none" 59 <mx:HBox borderStyle="none" id="topBar" 47 60 width="100%"> 48 61 <mx:ToggleButtonBar id="toggleBar" … … 58 71 </mx:VBox> 59 72 </mx:Panel> 73 60 74 </mx:Application> -
ComponentRegistry/trunk/ComponentRegistry/pom.xml
r1211 r1232 152 152 <registryRoot>/tmp/ComponentRegistry</registryRoot> 153 153 <ComponentRegistrySwfName>${pom.artifactId}-${ComponentBrowserGui.version}</ComponentRegistrySwfName> 154 <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server> 155 <flexDebug>0</flexDebug> 154 156 </properties> 155 157 -
ComponentRegistry/trunk/ComponentRegistry/src/main/webapp/WEB-INF/web.xml
r916 r1232 29 29 30 30 <!-- Make sure this one is declared before the wicket filter, the order matters. Shibboleth should trigger the login, before continuing with the wicket filter.--> 31 <filter> 31 <!-- <filter> 32 32 <filter-name>AAIFilter</filter-name> 33 33 <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class> … … 36 36 <filter-name>AAIFilter</filter-name> 37 37 <url-pattern>/*</url-pattern> 38 </filter-mapping> 38 </filter-mapping>--> 39 39 40 40 <listener> … … 95 95 </servlet-mapping> 96 96 97 <!-- <security-constraint>-->98 <!-- <display-name>ComponentRegistry web service</display-name>-->99 <!-- <web-resource-collection>-->100 <!-- <web-resource-name>ComponentRegistry edit</web-resource-name>-->101 <!-- <description></description>-->102 <!-- <url-pattern>/rest/*</url-pattern>-->103 <!-- <http-method>DELETE</http-method>-->104 <!-- <http-method>PUT</http-method>-->105 <!-- <http-method>POST</http-method>-->106 <!-- </web-resource-collection>-->107 <!-- <auth-constraint>-->108 <!-- <role-name>tomcat</role-name>-->109 <!-- </auth-constraint>-->110 <!-- </security-constraint>-->111 <!-- <security-constraint>-->112 <!-- <display-name>ComponentRegistry SWF GET</display-name>-->113 <!-- <web-resource-collection>-->114 <!-- <web-resource-name>ComponentRegistry access</web-resource-name>-->115 <!-- <description></description>-->116 <!-- <url-pattern>/*</url-pattern>-->117 <!-- <http-method>GET</http-method>-->118 <!-- </web-resource-collection>-->119 <!-- <auth-constraint>-->120 <!-- <role-name>tomcat</role-name>-->121 <!-- </auth-constraint>-->122 <!-- </security-constraint>-->123 <!-- <login-config>-->124 <!-- <auth-method>BASIC</auth-method>-->125 <!-- </login-config>-->126 <!-- <security-role>-->127 <!-- <description> The role that is required to log in to the Application </description>-->128 <!-- <role-name>tomcat</role-name>-->129 <!-- </security-role>-->97 <security-constraint> 98 <display-name>ComponentRegistry web service</display-name> 99 <web-resource-collection> 100 <web-resource-name>ComponentRegistry edit</web-resource-name> 101 <description></description> 102 <url-pattern>/rest/*</url-pattern> 103 <http-method>DELETE</http-method> 104 <http-method>PUT</http-method> 105 <http-method>POST</http-method> 106 </web-resource-collection> 107 <auth-constraint> 108 <role-name>tomcat</role-name> 109 </auth-constraint> 110 </security-constraint> 111 <security-constraint> 112 <display-name>ComponentRegistry SWF GET</display-name> 113 <web-resource-collection> 114 <web-resource-name>ComponentRegistry access</web-resource-name> 115 <description></description> 116 <url-pattern>/*</url-pattern> 117 <http-method>GET</http-method> 118 </web-resource-collection> 119 <auth-constraint> 120 <role-name>tomcat</role-name> 121 </auth-constraint> 122 </security-constraint> 123 <login-config> 124 <auth-method>BASIC</auth-method> 125 </login-config> 126 <security-role> 127 <description> The role that is required to log in to the Application </description> 128 <role-name>tomcat</role-name> 129 </security-role> 130 130 131 131 </web-app> -
ComponentRegistry/trunk/ComponentRegistry/src/main/webresources/index.jsp
r857 r1232 90 90 "type", "application/x-shockwave-flash", 91 91 "pluginspage", "http://www.adobe.com/go/getflashplayer", 92 "FlashVars", "serviceRootUrl=${serviceRootUrl}&userName=${pageContext.request.remoteUser}&item=${param.item}&view=${param.view}&space=${param.space} "92 "FlashVars", "serviceRootUrl=${serviceRootUrl}&userName=${pageContext.request.remoteUser}&item=${param.item}&view=${param.view}&space=${param.space}&debug=${flexDebug}" 93 93 94 94 ); … … 113 113 allowScriptAccess="sameDomain" type="application/x-shockwave-flash" 114 114 pluginspage="http://www.adobe.com/go/getflashplayer" 115 FlashVars="serviceRootUrl=${serviceRootUrl}&userName=${pageContext.request.remoteUser}&item=${param.item}&view=${param.view}&space=${param.space} ">115 FlashVars="serviceRootUrl=${serviceRootUrl}&userName=${pageContext.request.remoteUser}&item=${param.item}&view=${param.view}&space=${param.space}&debug=${flexDebug}"> 116 116 </embed> 117 117 </object>
Note: See TracChangeset
for help on using the changeset viewer.