Changeset 1232


Ignore:
Timestamp:
04/21/11 15:04:29 (13 years ago)
Author:
twagoo
Message:

Added debug parameter for Flex gui, activated through debug flash param in index.jsp. In debug mode, FlexSpy? button appears in GUI. A dependency for FlexSpy? has been added to ComponentBrowserGui pom.

Location:
ComponentRegistry/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui

    • Property svn:ignore
      •  

        old new  
        55html-template
        66.settings
         7.externalToolBuilders
         8.flexConfig.xml
  • ComponentRegistry/trunk/ComponentBrowserGui/pom.xml

    r1218 r1232  
    44                 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    55
    6         <modelVersion>4.0.0</modelVersion>
     6    <modelVersion>4.0.0</modelVersion>
    77    <parent>
    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>
     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>
    2020
    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>
    5561
    56         <build>
    57                 <sourceDirectory>src/main/flex</sourceDirectory>
    58                 <plugins>
    59                         <plugin>
    60                                 <groupId>org.sonatype.flexmojos</groupId>
    61                                 <artifactId>flexmojos-maven-plugin</artifactId>
    62                                 <version>3.9</version>
    63                                 <extensions>true</extensions>
    64                                 <configuration>
    65                                         <debug>true</debug>
    66                                         <generateHtmlWrapper>true</generateHtmlWrapper>
    67                                         <targetPlayer>10.0.0</targetPlayer>
    68                                 </configuration>
    69                                 <dependencies>
    70                                         <dependency>
    71                                                 <groupId>com.adobe.flex</groupId>
    72                                                 <artifactId>compiler</artifactId>
    73                                                 <version>3.6.0.16321</version>
    74                                                 <type>pom</type>
    75                                         </dependency>
    76                                 </dependencies>
    77                         </plugin>
    78                 </plugins>
    79         </build>
     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>
    8086
    8187
    82         <repositories>
    83                 <repository>
    84                         <id>forge</id>
    85                         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
    86                         <snapshots>
    87                                 <enabled>true</enabled>
    88                         </snapshots>
    89                         <releases>
    90                                 <enabled>true</enabled>
    91                         </releases>
    92                 </repository>
    93         </repositories>
     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>
    94100
    95         <pluginRepositories>
    96                 <pluginRepository>
    97                         <id>forge</id>
    98                         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
    99                         <snapshots>
    100                                 <enabled>true</enabled>
    101                         </snapshots>
    102                         <releases>
    103                                 <enabled>true</enabled>
    104                         </releases>
    105                 </pluginRepository>
    106         </pluginRepositories>
     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>
    107113
    108114
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/Config.as

    r1092 r1232  
    1616                public static const REGISTRY_PARAM_ITEM:String = "item";
    1717                public static const REGISTRY_PARAM_SPACE:String = "space";
     18                public static const REGISTRY_PARAM_DEBUG:String = "debug";
    1819
    1920                //Possible views to start with.
     
    4546                private var _space:String = SPACE_PUBLIC;
    4647                private var _userSpace:Boolean = false;
     48                private var _debug:Boolean = false;
    4749
    4850                public function Config() {
     
    6870                        if (space) {
    6971                                _space = space;
     72                        }
     73                        var debug:int = applicationParameters.debug;
     74                        if(debug) {
     75                                _debug = Boolean(debug);
    7076                        }
    7177                }
     
    133139                        return _space;
    134140                }
     141               
     142                public function get debug():Boolean {
     143                        return _debug;
     144                }
    135145
    136146                public static function getBookmarkUrl(item:ItemDescription):String {
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/main.mxml

    r1092 r1232  
    1111                        import clarin.cmdi.componentregistry.services.PingSessionService;
    1212                        import mx.controls.Alert;
     13                        import mx.controls.Button;
    1314                        import clarin.cmdi.componentregistry.services.Config;
    1415                        import clarin.cmdi.componentregistry.common.Credentials;
    1516                        import mx.managers.PopUpManager;
    1617                        import org.hasseg.externalMouseWheel.ExternalMouseWheelSupport;
     18                import com.flexspy.FlexSpy;
    1719
    1820                        private var sessionPinger:PingSessionService;
     
    2022                        private function initializeInstances():void {
    2123                                Credentials.create(Application.application.parameters);
    22                                 Config.create(Application.application.parameters);
     24                                Config.create(Application.application.parameters);                             
    2325                        }
    2426
     
    3133                                }
    3234                                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();
    3346                        }
    3447                ]]>
     
    4053                          title="Clarin Component Browser"
    4154                          x="0"
    42                           y="0">
     55                          y="0">                         
    4356
    4457                <mx:VBox height="100%"
    4558                                 width="100%">
    46                         <mx:HBox borderStyle="none"
     59                        <mx:HBox borderStyle="none" id="topBar"
    4760                                         width="100%">
    4861                                <mx:ToggleButtonBar id="toggleBar"
     
    5871                </mx:VBox>
    5972        </mx:Panel>
     73               
    6074</mx:Application>
  • ComponentRegistry/trunk/ComponentRegistry/pom.xml

    r1211 r1232  
    152152    <registryRoot>/tmp/ComponentRegistry</registryRoot>
    153153    <ComponentRegistrySwfName>${pom.artifactId}-${ComponentBrowserGui.version}</ComponentRegistrySwfName>
     154    <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
     155    <flexDebug>0</flexDebug>
    154156  </properties>
    155157
  • ComponentRegistry/trunk/ComponentRegistry/src/main/webapp/WEB-INF/web.xml

    r916 r1232  
    2929 
    3030<!-- 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>
    3232    <filter-name>AAIFilter</filter-name>
    3333    <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class>
     
    3636    <filter-name>AAIFilter</filter-name>
    3737    <url-pattern>/*</url-pattern>
    38   </filter-mapping>
     38  </filter-mapping>-->
    3939 
    4040  <listener>
     
    9595  </servlet-mapping>
    9696
    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>
    130130
    131131</web-app>
  • ComponentRegistry/trunk/ComponentRegistry/src/main/webresources/index.jsp

    r857 r1232  
    9090                        "type", "application/x-shockwave-flash",
    9191                        "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}"
    9393                           
    9494        );
     
    113113                allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    114114                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}">
    116116        </embed>
    117117</object>
Note: See TracChangeset for help on using the changeset viewer.