cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomek...@apache.org
Subject svn commit: r983258 [1/4] - in /cxf/sandbox/logbrowser: distribution/src/main/release/samples/logbrowser/src/demo/logbrowser/ rt/management-web/ rt/management-web/src/main/java/org/apache/cxf/management/web/logging/bootstrapping/ rt/management-web/src/...
Date Sat, 07 Aug 2010 16:58:01 GMT
Author: tomekopo
Date: Sat Aug  7 16:57:58 2010
New Revision: 983258

URL: http://svn.apache.org/viewvc?rev=983258&view=rev
Log:
CXF-2881: Refactored code

Added:
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/LogBrowser.gwt.xml
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/AbstractAuthenticationFilter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/AuthenticationRequired.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/BootstrapStorage.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/Settings.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SettingsStorage.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SimpleAuthenticationFilter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SimpleXMLSettingsStorage.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/Subscription.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/DefaultEventBus.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Dispatcher.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/EventBus.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Injector.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/LogBrowser.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Module.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/browser/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToAccessControlerEvent.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToAccessControlerEventHandler.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToBrowserEvent.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToBrowserEventHandler.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToSettingsEvent.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToSettingsEventHandler.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/RemoteStorageAccessDeniedEvent.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/RemoteStorageAccessDeniedEventHandler.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/SignOutEvent.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/SignOutEventHandler.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/exception/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/helper/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/place/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/presenter/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/AbstractCallback.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/browser/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/browser/Entry.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/browser/Feed.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/browser/FeedProxy.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/browser/FeedProxyImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/browser/Links.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/settings/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/settings/Base64.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/settings/Credentials.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/settings/LocalStorage.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/settings/LocalStorageImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/settings/RemoteStorageProxy.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/settings/RemoteStorageProxyImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/settings/Settings.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/settings/SettingsFacade.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/service/settings/Subscription.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/settings/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/BasePresenter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/ErrorDialog.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/Presenter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/View.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlPresenter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlView.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlView.ui.xml
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/accesscontroler/AccessControlViewImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowsePresenter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowseView.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowseView.ui.xml
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/BrowseViewImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/EntryTable.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/NavigationLinks.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/NavigationLinks.ui.xml
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/SelectableTable.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/browser/SubscriptionTable.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/resources/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/resources/LogBrowserConstans.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/resources/LogBrowserCss.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/resources/LogBrowserResources.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/resources/loader.gif   (with props)
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/resources/logbrowser.css
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsPresenter.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsView.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsView.ui.xml
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SettingsViewImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SubscriptionDialog.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SubscriptionDialogImpl.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SubscriptionEntry.ui.xml
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/ui/settings/SubscriptionForm.ui.xml
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/view/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/resources/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/resources/LogBrowser.html
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/resources/json2.min.js
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/resources/jstorage.config.js
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/resources/jstorage.min.js
Removed:
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/bootstrapping/
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/
    cxf/sandbox/logbrowser/rt/management-web/src/main/resources/org/
    cxf/sandbox/logbrowser/rt/management-web/src/test/java/org/apache/cxf/management/web/logging/atom/
    cxf/sandbox/logbrowser/rt/management-web/src/test/java/org/apache/cxf/management/web/logging/bootstrapping/
    cxf/sandbox/logbrowser/rt/management-web/src/test/resources/logging.properties
Modified:
    cxf/sandbox/logbrowser/distribution/src/main/release/samples/logbrowser/src/demo/logbrowser/App.java
    cxf/sandbox/logbrowser/rt/management-web/pom.xml
    cxf/sandbox/logbrowser/rt/management-web/src/test/java/org/apache/cxf/management/web/logging/MockApp.java

Modified: cxf/sandbox/logbrowser/distribution/src/main/release/samples/logbrowser/src/demo/logbrowser/App.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/distribution/src/main/release/samples/logbrowser/src/demo/logbrowser/App.java?rev=983258&r1=983257&r2=983258&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/distribution/src/main/release/samples/logbrowser/src/demo/logbrowser/App.java (original)
+++ cxf/sandbox/logbrowser/distribution/src/main/release/samples/logbrowser/src/demo/logbrowser/App.java Sat Aug  7 16:57:58 2010
@@ -28,9 +28,9 @@ import javax.ws.rs.ext.Provider;
 import org.apache.cxf.jaxrs.provider.AtomEntryProvider;
 import org.apache.cxf.jaxrs.provider.AtomFeedProvider;
 import org.apache.cxf.management.web.logging.atom.AtomPullServer;
-import org.apache.cxf.management.web.logging.bootstrapping.BootstrapStorage;
-import org.apache.cxf.management.web.logging.bootstrapping.SimpleAuthenticationFilter;
-import org.apache.cxf.management.web.logging.bootstrapping.SimpleXMLSettingsStorage;
+import org.apache.cxf.management.web.logging.logbrowser.bootstrapping.BootstrapStorage;
+import org.apache.cxf.management.web.logging.logbrowser.bootstrapping.SimpleAuthenticationFilter;
+import org.apache.cxf.management.web.logging.logbrowser.bootstrapping.SimpleXMLSettingsStorage;
 
 @Provider
 public class App extends Application {

Modified: cxf/sandbox/logbrowser/rt/management-web/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/pom.xml?rev=983258&r1=983257&r2=983258&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/pom.xml (original)
+++ cxf/sandbox/logbrowser/rt/management-web/pom.xml Sat Aug  7 16:57:58 2010
@@ -130,6 +130,12 @@
             <classifier>sources</classifier>
             <type>jar</type>
         </dependency>
+
+        <dependency>
+            <groupId>com.google.code.findbugs</groupId>
+            <artifactId>jsr305</artifactId>
+            <version>1.3.9</version>
+        </dependency>
     </dependencies>
 
     <build>
@@ -219,21 +225,6 @@
                             </execution>
                         </executions>
                     </plugin>
-
-                    <plugin>
-                        <groupId>org.codehaus.mojo</groupId>
-                        <artifactId>gwt-maven-plugin</artifactId>
-                        <version>1.2</version>
-                        <configuration>
-                            <systemProperties>
-                                <systemProperty>
-                                    <key>java.util.logging.config.file</key>
-                                    <value>${basedir}/src/test/resources/logging.properties</value>
-                                </systemProperty>
-                            </systemProperties>
-                        </configuration>
-                    </plugin>
-
                 </plugins>
             </build>
         </profile>

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/LogBrowser.gwt.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/LogBrowser.gwt.xml?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/LogBrowser.gwt.xml (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/LogBrowser.gwt.xml Sat Aug  7 16:57:58 2010
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<module rename-to='logbrowser'>
+	<inherits name='com.google.gwt.user.User' />
+	<inherits name='com.google.gwt.user.theme.standard.Standard' />
+	<inherits name="com.google.gwt.inject.Inject" />
+	<inherits name="com.google.gwt.http.HTTP" />
+	<inherits name="com.google.gwt.json.JSON" />
+    <inherits name="com.google.gwt.xml.XML"/>
+    <inherits name='com.google.gwtexpui.user.User'/>
+
+    <script src="json2.min.js" />
+    <script src="jstorage.config.js" />
+    <script src="jstorage.min.js" />
+
+	<entry-point class='org.apache.cxf.management.web.logging.logbrowser.client.LogBrowser' />
+
+    <public path='resources' />
+	<source path='client' />
+</module>

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/AbstractAuthenticationFilter.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/AbstractAuthenticationFilter.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/AbstractAuthenticationFilter.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/AbstractAuthenticationFilter.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,46 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.bootstrapping;
+
+import java.lang.reflect.Method;
+import javax.ws.rs.core.Response;
+import static javax.ws.rs.core.Response.Status.*;
+
+import org.apache.cxf.jaxrs.ext.RequestHandler;
+import org.apache.cxf.jaxrs.model.ClassResourceInfo;
+import org.apache.cxf.jaxrs.model.OperationResourceInfo;
+import org.apache.cxf.message.Message;
+
+public abstract class AbstractAuthenticationFilter implements RequestHandler {
+    public Response handleRequest(Message m, ClassResourceInfo resourceClass) {
+        OperationResourceInfo ori = m.getExchange().get(OperationResourceInfo.class);
+        if (ori == null) {
+            return null;
+        }
+        Method method = ori.getMethodToInvoke();
+        if (method.getAnnotation(AuthenticationRequired.class) != null
+                && !authenticate(m, resourceClass)) {
+            return Response.status(UNAUTHORIZED).build();
+        }
+        return null;
+    }
+
+    protected abstract boolean authenticate(Message m, ClassResourceInfo resourceClass);
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/AuthenticationRequired.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/AuthenticationRequired.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/AuthenticationRequired.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/AuthenticationRequired.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,30 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.bootstrapping;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target(ElementType.METHOD)
+@Retention(RetentionPolicy.RUNTIME)
+@interface AuthenticationRequired {
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/BootstrapStorage.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/BootstrapStorage.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/BootstrapStorage.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/BootstrapStorage.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,222 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.bootstrapping;
+
+import java.io.IOException;
+import java.io.OutputStream;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
+import java.net.JarURLConnection;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import java.util.zip.GZIPOutputStream;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.GET;
+import javax.ws.rs.PUT;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.MultivaluedMap;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.Response.Status;
+import javax.ws.rs.core.Variant;
+import javax.ws.rs.ext.MessageBodyWriter;
+import javax.ws.rs.ext.Provider;
+
+import org.apache.commons.lang.Validate;
+import org.apache.cxf.common.logging.LogUtils;
+import org.apache.cxf.helpers.IOUtils;
+import org.apache.cxf.jaxrs.ext.MessageContext;
+import org.apache.cxf.jaxrs.provider.JSONProvider;
+
+@Path("/bootstrapstorage")
+public class BootstrapStorage {
+    private static final Logger LOGGER = LogUtils.getL7dLogger(BootstrapStorage.class);
+    private final SettingsStorage storage;
+    
+    public BootstrapStorage(final SettingsStorage storage) {
+        Validate.notNull(storage, "provider is null");
+        
+        this.storage = storage;
+    }
+
+    @GET
+    @Path("/settings/{username}")
+    @Produces("application/json")
+    @AuthenticationRequired
+    public Settings getSettings(@PathParam("username") final String username) {
+        Validate.notNull(username, "username is null");
+        Validate.notEmpty(username, "username is empty");
+        
+        LOGGER.fine(String.format("Retrieve settings, user='%s'", username));
+        
+        return storage.getSettings(username);
+    }
+
+    @PUT
+    @Path("/settings/{username}")
+    @Consumes("application/json")
+    @AuthenticationRequired
+    public Response setSettings(@PathParam("username") final String username, final Settings settings) {
+        Validate.notNull(username, "username is null");
+        Validate.notEmpty(username, "username is empty");
+        Validate.notNull(settings, "settings is null");
+        
+        LOGGER.fine(String.format("Save settings, user='%s'; settings='%s'", username, settings));
+
+        storage.setSettings(username, settings);
+        return Response.ok().build();
+    }
+
+    @GET
+    @Path("/resources/{resource:.*}")
+    public Response getResource(@Context final MessageContext mc,
+                                @PathParam("resource") final String resource) {
+        if (isLastModifiedRequest(mc)) {
+            return Response.notModified().build();
+        }
+
+        try {
+            URL url;
+            URL jar = getClass().getProtectionDomain().getCodeSource().getLocation();            
+
+            url = new URL(String.format("jar:%s!/static-content/logbrowser/%s", jar, resource));
+
+            JarURLConnection connection = (JarURLConnection) url.openConnection();
+            if (connection.getContentLength() == -1 || connection.getJarEntry() == null) {
+                return Response.status(Status.NOT_FOUND).build();
+            } else if (connection.getJarEntry().isDirectory()) {
+                return Response.status(Status.FORBIDDEN).build();
+            } else { // correct
+                MediaType mime = getMimeType(mc, resource);
+                StaticFile staticFile = new StaticFile(url, acceptsGzip(mc), mime);
+                
+                Response.ResponseBuilder builder = Response.ok(staticFile);
+                builder.variant(new Variant(mime , null, staticFile.isGzipEnabled() ? "gzip" : null));
+
+                return builder.build();
+            }
+        } catch (MalformedURLException e) {
+            return Response.status(Status.BAD_REQUEST).build();
+        } catch (IOException e) {
+            LOGGER.log(Level.SEVERE, "Error occur while retrieve static file", e);
+            return Response.serverError().build();
+        }
+    }
+
+    private boolean isLastModifiedRequest(final MessageContext mc) {
+        return mc.getHttpServletRequest().getHeader("Last-Modified") != null;
+    }
+
+    private MediaType getMimeType(final MessageContext mc, final String resource) {
+        return MediaType.valueOf(mc.getServletContext().getMimeType(resource));
+    }
+
+    private boolean acceptsGzip(final MessageContext mc) {
+        String ae = mc.getHttpServletRequest().getHeader("Accept-Encoding");
+        return ae != null && ae.contains("gzip");
+    }
+
+    private final class StaticFile {
+        private URL url;
+        private boolean isGzipEnabled;
+
+        private StaticFile(URL url, boolean acceptsGzip, MediaType mime) {
+            assert url != null;
+            assert mime != null;
+
+            this.url = url;
+            this.isGzipEnabled = acceptsGzip && "text".equals(mime.getType());
+        }
+
+        public URL getUrl() {
+            return this.url;
+        }
+
+        public boolean isGzipEnabled() {
+            return this.isGzipEnabled;
+        }
+    }
+
+    @Provider
+    public static class StaticFileProvider implements MessageBodyWriter<StaticFile> {
+        
+        public boolean isWriteable(final Class<?> type, final Type genericType,
+                                   final Annotation[] annotations, final MediaType mediaType) {
+            return StaticFile.class.isAssignableFrom(type);
+        }
+
+        public long getSize(final StaticFile staticFile, final Class<?> type, final Type genericType,
+                            final Annotation[] annotations, final MediaType mediaType) {
+            return -1;
+        }
+
+        public void writeTo(final StaticFile staticFile, final Class<?> clazz, final Type genericType,
+                            final Annotation[] annotations, final MediaType type,
+                            final MultivaluedMap<String, Object> headers, final OutputStream os)
+            throws IOException {
+
+            if (staticFile.isGzipEnabled()) {
+                GZIPOutputStream gzip = new GZIPOutputStream(os);
+                try {
+                    IOUtils.copyAndCloseInput(staticFile.getUrl().openStream(), gzip);
+                } finally {
+                    gzip.finish();
+                }
+            } else {
+                IOUtils.copyAndCloseInput(staticFile.getUrl().openStream(), os);
+            }
+        }
+    }
+
+    @Provider
+    public static class SettingsProvider extends JSONProvider {
+        private static final String LOGGING_NAMESPACE = "http://cxf.apache.org/log";
+        private static final String SUBSCRIPTIONS_ARRAY = "subscriptions";
+
+        public SettingsProvider() {
+            setIgnoreNamespaces(true);
+
+            // Solved common JSON's problem with parsing array, which has only one element 
+            setSerializeAsArray(true);
+            setArrayKeys(Arrays.asList(SUBSCRIPTIONS_ARRAY));
+
+            // Removes namespace from output
+            setOutTransformElements(new HashMap<String, String>() {
+                {
+                    put("{" + LOGGING_NAMESPACE + "}*", "*");
+                }
+            });
+
+            // Adds namespace to input
+            setInTransformElements(new HashMap<String, String>() {
+                {
+                    put("*", "{" + LOGGING_NAMESPACE + "}*");
+                }
+            });
+        }
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/Settings.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/Settings.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/Settings.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/Settings.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,42 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.bootstrapping;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement(namespace = "http://cxf.apache.org/log")
+public class Settings {
+    private List<Subscription> subscriptions;
+
+    @XmlElement(name = "subscriptions", namespace = "http://cxf.apache.org/log")
+    public List<Subscription> getSubscriptions() {
+        if (subscriptions == null) {
+            subscriptions = new ArrayList<Subscription>();
+        }
+        return subscriptions;
+    }
+
+    public void setSubscriptions(List<Subscription> subscriptions) {
+        this.subscriptions = subscriptions;
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SettingsStorage.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SettingsStorage.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SettingsStorage.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SettingsStorage.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,26 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.bootstrapping;
+
+public interface SettingsStorage {
+    Settings getSettings(String username);
+
+    void setSettings(String username, Settings settings);
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SimpleAuthenticationFilter.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SimpleAuthenticationFilter.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SimpleAuthenticationFilter.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SimpleAuthenticationFilter.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,65 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.bootstrapping;
+
+import java.util.Map;
+import java.util.logging.Logger;
+
+import javax.ws.rs.ext.Provider;
+
+import org.apache.commons.lang.Validate;
+import org.apache.cxf.common.logging.LogUtils;
+import org.apache.cxf.configuration.security.AuthorizationPolicy;
+import org.apache.cxf.jaxrs.model.ClassResourceInfo;
+import org.apache.cxf.message.Message;
+
+@Provider
+public class SimpleAuthenticationFilter extends AbstractAuthenticationFilter {
+    private static final Logger LOGGER = LogUtils.getL7dLogger(SimpleAuthenticationFilter.class);
+
+    private Map<String, String> authData;
+
+    public SimpleAuthenticationFilter(final Map<String, String> authData) {
+        Validate.notNull(authData, "authData is null");
+        this.authData = authData;
+    }
+
+    @Override
+    protected boolean authenticate(Message m, ClassResourceInfo resourceClass) {
+        assert authData != null;
+        AuthorizationPolicy policy = (AuthorizationPolicy) m.get(AuthorizationPolicy.class);
+        if (policy == null) {
+            LOGGER.fine("No authentication data'");
+            return false;
+        } else if (isValid(policy)) {
+            LOGGER.fine(String.format("Successful authentication, username='%s'", policy.getUserName()));
+            return true;
+        } else {
+            LOGGER.fine(String.format("Failed authentication, username='%s'", policy.getUserName()));
+            return false;
+        }
+    }
+
+    private boolean isValid(final AuthorizationPolicy policy) {
+        return authData.containsKey(policy.getUserName())
+            && authData.get(policy.getUserName()) != null
+            && authData.get(policy.getUserName()).equals(policy.getPassword());
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SimpleXMLSettingsStorage.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SimpleXMLSettingsStorage.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SimpleXMLSettingsStorage.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/SimpleXMLSettingsStorage.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,187 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.bootstrapping;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.util.ArrayList;
+import java.util.GregorianCalendar;
+import java.util.List;
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Marshaller;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.datatype.DatatypeConfigurationException;
+import javax.xml.datatype.DatatypeFactory;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+import org.apache.commons.lang.Validate;
+
+public class SimpleXMLSettingsStorage implements SettingsStorage {
+    private static final String DEFAULT_FILENAME = "logbrowser-settings.xml";
+    private static final Settings DEFAULT_SETTINGS = new Settings();
+
+    private final String filename;
+    private final Marshaller marshaller;
+
+    private Entries entries;
+
+    public SimpleXMLSettingsStorage() {
+        this(DEFAULT_FILENAME);
+    }
+
+    public SimpleXMLSettingsStorage(final String filename) {
+        Validate.notNull(filename, "filename is null");
+        Validate.notEmpty(filename, "filename is empty");
+        this.filename = filename;
+
+        try {
+            JAXBContext context = JAXBContext.newInstance(Entries.class, Entry.class,
+                    Settings.class, Subscription.class);
+
+            marshaller = context.createMarshaller();
+            marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
+            
+            File file = new File(filename);
+            if (file.exists()) {
+                Unmarshaller unmarshaller = context.createUnmarshaller();
+                entries = (Entries) unmarshaller.unmarshal(file);
+            }
+
+            if (entries == null) {
+                entries = new Entries();
+            }
+        } catch (JAXBException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    public synchronized Settings getSettings(final String username) {
+        Validate.notNull(username, "username is null");
+        Validate.notEmpty(username, "username is empty");
+
+        Entry entry = getCachedEntry(username);
+        return entry != null ? entry.getSettings() : DEFAULT_SETTINGS;
+    }
+
+    public synchronized void setSettings(final String username, final Settings settings) {
+        Validate.notNull(username, "username is null");
+        Validate.notEmpty(username, "username is empty");
+
+        Entry entry = getCachedEntry(username);
+        if (entry != null) {
+            entry.setSettings(settings);
+            entry.setModified(getCurrentTime());
+        } else {
+            entries.getEntries().add(new Entry(username, getCurrentTime(), settings));
+        }
+
+        try {
+            marshaller.marshal(entries, new FileOutputStream(filename));
+        } catch (JAXBException e) {
+            throw new RuntimeException(e);
+        } catch (FileNotFoundException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private Entry getCachedEntry(final String username) {
+        assert username != null;
+        assert !"".equals(username);
+
+        for (Entry entry : entries.getEntries()) {
+            if (username.equals(entry.getUsername())) {
+                return entry;
+            }
+        }
+        return null;
+    }
+
+    private XMLGregorianCalendar getCurrentTime() {
+        try {
+            return DatatypeFactory.newInstance()
+                .newXMLGregorianCalendar((GregorianCalendar) GregorianCalendar.getInstance());
+        } catch (DatatypeConfigurationException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    @XmlRootElement(namespace = "http://cxf.apache.org/log")
+    private static class Entries {
+        private List<Entry> entries;
+
+        @XmlElement(name = "entry", namespace = "http://cxf.apache.org/log")
+        public List<Entry> getEntries() {
+            if (entries == null) {
+                entries = new ArrayList<Entry>();
+            }
+            return this.entries;
+        }
+    }
+
+    @XmlRootElement(namespace = "http://cxf.apache.org/log")
+    private static class Entry {
+        private Settings settings;
+        private String username;
+        private XMLGregorianCalendar modified;
+
+        Entry() {
+        }
+
+        Entry(final String username, final XMLGregorianCalendar modified, final Settings settings) {
+            this.settings = settings;
+            this.username = username;
+            this.modified = modified;
+        }
+
+        @XmlElement(required = true, namespace = "http://cxf.apache.org/log")
+        public Settings getSettings() {
+            return settings;
+        }
+
+        public void setSettings(Settings value) {
+            this.settings = value;
+        }
+
+        @XmlAttribute(name = "username", namespace = "http://cxf.apache.org/log")
+        public String getUsername() {
+            return username;
+        }
+
+        public void setUsername(String value) {
+            this.username = value;
+        }
+
+        @XmlAttribute(name = "modified", namespace = "http://cxf.apache.org/log")
+        @XmlSchemaType(name = "date")        
+        public XMLGregorianCalendar getModified() {
+            return modified;
+        }
+
+        public void setModified(XMLGregorianCalendar value) {
+            this.modified = value;
+        }
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/Subscription.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/Subscription.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/Subscription.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/bootstrapping/Subscription.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,45 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.bootstrapping;
+
+import javax.xml.bind.annotation.XmlElement;
+
+public class Subscription {    
+    private String name;
+    private String url;
+                
+    @XmlElement(required = true, namespace = "http://cxf.apache.org/log")
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    @XmlElement(required = true, namespace = "http://cxf.apache.org/log")
+    public String getUrl() {
+        return url;
+    }
+
+    public void setUrl(String url) {
+        this.url = url;
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/DefaultEventBus.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/DefaultEventBus.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/DefaultEventBus.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/DefaultEventBus.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,34 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client;
+
+import com.google.gwt.event.shared.HandlerManager;
+import com.google.inject.Inject;
+import com.google.inject.Singleton;
+
+@Singleton
+public class DefaultEventBus extends HandlerManager implements EventBus {
+
+    @Inject
+    public DefaultEventBus() {
+        super(null);
+    }
+
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Dispatcher.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Dispatcher.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Dispatcher.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Dispatcher.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,130 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client;
+
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+import com.google.gwt.user.client.ui.RootLayoutPanel;
+import com.google.inject.Inject;
+import com.google.inject.Provider;
+
+import org.apache.cxf.management.web.logging.logbrowser.client.event.GoToAccessControlerEvent;
+import org.apache.cxf.management.web.logging.logbrowser.client.event.GoToAccessControlerEventHandler;
+import org.apache.cxf.management.web.logging.logbrowser.client.event.GoToBrowserEvent;
+import org.apache.cxf.management.web.logging.logbrowser.client.event.GoToBrowserEventHandler;
+import org.apache.cxf.management.web.logging.logbrowser.client.event.GoToSettingsEvent;
+import org.apache.cxf.management.web.logging.logbrowser.client.event.GoToSettingsEventHandler;
+import org.apache.cxf.management.web.logging.logbrowser.client.event.SignOutEvent;
+import org.apache.cxf.management.web.logging.logbrowser.client.event.SignOutEventHandler;
+import org.apache.cxf.management.web.logging.logbrowser.client.service.settings.Credentials;
+import org.apache.cxf.management.web.logging.logbrowser.client.service.settings.SettingsFacade;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.Presenter;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.accesscontroler.AccessControlPresenter;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.browser.BrowsePresenter;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.settings.SettingsPresenter;
+
+import static org.apache.cxf.management.web.logging.logbrowser.client.service.settings.SettingsFacade
+    .StorageStrategy.LOCAL_AND_REMOTE;
+
+public class Dispatcher {
+
+    @Nonnull
+    private final EventBus eventBus;
+
+    @Nonnull
+    private final Provider<AccessControlPresenter> accessControlProvider;
+
+    @Nonnull
+    private final Provider<BrowsePresenter> browseProvider;
+
+    @Nonnull
+    private final Provider<SettingsPresenter> settingsProvider;
+
+    @Nonnull
+    private final SettingsFacade settingsFacade;
+
+    @Nullable
+    private Presenter currentPresenter;
+
+    @Inject
+    public Dispatcher(@Nonnull final EventBus eventBus,
+                      @Nonnull final SettingsFacade settingsFacade,
+                      @Nonnull final Provider<AccessControlPresenter> accessControlProvider,
+                      @Nonnull final Provider<BrowsePresenter> browseProvider,
+                      @Nonnull final Provider<SettingsPresenter> settingsProvider) {
+        this.eventBus = eventBus;
+        this.accessControlProvider = accessControlProvider;
+        this.browseProvider = browseProvider;
+        this.settingsProvider = settingsProvider;
+        this.settingsFacade = settingsFacade;
+
+        bind();
+    }
+
+    public void start() {
+        if (settingsFacade.isSettingsAlreadyInLocalStorage()) {
+            settingsFacade.initialize(LOCAL_AND_REMOTE, Credentials.EMPTY);
+            eventBus.fireEvent(new GoToBrowserEvent());
+        } else {
+            go(accessControlProvider.get());
+        }
+    }
+
+    private void go(@Nonnull final Presenter newPresenter) {
+        if (currentPresenter != null) {
+            currentPresenter.unbind();
+        }
+
+        currentPresenter = newPresenter;
+
+        currentPresenter.go(RootLayoutPanel.get());
+    }
+
+    private void bind() {
+
+        eventBus.addHandler(GoToAccessControlerEvent.TYPE, new GoToAccessControlerEventHandler() {
+            public void onGoToAccessControler(@Nonnull final GoToAccessControlerEvent event) {
+                go(accessControlProvider.get());
+            }
+        });
+
+        eventBus.addHandler(GoToBrowserEvent.TYPE, new GoToBrowserEventHandler() {
+            public void onGoToBrowser(@Nonnull final GoToBrowserEvent event) {
+                go(browseProvider.get());
+            }
+        });
+
+        eventBus.addHandler(GoToSettingsEvent.TYPE, new GoToSettingsEventHandler() {
+
+            public void onGoToSettings(@Nonnull final GoToSettingsEvent event) {
+                go(settingsProvider.get());
+            }
+        });
+
+        eventBus.addHandler(SignOutEvent.TYPE, new SignOutEventHandler() {
+
+            public void onSignOut(@Nonnull final SignOutEvent event) {
+                settingsFacade.clearMemoryAndLocalStorage();
+                go(accessControlProvider.get());
+            }
+        });
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/EventBus.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/EventBus.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/EventBus.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/EventBus.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,39 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client;
+
+import com.google.gwt.event.shared.EventHandler;
+import com.google.gwt.event.shared.GwtEvent;
+import com.google.gwt.event.shared.GwtEvent.Type;
+import com.google.gwt.event.shared.HandlerRegistration;
+
+public interface EventBus {
+
+    <H extends EventHandler> HandlerRegistration addHandler(Type<H> type, H handler);
+
+    void fireEvent(GwtEvent<?> event);
+
+    <H extends EventHandler> H getHandler(Type<H> type, int index);
+
+    int getHandlerCount(Type<?> type);
+
+    boolean isEventHandled(Type<?> e);
+
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Injector.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Injector.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Injector.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Injector.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,35 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client;
+
+import com.google.gwt.inject.client.GinModules;
+import com.google.gwt.inject.client.Ginjector;
+
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.ErrorDialog;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.resources.LogBrowserResources;
+
+@GinModules(Module.class)
+public interface Injector extends Ginjector {
+    Dispatcher getDispatcher();
+    
+    LogBrowserResources getResources();
+
+    ErrorDialog getErrorDialog();
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/LogBrowser.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/LogBrowser.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/LogBrowser.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/LogBrowser.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,48 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client;
+
+import javax.annotation.Nonnull;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.core.client.GWT;
+
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.ErrorDialog;
+
+public class LogBrowser implements EntryPoint {
+
+    @Nonnull
+    private final Injector injector = GWT.create(Injector.class);
+
+    public void onModuleLoad() {
+        injector.getResources().css().ensureInjected();
+        
+        GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
+
+            public void onUncaughtException(@Nonnull final Throwable throwable) {
+                ErrorDialog errorDialog = injector.getErrorDialog();
+                errorDialog.setException(throwable);
+                errorDialog.center();
+            }
+        });
+        
+        injector.getDispatcher().start();
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Module.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Module.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Module.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/Module.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,50 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client;
+
+import com.google.gwt.inject.client.AbstractGinModule;
+
+import org.apache.cxf.management.web.logging.logbrowser.client.service.settings.LocalStorage;
+import org.apache.cxf.management.web.logging.logbrowser.client.service.settings.LocalStorageImpl;
+import org.apache.cxf.management.web.logging.logbrowser.client.service.settings.RemoteStorageProxy;
+import org.apache.cxf.management.web.logging.logbrowser.client.service.settings.RemoteStorageProxyImpl;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.accesscontroler.AccessControlView;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.accesscontroler.AccessControlViewImpl;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.browser.BrowseView;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.browser.BrowseViewImpl;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.settings.SettingsView;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.settings.SettingsViewImpl;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.settings.SubscriptionDialog;
+import org.apache.cxf.management.web.logging.logbrowser.client.ui.settings.SubscriptionDialogImpl;
+
+public class Module extends AbstractGinModule {
+
+    @Override
+    protected void configure() {
+        bind(EventBus.class).to(DefaultEventBus.class);
+        bind(AccessControlView.class).to(AccessControlViewImpl.class);
+        bind(SettingsView.class).to(SettingsViewImpl.class);
+        bind(SubscriptionDialog.class).to(SubscriptionDialogImpl.class);
+        bind(BrowseView.class).to(BrowseViewImpl.class);
+        bind(RemoteStorageProxy.class).to(RemoteStorageProxyImpl.class);
+        bind(LocalStorage.class).to(LocalStorageImpl.class);
+    }
+
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToAccessControlerEvent.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToAccessControlerEvent.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToAccessControlerEvent.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToAccessControlerEvent.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,40 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client.event;
+
+import javax.annotation.Nonnull;
+
+import com.google.gwt.event.shared.GwtEvent;
+
+public class GoToAccessControlerEvent extends GwtEvent<GoToAccessControlerEventHandler> {
+    public static final Type<GoToAccessControlerEventHandler> TYPE =
+        new Type<GoToAccessControlerEventHandler>();
+
+    @Override
+    @Nonnull
+    public Type<GoToAccessControlerEventHandler> getAssociatedType() {
+        return TYPE;
+    }
+
+    @Override
+    protected void dispatch(@Nonnull final GoToAccessControlerEventHandler handler) {
+        handler.onGoToAccessControler(this);
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToAccessControlerEventHandler.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToAccessControlerEventHandler.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToAccessControlerEventHandler.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToAccessControlerEventHandler.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,26 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client.event;
+
+import com.google.gwt.event.shared.EventHandler;
+
+public interface GoToAccessControlerEventHandler extends EventHandler {
+    void onGoToAccessControler(GoToAccessControlerEvent event);
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToBrowserEvent.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToBrowserEvent.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToBrowserEvent.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToBrowserEvent.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,39 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client.event;
+
+import javax.annotation.Nonnull;
+
+import com.google.gwt.event.shared.GwtEvent;
+
+public class GoToBrowserEvent extends GwtEvent<GoToBrowserEventHandler> {
+    public static final Type<GoToBrowserEventHandler> TYPE = new Type<GoToBrowserEventHandler>();
+
+    @Override
+    @Nonnull
+    public Type<GoToBrowserEventHandler> getAssociatedType() {
+        return TYPE;
+    }
+
+    @Override
+    protected void dispatch(@Nonnull final GoToBrowserEventHandler handler) {
+        handler.onGoToBrowser(this);
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToBrowserEventHandler.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToBrowserEventHandler.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToBrowserEventHandler.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToBrowserEventHandler.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,26 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client.event;
+
+import com.google.gwt.event.shared.EventHandler;
+
+public interface GoToBrowserEventHandler extends EventHandler {
+    void onGoToBrowser(GoToBrowserEvent event);
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToSettingsEvent.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToSettingsEvent.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToSettingsEvent.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToSettingsEvent.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,39 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client.event;
+
+import javax.annotation.Nonnull;
+
+import com.google.gwt.event.shared.GwtEvent;
+
+public class GoToSettingsEvent extends GwtEvent<GoToSettingsEventHandler> {
+    public static final Type<GoToSettingsEventHandler> TYPE = new Type<GoToSettingsEventHandler>();
+
+    @Override
+    @Nonnull
+    public Type<GoToSettingsEventHandler> getAssociatedType() {
+        return TYPE;
+    }
+
+    @Override
+    protected void dispatch(@Nonnull final GoToSettingsEventHandler handler) {
+        handler.onGoToSettings(this);
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToSettingsEventHandler.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToSettingsEventHandler.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToSettingsEventHandler.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/GoToSettingsEventHandler.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,26 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client.event;
+
+import com.google.gwt.event.shared.EventHandler;
+
+public interface GoToSettingsEventHandler extends EventHandler {
+    void onGoToSettings(GoToSettingsEvent event);
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/RemoteStorageAccessDeniedEvent.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/RemoteStorageAccessDeniedEvent.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/RemoteStorageAccessDeniedEvent.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/RemoteStorageAccessDeniedEvent.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,40 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client.event;
+
+import javax.annotation.Nonnull;
+
+import com.google.gwt.event.shared.GwtEvent;
+
+public class RemoteStorageAccessDeniedEvent extends GwtEvent<RemoteStorageAccessDeniedEventHandler> {
+    public static final Type<RemoteStorageAccessDeniedEventHandler> TYPE =
+        new Type<RemoteStorageAccessDeniedEventHandler>();
+
+    @Override
+    @Nonnull
+    public Type<RemoteStorageAccessDeniedEventHandler> getAssociatedType() {
+        return TYPE;
+    }
+
+    @Override
+    protected void dispatch(@Nonnull final RemoteStorageAccessDeniedEventHandler handler) {
+        handler.onRemoteStorageAccessDenied(this);
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/RemoteStorageAccessDeniedEventHandler.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/RemoteStorageAccessDeniedEventHandler.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/RemoteStorageAccessDeniedEventHandler.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/RemoteStorageAccessDeniedEventHandler.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,26 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client.event;
+
+import com.google.gwt.event.shared.EventHandler;
+
+public interface RemoteStorageAccessDeniedEventHandler extends EventHandler {
+    void onRemoteStorageAccessDenied(RemoteStorageAccessDeniedEvent event);
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/SignOutEvent.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/SignOutEvent.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/SignOutEvent.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/SignOutEvent.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,39 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client.event;
+
+import javax.annotation.Nonnull;
+
+import com.google.gwt.event.shared.GwtEvent;
+
+public class SignOutEvent extends GwtEvent<SignOutEventHandler> {
+    public static final Type<SignOutEventHandler> TYPE = new Type<SignOutEventHandler>();
+
+    @Override
+    @Nonnull
+    public Type<SignOutEventHandler> getAssociatedType() {
+        return TYPE;
+    }
+
+    @Override
+    protected void dispatch(@Nonnull final SignOutEventHandler handler) {
+        handler.onSignOut(this);
+    }
+}

Added: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/SignOutEventHandler.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/SignOutEventHandler.java?rev=983258&view=auto
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/SignOutEventHandler.java (added)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/logbrowser/client/event/SignOutEventHandler.java Sat Aug  7 16:57:58 2010
@@ -0,0 +1,26 @@
+/**
+ * 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.
+ */
+
+package org.apache.cxf.management.web.logging.logbrowser.client.event;
+
+import com.google.gwt.event.shared.EventHandler;
+
+public interface SignOutEventHandler extends EventHandler {
+    void onSignOut(SignOutEvent event);
+}



Mime
View raw message