Picketlink SVN: r1512 - in console/trunk: gui and 18 other directories.
by picketlink-commits@lists.jboss.org
Author: pcraveiro
Date: 2012-03-14 21:23:49 -0400 (Wed, 14 Mar 2012)
New Revision: 1512
Added:
console/trunk/gui/
console/trunk/gui/src/
console/trunk/gui/src/main/
console/trunk/gui/src/main/java/
console/trunk/gui/src/main/java/org/
console/trunk/gui/src/main/java/org/picketlink/
console/trunk/gui/src/main/java/org/picketlink/as/
console/trunk/gui/src/main/java/org/picketlink/as/console/
console/trunk/gui/src/main/java/org/picketlink/as/console/PicketLinkConsole.gwt.xml
console/trunk/gui/src/main/java/org/picketlink/as/console/client/
console/trunk/gui/src/main/java/org/picketlink/as/console/client/BeanFactory.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ItemMenuText.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/NameTokens.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/
console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/
console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkClientModule.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkGinjector.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/Federation.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStore.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStoreImpl.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPageEditor.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPagePresenter.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPageView.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationDetails.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationEditor.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationPresenter.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationTable.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationView.java
console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/
console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/extension/
console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/extension/PicketLinkApplicationMetaDataGenerator.java
console/trunk/gui/src/main/resources/
console/trunk/gui/src/test/
console/trunk/gui/src/test/java/
console/trunk/gui/src/test/resources/
Log:
Initial import.
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/PicketLinkConsole.gwt.xml
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/PicketLinkConsole.gwt.xml (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/PicketLinkConsole.gwt.xml 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,27 @@
+<!-- ~ JBoss, Home of Professional Open Source ~ Copyright 2011-2012 Red
+ Hat Inc. and/or its affiliates and other contributors ~ as indicated by the
+ @author tags. All rights reserved. ~ See the copyright.txt in the distribution
+ for a ~ full listing of individual contributors. ~ ~ This copyrighted material
+ is made available to anyone wishing to use, ~ modify, copy, or redistribute
+ it subject to the terms and conditions ~ of the GNU Lesser General Public
+ License, v. 2.1. ~ This program is distributed in the hope that it will be
+ useful, but WITHOUT A ~ WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A ~ PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details. ~ You should have received a copy of the GNU Lesser
+ General Public License, ~ v.2.1 along with this distribution; if not, write
+ to the Free Software ~ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, ~ MA 02110-1301, USA. -->
+
+<module rename-to="PicketLinkConsole">
+
+ <inherits name="org.jboss.as.console.App" />
+
+ <generate-with class="org.picketlink.as.console.rebind.extension.PicketLinkApplicationMetaDataGenerator">
+ <when-type-assignable class="org.jboss.as.console.client.widgets.forms.ApplicationMetaData" />
+ </generate-with>
+
+ <!-- Specify the paths for translatable code -->
+ <source path='client' />
+ <source path='shared' />
+
+</module>
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/BeanFactory.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/BeanFactory.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/BeanFactory.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client;
+
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
+
+import com.google.gwt.autobean.shared.AutoBean;
+
+/**
+ * <p><code>com.google.gwt.autobean.shared.AutoBeanFactory</code> for the PicketLink module.</p>
+ * <p>This class extends the AS7 Console AutoBeanFactory as an extension to allow the PicketLink module reuse all
+ * bean definitions from the AS7 Console.</p>
+ *
+ * @author Pedro Silva
+ * @sice Mar 13, 2012
+ */
+public interface BeanFactory extends org.jboss.as.console.client.shared.BeanFactory {
+
+ AutoBean<Federation> federation();
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/ItemMenuText.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/ItemMenuText.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/ItemMenuText.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client;
+
+/**
+ * Constants for the names of the menu items of the PicketLink profile.
+ *
+ * @author Pedro Silva
+ * @sice Mar 14, 2012
+ */
+public interface ItemMenuText {
+
+ public static final String PICKETLINK = "PicketLink";
+ public static final String FEDERATION = "Federation";
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/NameTokens.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/NameTokens.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/NameTokens.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
+ * as indicated by the @author tags. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
+package org.picketlink.as.console.client;
+
+/**
+ * NameTokens
+ *
+ * PicketLink specific path tokens.
+ *
+ * @author Pedro Silva
+ */
+public final class NameTokens {
+
+ private NameTokens() {
+ }
+
+ /**
+ * PicketLink main path
+ */
+ public static final String MAIN_PAGE = "picketlink-main";
+
+ /**
+ * Federation configuration path
+ */
+ public static final String FEDERATION = "picletlink-federation";
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkClientModule.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkClientModule.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkClientModule.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
+ * as indicated by the @author tags. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
+package org.picketlink.as.console.client.core.gin;
+
+import org.picketlink.as.console.client.shared.subsys.model.FederationStore;
+import org.picketlink.as.console.client.shared.subsys.model.FederationStoreImpl;
+import org.picketlink.as.console.client.ui.MainPagePresenter;
+import org.picketlink.as.console.client.ui.MainPageView;
+import org.picketlink.as.console.client.ui.federation.FederationPresenter;
+import org.picketlink.as.console.client.ui.federation.FederationView;
+
+import com.google.inject.Singleton;
+import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
+
+
+/**
+ * PicketLink configuration bindings.
+ *
+ * @author Pedro Silva
+ */
+public class PicketLinkClientModule extends AbstractPresenterModule {
+
+ /* (non-Javadoc)
+ * @see com.google.gwt.inject.client.AbstractGinModule#configure()
+ */
+ protected void configure() {
+ bindMain();
+ bindFederation();
+ }
+
+ /**
+ * Binds the components related with the main path
+ */
+ private void bindMain() {
+ bindPresenter(MainPagePresenter.class, MainPagePresenter.MyView.class, MainPageView.class,
+ MainPagePresenter.MyProxy.class);
+ }
+
+ /**
+ * Binds the components related with the federation configuration path
+ */
+ private void bindFederation() {
+ bindPresenter(FederationPresenter.class, FederationPresenter.MyView.class, FederationView.class,
+ FederationPresenter.MyProxy.class);
+ bind(FederationStore.class).to(FederationStoreImpl.class).in(Singleton.class);
+ }
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkGinjector.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkGinjector.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkGinjector.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
+ * as indicated by the @author tags. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
+package org.picketlink.as.console.client.core.gin;
+
+import org.jboss.as.console.client.shared.SubsystemExtension;
+import org.jboss.as.console.client.shared.SubsystemExtension.SubsystemGroupDefinition;
+import org.jboss.as.console.client.shared.SubsystemExtension.SubsystemItemDefinition;
+import org.picketlink.as.console.client.ItemMenuText;
+import org.picketlink.as.console.client.NameTokens;
+import org.picketlink.as.console.client.ui.MainPagePresenter;
+import org.picketlink.as.console.client.ui.federation.FederationPresenter;
+
+import com.google.gwt.inject.client.AsyncProvider;
+import com.google.gwt.inject.client.GinModules;
+import com.google.gwt.inject.client.Ginjector;
+
+
+/**
+ * <p>Ginjector interface for the PicketLink module.</p>
+ * <p>This interface also provides the configuration for the AS7 extension mechanism. The annotations declared in the type
+ * are uses the extension mechanism to add the PicketLink module features in the AS7 Console Profile menu tree.</p>
+ *
+ * @see PicketLinkClientModule
+ *
+ * @author Pedro Silva
+ * @author Rob Cernich
+ */
+@SubsystemExtension(@SubsystemGroupDefinition(subsystem="picketlink", name = ItemMenuText.PICKETLINK, items = {
+ @SubsystemItemDefinition(presenter = NameTokens.FEDERATION, name = ItemMenuText.FEDERATION)}))
+(a)GinModules(PicketLinkClientModule.class)
+public interface PicketLinkGinjector extends Ginjector {
+
+ AsyncProvider<MainPagePresenter> getMainPagePresenter();
+
+ AsyncProvider<FederationPresenter> getFederationPresenter();
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/Federation.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/Federation.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/Federation.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client.shared.subsys.model;
+
+import org.jboss.as.console.client.widgets.forms.Address;
+import org.jboss.as.console.client.widgets.forms.Binding;
+
+/**
+ * <p>Federation bean definition.</p>
+ * <p>This interface also defines the address to be used when using the AS7 management API.</p>
+ *
+ * @author Pedro Silva
+ * @sice Mar 14, 2012
+ */
+@Address("/subsystem=picketlink/federation={0}")
+public interface Federation {
+
+ @Binding(key = true)
+ String getAlias();
+ void setAlias(String alias);
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStore.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStore.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStore.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client.shared.subsys.model;
+
+import java.util.List;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+/**
+ * <p>This interface defines the methods that can be used to manipulate the {@link Federation} model.</p>
+ *
+ * @author Pedro Silva
+ * @sice Mar 14, 2012
+ */
+public interface FederationStore {
+
+ /**
+ * Loads all federation configurations.
+ *
+ * @param callback
+ */
+ void loadFederations(AsyncCallback<List<Federation>> callback);
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStoreImpl.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStoreImpl.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStoreImpl.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,100 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client.shared.subsys.model;
+
+import static org.jboss.dmr.client.ModelDescriptionConstants.OP;
+import static org.jboss.dmr.client.ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION;
+import static org.jboss.dmr.client.ModelDescriptionConstants.RESULT;
+
+import java.util.List;
+
+import javax.inject.Inject;
+
+import org.jboss.as.console.client.shared.dispatch.DispatchAsync;
+import org.jboss.as.console.client.shared.dispatch.impl.DMRAction;
+import org.jboss.as.console.client.shared.dispatch.impl.DMRResponse;
+import org.jboss.as.console.client.shared.subsys.Baseadress;
+import org.jboss.as.console.client.widgets.forms.AddressBinding;
+import org.jboss.as.console.client.widgets.forms.ApplicationMetaData;
+import org.jboss.as.console.client.widgets.forms.BeanMetaData;
+import org.jboss.as.console.client.widgets.forms.EntityAdapter;
+import org.jboss.dmr.client.ModelNode;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+/**
+ * <p>
+ * Implementation of {@link FederationStore}.
+ * </p>
+ *
+ * @author Pedro Silva
+ * @sice Mar 14, 2012
+ */
+public class FederationStoreImpl implements FederationStore {
+
+ private final DispatchAsync dispatcher;
+ private final ApplicationMetaData metaData;
+ private final EntityAdapter<Federation> federationAdapter;
+
+ private BeanMetaData federationMetaData;
+ private Baseadress baseadress;
+
+ @Inject
+ public FederationStoreImpl(DispatchAsync dispatcher, ApplicationMetaData propertyMetaData, Baseadress baseadress) {
+ this.dispatcher = dispatcher;
+ this.metaData = propertyMetaData;
+ this.baseadress = baseadress;
+ this.federationMetaData = metaData.getBeanMetaData(Federation.class);
+ this.federationAdapter = new EntityAdapter<Federation>(Federation.class, propertyMetaData);
+ }
+
+ /* (non-Javadoc)
+ * @see org.picketlink.as.console.client.shared.subsys.model.FederationStore#loadFederations(com.google.gwt.user.client.rpc.AsyncCallback)
+ */
+ @Override
+ public void loadFederations(final AsyncCallback<List<Federation>> callback) {
+ AddressBinding address = federationMetaData.getAddress();
+ ModelNode operation = address.asSubresource(baseadress.getAdress());
+ operation.get(OP).set(READ_CHILDREN_RESOURCES_OPERATION);
+
+ dispatcher.execute(new DMRAction(operation), new AsyncCallback<DMRResponse>() {
+ @Override
+ public void onFailure(Throwable caught) {
+ callback.onFailure(caught);
+ }
+
+ @Override
+ public void onSuccess(DMRResponse result) {
+ ModelNode response = result.get();
+
+ if (response.isFailure()) {
+ callback.onFailure(new RuntimeException(response.getFailureDescription()));
+ } else {
+ List<Federation> datasources = federationAdapter.fromDMRList(response.get(RESULT).asList());
+ callback.onSuccess(datasources);
+ }
+ }
+ });
+ }
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPageEditor.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPageEditor.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPageEditor.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
+ * as indicated by the @author tags. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
+package org.picketlink.as.console.client.ui;
+
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.Panel;
+import com.google.gwt.user.client.ui.VerticalPanel;
+import com.google.gwt.user.client.ui.Widget;
+
+/**
+ * @author Pedro Silva
+ */
+public class MainPageEditor {
+
+ private Panel componentDetails;
+
+ public MainPageEditor() {
+ }
+
+ /**
+ * @return this editor as a Widget.
+ */
+ public Widget asWidget() {
+
+ VerticalPanel layout = new VerticalPanel();
+ layout.setStyleName("fill-layout-width");
+
+ layout.add(new Label("teste"));
+
+ return layout;
+ }
+
+ /**
+ * @param content component specific content.
+ */
+ public void setComponentContent(Widget content) {
+ this.componentDetails.clear();
+
+ if (content != null) {
+ this.componentDetails.add(content);
+ }
+ }
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPagePresenter.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPagePresenter.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPagePresenter.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,92 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.picketlink.as.console.client.ui;
+
+import org.jboss.as.console.client.shared.subsys.RevealStrategy;
+import org.jboss.ballroom.client.layout.LHSHighlightEvent;
+import org.picketlink.as.console.client.NameTokens;
+
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.event.shared.EventBus;
+import com.google.inject.Inject;
+import com.gwtplatform.mvp.client.Presenter;
+import com.gwtplatform.mvp.client.View;
+import com.gwtplatform.mvp.client.annotations.NameToken;
+import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
+import com.gwtplatform.mvp.client.proxy.Place;
+import com.gwtplatform.mvp.client.proxy.PlaceManager;
+import com.gwtplatform.mvp.client.proxy.Proxy;
+
+/**
+ * @author Pedro Silva
+ * @since 03/01/2011
+ */
+public class MainPagePresenter extends Presenter<MainPagePresenter.MyView, MainPagePresenter.MyProxy> {
+
+ public interface MyView extends View {
+
+ }
+
+ @ProxyCodeSplit
+ @NameToken(NameTokens.MAIN_PAGE)
+ public interface MyProxy extends Proxy<MainPagePresenter>, Place {
+ }
+
+ private final PlaceManager placeManager;
+ private RevealStrategy revealStrategy;
+
+ @Inject
+ public MainPagePresenter(final EventBus eventBus, final MyView view, final MyProxy proxy, final PlaceManager placeManager, RevealStrategy revealStrategy) {
+ super(eventBus, view, proxy);
+
+ this.placeManager = placeManager;
+ this.revealStrategy = revealStrategy;
+ }
+
+ @Override
+ protected void onReveal() {
+ super.onReveal();
+ Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
+ @Override
+ public void execute() {
+ fireEvent(new LHSHighlightEvent("unused", "PicketLink",
+ "profiles"));
+ }
+ });
+ }
+
+ @Override
+ protected void revealInParent() {
+ this.revealStrategy.revealInParent(this);
+ }
+
+ @Override
+ protected void onBind() {
+ super.onBind();
+ }
+
+ @Override
+ protected void onReset() {
+ super.onReset();
+ }
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPageView.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPageView.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/MainPageView.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
+ * as indicated by the @author tags. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
+package org.picketlink.as.console.client.ui;
+
+import org.jboss.as.console.client.core.DisposableViewImpl;
+import org.jboss.as.console.client.shared.viewframework.builder.SimpleLayout;
+
+import com.google.gwt.user.client.ui.Widget;
+
+/**
+ * @author Pedro Silva
+ */
+public class MainPageView extends DisposableViewImpl implements MainPagePresenter.MyView {
+
+ private MainPageEditor mainPageEditor;
+
+ @Override
+ public Widget createWidget() {
+ mainPageEditor = new MainPageEditor();
+ SimpleLayout layout = new SimpleLayout().setTitle("PicketLink Subsystem Details")
+ .setHeadline("Federation Configuration").setDescription("Displays all federation configurations.")
+ .addContent("Runtime Details", mainPageEditor.asWidget());
+ return layout.build();
+ }
+
+ @Override
+ public void setInSlot(Object slot, Widget content) {
+ this.mainPageEditor.setComponentContent(content);
+ }
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationDetails.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationDetails.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationDetails.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,136 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client.ui.federation;
+
+import java.util.Map;
+
+import org.jboss.as.console.client.shared.help.FormHelpPanel;
+import org.jboss.as.console.client.shared.subsys.Baseadress;
+import org.jboss.as.console.client.shared.subsys.jca.model.DataSource;
+import org.jboss.as.console.client.widgets.forms.FormToolStrip;
+import org.jboss.ballroom.client.widgets.forms.Form;
+import org.jboss.ballroom.client.widgets.forms.TextItem;
+import org.jboss.ballroom.client.widgets.tools.ToolButton;
+import org.jboss.dmr.client.ModelNode;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
+
+import com.google.gwt.user.cellview.client.CellTable;
+import com.google.gwt.user.client.ui.ScrollPanel;
+import com.google.gwt.user.client.ui.VerticalPanel;
+import com.google.gwt.user.client.ui.Widget;
+
+/**
+ * This class defines the widget to be displayed when a federation instance is selected.
+ *
+ * @author Pedro Silva
+ * @sice Mar 14, 2012
+ */
+public class FederationDetails {
+
+ private Form<Federation> form;
+ private FederationPresenter presenter;
+ private ToolButton disableBtn;
+
+ public FederationDetails(FederationPresenter presenter) {
+ this.presenter = presenter;
+ form = new Form(DataSource.class);
+ form.setNumColumns(2);
+
+ /*form.addEditListener(new EditListener<DataSource>() {
+ @Override
+ public void editingBean(DataSource bean) {
+ String nextState = bean.isEnabled() ? Console.CONSTANTS.common_label_disable():Console.CONSTANTS.common_label_enable();
+ disableBtn.setText(nextState);
+ }
+ });*/
+ }
+
+ public Widget asWidget() {
+ VerticalPanel detailPanel = new VerticalPanel();
+ detailPanel.setStyleName("fill-layout-width");
+
+ FormToolStrip<Federation> toolStrip = new FormToolStrip<Federation>(
+ form,
+ new FormToolStrip.FormCallback<Federation>() {
+ @Override
+ public void onSave(Map<String, Object> changeset) {
+ presenter.onSaveFederationDetails(form.getEditedEntity().getAlias(), form.getChangedValues());
+ }
+
+ @Override
+ public void onDelete(Federation entity) {
+
+ }
+ });
+
+
+ toolStrip.providesDeleteOp(false);
+
+ /* toolStrip.addToolButtonRight(disableBtn);
+
+ // not available in domain mode
+ if(Console.MODULES.getBootstrapContext().isStandalone())
+ toolStrip.addToolButtonRight(verifyBtn); */
+
+ detailPanel.add(toolStrip.asWidget());
+
+ final TextItem aliasItem = new TextItem("alias", "Alias");
+
+ form.setFields(aliasItem);
+
+ Widget formWidget = form.asWidget();
+
+ final FormHelpPanel helpPanel = new FormHelpPanel(
+ new FormHelpPanel.AddressCallback() {
+ @Override
+ public ModelNode getAddress() {
+ ModelNode address = Baseadress.get();
+ address.add("subsystem", "picketlink");
+ address.add("federation", "*");
+ return address;
+ }
+ }, form
+ );
+
+ detailPanel.add(helpPanel.asWidget());
+
+ detailPanel.add(formWidget);
+
+ ScrollPanel scroll = new ScrollPanel(detailPanel);
+
+ return scroll;
+ }
+
+ public void bind(CellTable<Federation> dataSourceTable) {
+ form.bind(dataSourceTable);
+ }
+
+ public void setEnabled(boolean b) {
+ form.setEnabled(b);
+ }
+
+ public Federation getCurrentSelection() {
+ return form.getEditedEntity();
+ }
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationEditor.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationEditor.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationEditor.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,193 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client.ui.federation;
+
+import java.util.List;
+import java.util.Map;
+
+import org.jboss.as.console.client.Console;
+import org.jboss.as.console.client.shared.subsys.jca.model.DataSource;
+import org.jboss.as.console.client.widgets.ContentDescription;
+import org.jboss.as.console.client.widgets.forms.FormToolStrip;
+import org.jboss.ballroom.client.widgets.ContentGroupLabel;
+import org.jboss.ballroom.client.widgets.ContentHeaderLabel;
+import org.jboss.ballroom.client.widgets.tables.DefaultCellTable;
+import org.jboss.ballroom.client.widgets.tools.ToolButton;
+import org.jboss.ballroom.client.widgets.tools.ToolStrip;
+import org.jboss.ballroom.client.widgets.window.Feedback;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
+
+import com.google.gwt.dom.client.Style;
+import com.google.gwt.event.dom.client.ClickEvent;
+import com.google.gwt.event.dom.client.ClickHandler;
+import com.google.gwt.user.client.ui.LayoutPanel;
+import com.google.gwt.user.client.ui.ScrollPanel;
+import com.google.gwt.user.client.ui.SimplePanel;
+import com.google.gwt.user.client.ui.TabPanel;
+import com.google.gwt.user.client.ui.VerticalPanel;
+import com.google.gwt.user.client.ui.Widget;
+import com.google.gwt.view.client.SelectionChangeEvent;
+import com.google.gwt.view.client.SingleSelectionModel;
+
+/**
+ * <p>This class defines the widget to be displayed when the Federation option is selected from the menu.</p>
+ * <p>It defines the layout for the federation configuration main page.</p>
+ *
+ * @author Pedro Silva
+ * @sice Mar 14, 2012
+ */
+public class FederationEditor {
+
+ private FederationPresenter presenter;
+ private FederationTable federationTable;
+ private FederationDetails details;
+
+ public FederationEditor(FederationPresenter presenter) {
+ this.presenter = presenter;
+ }
+
+ public Widget asWidget() {
+
+ LayoutPanel layout = new LayoutPanel();
+
+ ToolStrip topLevelTools = new ToolStrip();
+ topLevelTools.addToolButtonRight(new ToolButton(Console.CONSTANTS.common_label_add(), new ClickHandler() {
+
+ @Override
+ public void onClick(ClickEvent event) {
+ //TODO: launch new federation wizard
+ }
+ }));
+
+
+ ClickHandler clickHandler = new ClickHandler() {
+ @Override
+ public void onClick(ClickEvent event) {
+
+ final Federation currentSelection = details.getCurrentSelection();
+ if(currentSelection!=null)
+ {
+ Feedback.confirm(
+ Console.MESSAGES.deleteTitle("Federation"),
+ Console.MESSAGES.deleteConfirm("Federation " + currentSelection.getAlias()),
+ new Feedback.ConfirmationHandler() {
+ @Override
+ public void onConfirmation(boolean isConfirmed) {
+ if (isConfirmed) {
+ presenter.onDelete(currentSelection);
+ }
+ }
+ });
+ }
+ }
+ };
+ ToolButton deleteBtn = new ToolButton(Console.CONSTANTS.common_label_delete());
+ deleteBtn.addClickHandler(clickHandler);
+ topLevelTools.addToolButtonRight(deleteBtn);
+
+ // ----
+
+ VerticalPanel vpanel = new VerticalPanel();
+ vpanel.setStyleName("rhs-content-panel");
+
+ ScrollPanel scroll = new ScrollPanel(vpanel);
+ layout.add(scroll);
+
+ layout.setWidgetTopHeight(scroll, 0, Style.Unit.PX, 100, Style.Unit.PCT);
+
+ // ---
+
+ vpanel.add(new ContentHeaderLabel("Federation"));
+ vpanel.add(new ContentDescription("The PicketLink Federation provides the configurations for IDPs and SPs given a federation configuration."));
+
+ federationTable = new FederationTable();
+
+
+ vpanel.add(new ContentGroupLabel(Console.MESSAGES.available("Federations")));
+ vpanel.add(topLevelTools.asWidget());
+ vpanel.add(federationTable.asWidget());
+
+
+ // -----------
+ details = new FederationDetails(presenter);
+ details.bind(federationTable.getCellTable());
+
+ SingleSelectionModel<Federation> selectionModel =
+ (SingleSelectionModel<Federation>)federationTable.getCellTable().getSelectionModel();
+
+ selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler () {
+ @Override
+ public void onSelectionChange(SelectionChangeEvent event) {
+ Federation selectedObject = ((SingleSelectionModel<Federation>) federationTable.getCellTable().getSelectionModel()).getSelectedObject();
+ details.setEnabled(true);
+ }
+ });
+
+ // -----------------
+
+ TabPanel bottomPanel = new TabPanel();
+ bottomPanel.setStyleName("default-tabpanel");
+
+ bottomPanel.add(details.asWidget(), "Attributes");
+
+ // -----------------
+
+ bottomPanel.add(new SimplePanel(), "Identity Provider");
+ bottomPanel.add(new SimplePanel(), "Service Providers");
+ bottomPanel.add(new SimplePanel(), "Digital Certificates");
+
+ bottomPanel.selectTab(0);
+
+ // -----------------
+
+ vpanel.add(new ContentGroupLabel(Console.CONSTANTS.common_label_selection()));
+
+ vpanel.add(bottomPanel);
+
+ return layout;
+ }
+
+
+ private Federation getCurrentSelection() {
+ Federation ds = ((SingleSelectionModel<Federation>) federationTable.getCellTable().getSelectionModel()).getSelectedObject();
+ return ds;
+ }
+
+ public void updateDataSources(List<Federation> datasources) {
+
+ federationTable.getDataProvider().setList(datasources);
+
+ final DefaultCellTable<Federation> cellTable = federationTable.getCellTable();
+ cellTable.selectDefaultEntity();
+ }
+
+ public void setEnabled(boolean isEnabled) {
+
+
+ }
+
+ public void enableDetails(boolean b) {
+ details.setEnabled(b);
+ }
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationPresenter.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationPresenter.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationPresenter.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,126 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.picketlink.as.console.client.ui.federation;
+
+import java.util.List;
+import java.util.Map;
+
+import org.jboss.as.console.client.domain.model.SimpleCallback;
+import org.jboss.as.console.client.shared.subsys.RevealStrategy;
+import org.jboss.ballroom.client.layout.LHSHighlightEvent;
+import org.picketlink.as.console.client.BeanFactory;
+import org.picketlink.as.console.client.NameTokens;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
+import org.picketlink.as.console.client.shared.subsys.model.FederationStore;
+
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.event.shared.EventBus;
+import com.google.inject.Inject;
+import com.gwtplatform.mvp.client.Presenter;
+import com.gwtplatform.mvp.client.View;
+import com.gwtplatform.mvp.client.annotations.NameToken;
+import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
+import com.gwtplatform.mvp.client.proxy.Place;
+import com.gwtplatform.mvp.client.proxy.PlaceManager;
+import com.gwtplatform.mvp.client.proxy.Proxy;
+
+/**
+ * @author Pedro Silva
+ * @since 03/01/2011
+ */
+public class FederationPresenter extends Presenter<FederationPresenter.MyView, FederationPresenter.MyProxy> {
+
+ public interface MyView extends View {
+ void setPresenter(FederationPresenter presenter);
+
+ void updateFederations(List<Federation> federations);
+ }
+
+ @ProxyCodeSplit
+ @NameToken(NameTokens.FEDERATION)
+ public interface MyProxy extends Proxy<FederationPresenter>, Place {
+ }
+
+ private final PlaceManager placeManager;
+ private final RevealStrategy revealStrategy;
+ private final BeanFactory beanFactory;
+ private FederationStore federationStore;
+
+ @Inject
+ public FederationPresenter(final EventBus eventBus, BeanFactory beanFactory, final MyView view, final MyProxy proxy,
+ final PlaceManager placeManager, RevealStrategy revealStrategy, FederationStore federationStore) {
+ super(eventBus, view, proxy);
+
+ this.placeManager = placeManager;
+ this.revealStrategy = revealStrategy;
+ this.beanFactory = beanFactory;
+ this.federationStore = federationStore;
+ }
+
+ @Override
+ protected void onReveal() {
+ super.onReveal();
+ Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
+ @Override
+ public void execute() {
+ fireEvent(new LHSHighlightEvent("unused", "PicketLink", "profiles"));
+ }
+ });
+ }
+
+ @Override
+ protected void revealInParent() {
+ this.revealStrategy.revealInParent(this);
+ }
+
+ @Override
+ protected void onBind() {
+ super.onBind();
+ }
+
+ @Override
+ protected void onReset() {
+ super.onReset();
+ this.federationStore.loadFederations(new SimpleCallback<List<Federation>>() {
+ @Override
+ public void onSuccess(List<Federation> result) {
+ getView().updateFederations(result);
+ }
+ });
+ }
+
+ /**
+ * @param alias
+ * @param changedValues
+ */
+ public void onSaveFederationDetails(String alias, Map<String, Object> changedValues) {
+ // TODO: on save federation details
+ }
+
+ /**
+ * @param currentSelection
+ */
+ public void onDelete(Federation currentSelection) {
+ // TODO: on delete federation
+ }
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationTable.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationTable.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationTable.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client.ui.federation;
+
+import org.jboss.ballroom.client.widgets.tables.DefaultCellTable;
+import org.jboss.ballroom.client.widgets.tables.DefaultPager;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
+
+import com.google.gwt.user.cellview.client.TextColumn;
+import com.google.gwt.user.client.ui.VerticalPanel;
+import com.google.gwt.user.client.ui.Widget;
+import com.google.gwt.view.client.ListDataProvider;
+import com.google.gwt.view.client.ProvidesKey;
+
+/**
+ * This class defines the widget to be displayed for the table of federations.
+ *
+ * @author Pedro Silva
+ * @sice Mar 14, 2012
+ */public class FederationTable {
+
+ private static final int PAGE_SIZE = 5;
+ private DefaultCellTable<Federation> federationTable;
+ private ListDataProvider<Federation> dataProvider;
+
+ Widget asWidget() {
+
+ VerticalPanel layout = new VerticalPanel();
+ layout.setStyleName("fill-layout-width");
+
+ federationTable = new DefaultCellTable<Federation>(
+ PAGE_SIZE,
+ new ProvidesKey<Federation>() {
+ @Override
+ public Object getKey(Federation item) {
+ return item.getAlias();
+ }
+ });
+
+ dataProvider = new ListDataProvider<Federation>();
+ dataProvider.addDataDisplay(federationTable);
+
+ TextColumn<Federation> aliasColumn = new TextColumn<Federation>() {
+ @Override
+ public String getValue(Federation record) {
+ return record.getAlias();
+ }
+ };
+
+ federationTable.addColumn(aliasColumn, "Name");
+
+ layout.add(federationTable);
+
+ // ---
+ // http://code.google.com/p/google-web-toolkit/issues/detail?id=4988
+
+ DefaultPager pager = new DefaultPager();
+ pager.setDisplay(federationTable);
+ layout.add(pager);
+
+ return layout;
+ }
+
+ public DefaultCellTable<Federation> getCellTable() {
+ return federationTable;
+ }
+
+ public ListDataProvider<Federation> getDataProvider() {
+ return dataProvider;
+ }
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationView.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationView.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/ui/federation/FederationView.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client.ui.federation;
+
+import java.util.List;
+
+import org.jboss.as.console.client.Console;
+import org.jboss.as.console.client.core.SuspendableViewImpl;
+import org.jboss.as.console.client.widgets.tabs.DefaultTabLayoutPanel;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
+
+import com.google.gwt.dom.client.Style;
+import com.google.gwt.user.client.ui.Widget;
+
+/**
+ * @author pedroigor
+ * @sice Mar 14, 2012
+ */
+public class FederationView extends SuspendableViewImpl implements FederationPresenter.MyView {
+
+ private FederationPresenter presenter;
+ private FederationEditor federationEditor;
+
+ @Override
+ public Widget createWidget() {
+
+ this.federationEditor = new FederationEditor(presenter);
+
+ DefaultTabLayoutPanel tabLayoutpanel = new DefaultTabLayoutPanel(40, Style.Unit.PX);
+ tabLayoutpanel.addStyleName("default-tabpanel");
+
+
+ tabLayoutpanel.add(federationEditor.asWidget(), "PicketLink Federation", true);
+
+ tabLayoutpanel.selectTab(0);
+
+ return tabLayoutpanel;
+ }
+
+ @Override
+ public void setPresenter(FederationPresenter presenter) {
+ this.presenter = presenter;
+ }
+
+ @Override
+ public void updateFederations(List<Federation> federations) {
+ federationEditor.updateDataSources(federations);
+ }
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/extension/PicketLinkApplicationMetaDataGenerator.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/extension/PicketLinkApplicationMetaDataGenerator.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/extension/PicketLinkApplicationMetaDataGenerator.java 2012-03-15 01:23:49 UTC (rev 1512)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.rebind.extension;
+
+import org.jboss.as.console.rebind.extensions.ApplicationMetaDataGeneratorExtension;
+
+/**
+ * <p>Extension to the AS7 Console to load the bean definitions from the PicketLink AutoBeanFactory.</p>
+ * <p>This class allows to load all metadata related with the beans to be used to access the subsystem.</p>
+ *
+ * @author pedroigor
+ * @sice Mar 14, 2012
+ */
+public class PicketLinkApplicationMetaDataGenerator extends ApplicationMetaDataGeneratorExtension {
+
+ /* (non-Javadoc)
+ * @see org.jboss.as.console.rebind.extensions.ApplicationMetaDataGeneratorExtension#getBeanFactory()
+ */
+ @Override
+ protected String getBeanFactory() {
+ return "org.picketlink.as.console.client.BeanFactory";
+ }
+
+}
12 years, 9 months
Picketlink SVN: r1511 - in console/trunk: app and 12 other directories.
by picketlink-commits@lists.jboss.org
Author: pcraveiro
Date: 2012-03-14 21:23:05 -0400 (Wed, 14 Mar 2012)
New Revision: 1511
Added:
console/trunk/app/
console/trunk/app/src/
console/trunk/app/src/main/
console/trunk/app/src/main/java/
console/trunk/app/src/main/java/org/
console/trunk/app/src/main/java/org/picketlink/
console/trunk/app/src/main/java/org/picketlink/as/
console/trunk/app/src/main/java/org/picketlink/as/console/
console/trunk/app/src/main/java/org/picketlink/as/console/application/
console/trunk/app/src/main/java/org/picketlink/as/console/application/App.gwt.xml
console/trunk/app/src/main/java/org/picketlink/as/console/application/Development.gwt.xml
console/trunk/app/src/main/java/org/picketlink/as/console/application/client/
console/trunk/app/src/main/java/org/picketlink/as/console/application/client/AggregatedConsoleGinjector.java
console/trunk/app/src/main/java/org/picketlink/as/console/application/client/AggregatedConsoleSingleton.java
console/trunk/app/src/main/java/org/picketlink/as/console/application/client/package-info.java
console/trunk/app/src/main/java/org/picketlink/as/console/application/package-info.java
console/trunk/app/src/main/resources/
console/trunk/app/src/main/webapp/
console/trunk/app/src/main/webapp/WEB-INF/
console/trunk/app/src/main/webapp/WEB-INF/web.xml
console/trunk/app/src/test/
console/trunk/app/src/test/java/
console/trunk/app/src/test/resources/
Log:
Initial import.
Added: console/trunk/app/src/main/java/org/picketlink/as/console/application/App.gwt.xml
===================================================================
--- console/trunk/app/src/main/java/org/picketlink/as/console/application/App.gwt.xml (rev 0)
+++ console/trunk/app/src/main/java/org/picketlink/as/console/application/App.gwt.xml 2012-03-15 01:23:05 UTC (rev 1511)
@@ -0,0 +1,41 @@
+<!--
+ ~ JBoss, Home of Professional Open Source
+ ~ Copyright 2011-2012 Red Hat Inc. and/or its affiliates and other contributors
+ ~ as indicated by the @author tags. All rights reserved.
+ ~ See the copyright.txt in the distribution for a
+ ~ full listing of individual contributors.
+ ~
+ ~ This copyrighted material is made available to anyone wishing to use,
+ ~ modify, copy, or redistribute it subject to the terms and conditions
+ ~ of the GNU Lesser General Public License, v. 2.1.
+ ~ This program is distributed in the hope that it will be useful, but WITHOUT A
+ ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ ~ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ ~ You should have received a copy of the GNU Lesser General Public License,
+ ~ v.2.1 along with this distribution; if not, write to the Free Software
+ ~ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ ~ MA 02110-1301, USA.
+ -->
+
+<module rename-to="app">
+
+ <inherits name="org.jboss.as.console.App" />
+ <inherits name="org.picketlink.as.console.PicketLinkConsole" />
+
+ <set-configuration-property name="gin.ginjector"
+ value="org.picketlink.as.console.application.client.AggregatedConsoleGinjector" />
+
+ <replace-with class="org.picketlink.as.console.application.client.AggregatedConsoleSingleton">
+ <when-type-is class="org.jboss.as.console.client.core.gin.GinjectorSingleton" />
+ </replace-with>
+
+ <!-- XXX: remove once this is in the core console module. -->
+ <generate-with class="org.jboss.as.console.rebind.extensions.SubsystemExtensionProcessorGenerator">
+ <when-type-assignable class="org.jboss.as.console.client.shared.SubsystemExtensionProcessor" />
+ </generate-with>
+
+ <!-- Specify the paths for translatable code -->
+ <source path='client' />
+ <source path='shared' />
+
+</module>
Added: console/trunk/app/src/main/java/org/picketlink/as/console/application/Development.gwt.xml
===================================================================
--- console/trunk/app/src/main/java/org/picketlink/as/console/application/Development.gwt.xml (rev 0)
+++ console/trunk/app/src/main/java/org/picketlink/as/console/application/Development.gwt.xml 2012-03-15 01:23:05 UTC (rev 1511)
@@ -0,0 +1,27 @@
+<!--
+ ~ JBoss, Home of Professional Open Source
+ ~ Copyright 2011-2012 Red Hat Inc. and/or its affiliates and other contributors
+ ~ as indicated by the @author tags. All rights reserved.
+ ~ See the copyright.txt in the distribution for a
+ ~ full listing of individual contributors.
+ ~
+ ~ This copyrighted material is made available to anyone wishing to use,
+ ~ modify, copy, or redistribute it subject to the terms and conditions
+ ~ of the GNU Lesser General Public License, v. 2.1.
+ ~ This program is distributed in the hope that it will be useful, but WITHOUT A
+ ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ ~ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ ~ You should have received a copy of the GNU Lesser General Public License,
+ ~ v.2.1 along with this distribution; if not, write to the Free Software
+ ~ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ ~ MA 02110-1301, USA.
+ -->
+
+<module rename-to="app">
+
+ <inherits name="org.picketlink.as.console.application.App" />
+
+ <set-property name="user.agent" value="gecko1_8" />
+ <set-property name="locale" value="default" />
+
+</module>
Added: console/trunk/app/src/main/java/org/picketlink/as/console/application/client/AggregatedConsoleGinjector.java
===================================================================
--- console/trunk/app/src/main/java/org/picketlink/as/console/application/client/AggregatedConsoleGinjector.java (rev 0)
+++ console/trunk/app/src/main/java/org/picketlink/as/console/application/client/AggregatedConsoleGinjector.java 2012-03-15 01:23:05 UTC (rev 1511)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
+ * as indicated by the @author tags. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+package org.picketlink.as.console.application.client;
+
+import org.jboss.as.console.client.core.gin.CoreUI;
+import org.picketlink.as.console.client.core.gin.PicketLinkGinjector;
+
+/**
+ * <p>Ginjector interface which collects the core AS console and PicketLink
+ * specific Ginjectors.</p>
+ * <p>This class uses the AS7 extension mechanism.</p>
+ *
+ * @author Rob Cernich
+ */
+public interface AggregatedConsoleGinjector extends CoreUI, PicketLinkGinjector {
+
+}
Added: console/trunk/app/src/main/java/org/picketlink/as/console/application/client/AggregatedConsoleSingleton.java
===================================================================
--- console/trunk/app/src/main/java/org/picketlink/as/console/application/client/AggregatedConsoleSingleton.java (rev 0)
+++ console/trunk/app/src/main/java/org/picketlink/as/console/application/client/AggregatedConsoleSingleton.java 2012-03-15 01:23:05 UTC (rev 1511)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
+ * as indicated by the @author tags. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+package org.picketlink.as.console.application.client;
+
+import org.jboss.as.console.client.core.gin.CoreUI;
+import org.jboss.as.console.client.core.gin.GinjectorSingleton;
+
+import com.google.gwt.core.client.GWT;
+
+/**
+ * <p>GinjectorSingleton interface implementation too create a AggregatedConsoleGinjector (Ginjector) to
+ * collects PicketLink and AS7 Ginjectors.</p>
+ * <p>This class uses the AS7 extension mechanism.</p>
+ *
+ * @author Pedro Silva
+ * @author Rob Cernich
+ */
+public class AggregatedConsoleSingleton implements GinjectorSingleton {
+
+ private static final CoreUI INSTANCE = GWT.create(AggregatedConsoleGinjector.class);
+
+ @Override
+ public CoreUI getCoreUI() {
+ return INSTANCE;
+ }
+
+}
Added: console/trunk/app/src/main/java/org/picketlink/as/console/application/client/package-info.java
===================================================================
--- console/trunk/app/src/main/java/org/picketlink/as/console/application/client/package-info.java (rev 0)
+++ console/trunk/app/src/main/java/org/picketlink/as/console/application/client/package-info.java 2012-03-15 01:23:05 UTC (rev 1511)
@@ -0,0 +1,5 @@
+/**
+ * Provides the classes for extending the AS7 Console.
+ *
+ */
+package org.picketlink.as.console.application.client;
\ No newline at end of file
Added: console/trunk/app/src/main/java/org/picketlink/as/console/application/package-info.java
===================================================================
--- console/trunk/app/src/main/java/org/picketlink/as/console/application/package-info.java (rev 0)
+++ console/trunk/app/src/main/java/org/picketlink/as/console/application/package-info.java 2012-03-15 01:23:05 UTC (rev 1511)
@@ -0,0 +1,5 @@
+/**
+ * Provides the classes for extending the AS7 Console and also the *.gwt.xml files related with the PicketLink module.
+ *
+ */
+package org.picketlink.as.console.application;
\ No newline at end of file
Added: console/trunk/app/src/main/webapp/WEB-INF/web.xml
===================================================================
--- console/trunk/app/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ console/trunk/app/src/main/webapp/WEB-INF/web.xml 2012-03-15 01:23:05 UTC (rev 1511)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ version="2.5">
+
+ <servlet>
+ <servlet-name>gwtProxy</servlet-name>
+ <servlet-class>org.jboss.as.console.server.proxy.XmlHttpProxyServlet</servlet-class>
+ <init-param>
+ <param-name>config.name</param-name>
+ <param-value>gwt-proxy.properties</param-value>
+ </init-param>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet>
+ <servlet-name>uploadProxy</servlet-name>
+ <servlet-class>org.jboss.as.console.server.proxy.XmlHttpProxyServlet</servlet-class>
+ <init-param>
+ <param-name>config.name</param-name>
+ <param-value>upload-proxy.properties</param-value>
+ </init-param>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>gwtProxy</servlet-name>
+ <url-pattern>/app/proxy/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>uploadProxy</servlet-name>
+ <url-pattern>/app/upload/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
12 years, 9 months
Picketlink SVN: r1510 - console/trunk.
by picketlink-commits@lists.jboss.org
Author: pcraveiro
Date: 2012-03-14 21:15:03 -0400 (Wed, 14 Mar 2012)
New Revision: 1510
Removed:
console/trunk/README.md
console/trunk/app/
console/trunk/gui/
console/trunk/pom.xml
Log:
old code.
Deleted: console/trunk/README.md
===================================================================
--- console/trunk/README.md 2012-03-14 23:57:59 UTC (rev 1509)
+++ console/trunk/README.md 2012-03-15 01:15:03 UTC (rev 1510)
@@ -1 +0,0 @@
-Document profiles dev vs production
\ No newline at end of file
Deleted: console/trunk/pom.xml
===================================================================
--- console/trunk/pom.xml 2012-03-14 23:57:59 UTC (rev 1509)
+++ console/trunk/pom.xml 2012-03-15 01:15:03 UTC (rev 1510)
@@ -1,238 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.picketlink.as</groupId>
- <artifactId>picketlink-console-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <modules>
- <module>gui</module>
- <module>app</module>
- </modules>
- <properties>
- <gwt.version>2.3.0</gwt.version>
- <gwtp.version>0.6</gwtp.version>
- <gin.version>1.5_past22</gin.version>
- <gwt-log.version>3.1.3</gwt-log.version>
- <gwt-vis.version>1.1.1</gwt-vis.version>
- <guice.version>3.0</guice.version>
- <ballroom.version>1.1.0-SNAPSHOT</ballroom.version>
- </properties>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.picketlink.as</groupId>
- <artifactId>picketlink-console-extension</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
-
- <!-- GWT Common Dependencies -->
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-user</artifactId>
- <version>${gwt.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-servlet</artifactId>
- <version>${gwt.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-dev</artifactId>
- <version>${gwt.version}</version>
- </dependency>
-
- <!-- GWTP Dependencies -->
- <dependency>
- <groupId>com.gwtplatform</groupId>
- <artifactId>gwtp-mvp-client</artifactId>
- <version>${gwtp.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>com.gwtplatform</groupId>
- <artifactId>gwtp-dispatch-server</artifactId>
- <version>${gwtp.version}</version>
- </dependency>
-
- <dependency>
- <groupId>com.gwtplatform</groupId>
- <artifactId>gwtp-dispatch-server-guice</artifactId>
- <version>${gwtp.version}</version>
- </dependency>
-
- <dependency>
- <groupId>com.gwtplatform</groupId>
- <artifactId>gwtp-dispatch-client</artifactId>
- <version>${gwtp.version}</version>
- <scope>provided</scope> <!-- Remove for GWTP 0.5.1 and earlier -->
- </dependency>
-
-
- <!-- GWT DI Dependencies -->
- <dependency>
- <groupId>com.google.inject</groupId>
- <artifactId>guice</artifactId>
- <version>${guice.version}</version>
- </dependency>
-
- <dependency>
- <groupId>com.google.inject.extensions</groupId>
- <artifactId>guice-servlet</artifactId>
- <version>${guice.version}</version>
- </dependency>
-
- <dependency>
- <groupId>com.google.inject.extensions</groupId>
- <artifactId>guice-persist</artifactId>
- <version>${guice.version}</version>
- </dependency>
-
- <dependency>
- <groupId>com.google.inject.extensions</groupId>
- <artifactId>guice-assistedinject</artifactId>
- <version>${guice.version}</version>
- </dependency>
-
- <dependency>
- <groupId>com.google.gwt.inject</groupId>
- <artifactId>gin</artifactId>
- <version>${gin.version}</version>
- </dependency>
-
- <dependency>
- <groupId>com.google.code</groupId>
- <artifactId>gwt-visualization</artifactId>
- <version>${gwt-vis.version}</version>
- </dependency>
-
- <dependency>
- <groupId>com.google.code.gwt-log</groupId>
- <artifactId>gwt-log</artifactId>
- <version>${gwt-log.version}</version>
- </dependency>
-
- <!-- JBoss Ballroom Dependencies -->
- <dependency>
- <groupId>org.jboss.ballroom</groupId>
- <artifactId>widgets</artifactId>
- <version>${ballroom.version}</version>
- </dependency>
-
- <!-- SY AS7 Extension Dependency -->
- <dependency>
- <groupId>org.switchyard.console</groupId>
- <artifactId>switchyard-console-as7-core</artifactId>
- <version>0.4.0-SNAPSHOT</version>
- <scope>compile</scope>
- </dependency>
- <!-- Need to include the source files for GWT compilation. -->
- <dependency>
- <groupId>org.switchyard.console</groupId>
- <artifactId>switchyard-console-as7-core</artifactId>
- <version>0.4.0-SNAPSHOT</version>
- <classifier>sources</classifier>
- <scope>provided</scope>
- </dependency>
-
- <!-- Testing dependencies -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.8.2</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- <showDeprecation>false</showDeprecation>
- <showWarnings>true</showWarnings>
- <optimize>true</optimize>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skipTests>true</skipTests>
- <failIfNoTests>false</failIfNoTests>
- <trimStackTrace>false</trimStackTrace>
- <systemProperties>
- <property>
- <name>log4j.output.dir</name>
- <value>${project.build.directory}</value>
- </property>
- </systemProperties>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>2.1</version>
- <configuration>
- <tagBase>https://svn.jboss.org/repos/picketlink/console/trunk/tags</tagBase>
- <connectionUrl>scm:svn:https://svn.jboss.org/repos/picketlink/console/trunk</connectionUrl>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <!-- Repositories -->
- <repositories>
- <repository>
- <id>jboss-public-repository-group</id>
- <name>JBoss Public Maven Repository Group</name>
- <url>https://repository.jboss.org/nexus/content/groups/public/</url>
- <layout>default</layout>
- <releases>
- <updatePolicy>never</updatePolicy>
- </releases>
- <snapshots>
- <updatePolicy>never</updatePolicy>
- </snapshots>
- </repository>
- </repositories>
-
- <pluginRepositories>
- <pluginRepository>
- <id>jboss-public-repository-group</id>
- <name>JBoss Public Maven Repository Group</name>
- <url>https://repository.jboss.org/nexus/content/groups/public/</url>
- <layout>default</layout>
- <releases>
- <updatePolicy>never</updatePolicy>
- </releases>
- <snapshots>
- <updatePolicy>never</updatePolicy>
- </snapshots>
- </pluginRepository>
- <pluginRepository>
- <id>gwtplatform.plugin</id>
- <name>Gwtplatform custom plugin repository</name>
- <url>http://maven.gwt-platform.googlecode.com/hg/</url>
- <layout>default</layout>
- </pluginRepository>
- </pluginRepositories>
-</project>
\ No newline at end of file
12 years, 9 months
Picketlink SVN: r1509 - console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/model.
by picketlink-commits@lists.jboss.org
Author: pcraveiro
Date: 2012-03-14 19:57:59 -0400 (Wed, 14 Mar 2012)
New Revision: 1509
Removed:
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/model/Federation.java
Log:
First commit.
Deleted: console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/model/Federation.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/model/Federation.java 2012-03-14 23:57:07 UTC (rev 1508)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/model/Federation.java 2012-03-14 23:57:59 UTC (rev 1509)
@@ -1,39 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2012, Red Hat, Inc., and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.picketlink.as.console.client.shared.model;
-
-import org.jboss.as.console.client.widgets.forms.Address;
-import org.jboss.as.console.client.widgets.forms.Binding;
-
-/**
- * @author pedroigor
- * @sice Mar 14, 2012
- */
-@Address("/subsystem=picketlink/federation={0}")
-public interface Federation {
-
- @Binding(key = true)
- String getAlias();
- void setAlias(String alias);
-
-}
12 years, 9 months
Picketlink SVN: r1508 - in console/trunk/gui/src/main/java/org/picketlink/as/console: client/shared and 4 other directories.
by picketlink-commits@lists.jboss.org
Author: pcraveiro
Date: 2012-03-14 19:57:07 -0400 (Wed, 14 Mar 2012)
New Revision: 1508
Added:
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/Federation.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStore.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStoreImpl.java
console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/
console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/extension/
console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/extension/PicketLinkApplicationMetaDataGenerator.java
Log:
First commit.
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/Federation.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/Federation.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/Federation.java 2012-03-14 23:57:07 UTC (rev 1508)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client.shared.subsys.model;
+
+import org.jboss.as.console.client.widgets.forms.Address;
+import org.jboss.as.console.client.widgets.forms.Binding;
+
+/**
+ * @author pedroigor
+ * @sice Mar 14, 2012
+ */
+@Address("/subsystem=picketlink/federation={0}")
+public interface Federation {
+
+ @Binding(key = true)
+ String getAlias();
+ void setAlias(String alias);
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStore.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStore.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStore.java 2012-03-14 23:57:07 UTC (rev 1508)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client.shared.subsys.model;
+
+import java.util.List;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+/**
+ * <p>This interface defines the methods that can be used to manipulate the {@link Federation} model.</p>
+ *
+ * @author pedroigor
+ * @sice Mar 14, 2012
+ */
+public interface FederationStore {
+
+ void loadFederations(AsyncCallback<List<Federation>> callback);
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStoreImpl.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStoreImpl.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/shared/subsys/model/FederationStoreImpl.java 2012-03-14 23:57:07 UTC (rev 1508)
@@ -0,0 +1,102 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.client.shared.subsys.model;
+
+import static org.jboss.dmr.client.ModelDescriptionConstants.OP;
+import static org.jboss.dmr.client.ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION;
+import static org.jboss.dmr.client.ModelDescriptionConstants.RESULT;
+
+import java.util.List;
+
+import javax.inject.Inject;
+
+import org.jboss.as.console.client.shared.dispatch.DispatchAsync;
+import org.jboss.as.console.client.shared.dispatch.impl.DMRAction;
+import org.jboss.as.console.client.shared.dispatch.impl.DMRResponse;
+import org.jboss.as.console.client.shared.subsys.Baseadress;
+import org.jboss.as.console.client.widgets.forms.AddressBinding;
+import org.jboss.as.console.client.widgets.forms.ApplicationMetaData;
+import org.jboss.as.console.client.widgets.forms.BeanMetaData;
+import org.jboss.as.console.client.widgets.forms.EntityAdapter;
+import org.jboss.dmr.client.ModelNode;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+/**
+ * <p>Implementation of {@link Federation}.</p>
+ *
+ * @author pedroigor
+ * @sice Mar 14, 2012
+ */
+public class FederationStoreImpl implements FederationStore {
+
+ private final DispatchAsync dispatcher;
+ private final ApplicationMetaData metaData;
+ private final EntityAdapter<Federation> federationAdapter;
+
+ private BeanMetaData federationMetaData;
+ private Baseadress baseadress;
+
+ @Inject
+ public FederationStoreImpl(
+ DispatchAsync dispatcher,
+ ApplicationMetaData propertyMetaData,
+ Baseadress baseadress) {
+ this.dispatcher = dispatcher;
+ this.metaData = propertyMetaData;
+ this.baseadress = baseadress;
+ this.federationMetaData = metaData.getBeanMetaData(Federation.class);
+ this.federationAdapter = new EntityAdapter<Federation>(Federation.class, propertyMetaData);
+ }
+
+ @Override
+ public void loadFederations(final AsyncCallback<List<Federation>> callback) {
+ AddressBinding address = federationMetaData.getAddress();
+ ModelNode operation = address.asSubresource(baseadress.getAdress());
+ operation.get(OP).set(READ_CHILDREN_RESOURCES_OPERATION);
+
+ dispatcher.execute(new DMRAction(operation), new AsyncCallback<DMRResponse>() {
+ @Override
+ public void onFailure(Throwable caught) {
+ callback.onFailure(caught);
+ }
+
+ @Override
+ public void onSuccess(DMRResponse result) {
+
+ ModelNode response = result.get();
+
+ if(response.isFailure())
+ {
+ callback.onFailure(new RuntimeException(response.getFailureDescription()));
+ }
+ else
+ {
+ List<Federation> datasources = federationAdapter.fromDMRList(response.get(RESULT).asList());
+ callback.onSuccess(datasources);
+ }
+ }
+ });
+ }
+
+}
Added: console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/extension/PicketLinkApplicationMetaDataGenerator.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/extension/PicketLinkApplicationMetaDataGenerator.java (rev 0)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/rebind/extension/PicketLinkApplicationMetaDataGenerator.java 2012-03-14 23:57:07 UTC (rev 1508)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.picketlink.as.console.rebind.extension;
+
+import org.jboss.as.console.rebind.extensions.ApplicationMetaDataGeneratorExtension;
+
+/**
+ * @author pedroigor
+ * @sice Mar 14, 2012
+ */
+public class PicketLinkApplicationMetaDataGenerator extends ApplicationMetaDataGeneratorExtension {
+
+ /* (non-Javadoc)
+ * @see org.jboss.as.console.rebind.extensions.ApplicationMetaDataGeneratorExtension#getBeanFactory()
+ */
+ @Override
+ protected String getBeanFactory() {
+ return "org.picketlink.as.console.client.BeanFactory";
+ }
+
+}
12 years, 9 months
Picketlink SVN: r1507 - in console/trunk/gui/src/main/java/org/picketlink/as/console/client: core/gin and 1 other directories.
by picketlink-commits@lists.jboss.org
Author: pcraveiro
Date: 2012-03-14 19:56:35 -0400 (Wed, 14 Mar 2012)
New Revision: 1507
Modified:
console/trunk/gui/src/main/java/org/picketlink/as/console/client/BeanFactory.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkClientModule.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkGinjector.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationDetails.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationEditor.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationPresenter.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationTable.java
console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationView.java
Log:
First commit.
Modified: console/trunk/gui/src/main/java/org/picketlink/as/console/client/BeanFactory.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/BeanFactory.java 2012-03-14 23:56:06 UTC (rev 1506)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/BeanFactory.java 2012-03-14 23:56:35 UTC (rev 1507)
@@ -22,7 +22,7 @@
package org.picketlink.as.console.client;
-import org.picketlink.as.console.client.shared.model.Federation;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
import com.google.gwt.autobean.shared.AutoBean;
import com.google.gwt.autobean.shared.AutoBeanFactory;
@@ -31,7 +31,7 @@
* @author pedroigor
* @sice Mar 13, 2012
*/
-public interface BeanFactory extends AutoBeanFactory {
+public interface BeanFactory extends org.jboss.as.console.client.shared.BeanFactory {
/**
* @return a new AutoBean<SystemDetails>
Modified: console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkClientModule.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkClientModule.java 2012-03-14 23:56:06 UTC (rev 1506)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkClientModule.java 2012-03-14 23:56:35 UTC (rev 1507)
@@ -23,7 +23,10 @@
import org.picketlink.as.console.client.profile.ui.FederationView;
import org.picketlink.as.console.client.profile.ui.MainPagePresenter;
import org.picketlink.as.console.client.profile.ui.MainPageView;
+import org.picketlink.as.console.client.shared.subsys.model.FederationStore;
+import org.picketlink.as.console.client.shared.subsys.model.FederationStoreImpl;
+import com.google.inject.Singleton;
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
@@ -39,8 +42,10 @@
protected void configure() {
bindPresenter(MainPagePresenter.class, MainPagePresenter.MyView.class, MainPageView.class,
MainPagePresenter.MyProxy.class);
+
bindPresenter(FederationPresenter.class, FederationPresenter.MyView.class, FederationView.class,
FederationPresenter.MyProxy.class);
+ bind(FederationStore.class).to(FederationStoreImpl.class).in(Singleton.class);
}
}
Modified: console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkGinjector.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkGinjector.java 2012-03-14 23:56:06 UTC (rev 1506)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/core/gin/PicketLinkGinjector.java 2012-03-14 23:56:35 UTC (rev 1507)
@@ -39,8 +39,8 @@
*
* @author Rob Cernich
*/
-@SubsystemExtension(subsystem="picketlink", groups={@SubsystemGroupDefinition(name = ItemMenuProfileText.PICKETLINK, items = {
- @SubsystemItemDefinition(presenter = ProfileNameTokens.FEDERATION, name = ItemMenuProfileText.FEDERATION)})}, runtime = { @SubsystemItemDefinition(presenter = ProfileNameTokens.MAIN_PAGE, name = ItemMenuProfileText.PICKETLINK) })
+@SubsystemExtension(@SubsystemGroupDefinition(subsystem="picketlink", name = ItemMenuProfileText.PICKETLINK, items = {
+ @SubsystemItemDefinition(presenter = ProfileNameTokens.FEDERATION, name = ItemMenuProfileText.FEDERATION)}))
@GinModules(PicketLinkClientModule.class)
public interface PicketLinkGinjector extends Ginjector {
Modified: console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationDetails.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationDetails.java 2012-03-14 23:56:06 UTC (rev 1506)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationDetails.java 2012-03-14 23:56:35 UTC (rev 1507)
@@ -32,7 +32,7 @@
import org.jboss.ballroom.client.widgets.forms.TextItem;
import org.jboss.ballroom.client.widgets.tools.ToolButton;
import org.jboss.dmr.client.ModelNode;
-import org.picketlink.as.console.client.shared.model.Federation;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.client.ui.ScrollPanel;
Modified: console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationEditor.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationEditor.java 2012-03-14 23:56:06 UTC (rev 1506)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationEditor.java 2012-03-14 23:56:35 UTC (rev 1507)
@@ -35,13 +35,14 @@
import org.jboss.ballroom.client.widgets.tools.ToolButton;
import org.jboss.ballroom.client.widgets.tools.ToolStrip;
import org.jboss.ballroom.client.widgets.window.Feedback;
-import org.picketlink.as.console.client.shared.model.Federation;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
import com.google.gwt.dom.client.Style;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.LayoutPanel;
import com.google.gwt.user.client.ui.ScrollPanel;
+import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
@@ -148,19 +149,10 @@
// -----------------
- final FormToolStrip.FormCallback<DataSource> formCallback = new FormToolStrip.FormCallback<DataSource>() {
- @Override
- public void onSave(Map<String, Object> changeset) {
- Federation ds = getCurrentSelection();
- presenter.onSaveFederationDetails(ds.getAlias(), changeset);
- }
-
- @Override
- public void onDelete(DataSource entity) {
- // n/a
- }
- };
-
+ bottomPanel.add(new SimplePanel(), "Identity Provider");
+ bottomPanel.add(new SimplePanel(), "Service Providers");
+ bottomPanel.add(new SimplePanel(), "Digital Certificates");
+
bottomPanel.selectTab(0);
// -----------------
Modified: console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationPresenter.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationPresenter.java 2012-03-14 23:56:06 UTC (rev 1506)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationPresenter.java 2012-03-14 23:56:35 UTC (rev 1507)
@@ -21,15 +21,16 @@
*/
package org.picketlink.as.console.client.profile.ui;
-import java.util.ArrayList;
import java.util.List;
import java.util.Map;
+import org.jboss.as.console.client.domain.model.SimpleCallback;
import org.jboss.as.console.client.shared.subsys.RevealStrategy;
import org.jboss.ballroom.client.layout.LHSHighlightEvent;
import org.picketlink.as.console.client.BeanFactory;
import org.picketlink.as.console.client.ProfileNameTokens;
-import org.picketlink.as.console.client.shared.model.Federation;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
+import org.picketlink.as.console.client.shared.subsys.model.FederationStore;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.event.shared.EventBus;
@@ -62,15 +63,17 @@
private final PlaceManager placeManager;
private final RevealStrategy revealStrategy;
private final BeanFactory beanFactory;
+ private FederationStore federationStore;
@Inject
public FederationPresenter(final EventBus eventBus, BeanFactory beanFactory, final MyView view, final MyProxy proxy,
- final PlaceManager placeManager, RevealStrategy revealStrategy) {
+ final PlaceManager placeManager, RevealStrategy revealStrategy, FederationStore federationStore) {
super(eventBus, view, proxy);
this.placeManager = placeManager;
this.revealStrategy = revealStrategy;
this.beanFactory = beanFactory;
+ this.federationStore = federationStore;
}
@Override
@@ -97,20 +100,12 @@
@Override
protected void onReset() {
super.onReset();
- ArrayList<Federation> federations = new ArrayList<Federation>();
-
- Federation federation1 = this.beanFactory.federation().as();
-
- federation1.setAlias("federation-01");
-
- Federation federation2 = this.beanFactory.federation().as();
-
- federation2.setAlias("federation-02");
-
- federations.add(federation1);
- federations.add(federation2);
-
- getView().updateFederations(federations);
+ this.federationStore.loadFederations(new SimpleCallback<List<Federation>>() {
+ @Override
+ public void onSuccess(List<Federation> result) {
+ getView().updateFederations(result);
+ }
+ });
}
/**
Modified: console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationTable.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationTable.java 2012-03-14 23:56:06 UTC (rev 1506)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationTable.java 2012-03-14 23:56:35 UTC (rev 1507)
@@ -24,7 +24,7 @@
import org.jboss.ballroom.client.widgets.tables.DefaultCellTable;
import org.jboss.ballroom.client.widgets.tables.DefaultPager;
-import org.picketlink.as.console.client.shared.model.Federation;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
import com.google.gwt.user.cellview.client.TextColumn;
import com.google.gwt.user.client.ui.VerticalPanel;
Modified: console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationView.java
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationView.java 2012-03-14 23:56:06 UTC (rev 1506)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/client/profile/ui/FederationView.java 2012-03-14 23:56:35 UTC (rev 1507)
@@ -27,7 +27,7 @@
import org.jboss.as.console.client.Console;
import org.jboss.as.console.client.core.SuspendableViewImpl;
import org.jboss.as.console.client.widgets.tabs.DefaultTabLayoutPanel;
-import org.picketlink.as.console.client.shared.model.Federation;
+import org.picketlink.as.console.client.shared.subsys.model.Federation;
import com.google.gwt.dom.client.Style;
import com.google.gwt.user.client.ui.Widget;
12 years, 9 months
Picketlink SVN: r1506 - console/trunk/gui/src/main/java/org/picketlink/as/console.
by picketlink-commits@lists.jboss.org
Author: pcraveiro
Date: 2012-03-14 19:56:06 -0400 (Wed, 14 Mar 2012)
New Revision: 1506
Modified:
console/trunk/gui/src/main/java/org/picketlink/as/console/PicketLinkConsole.gwt.xml
Log:
First commit.
Modified: console/trunk/gui/src/main/java/org/picketlink/as/console/PicketLinkConsole.gwt.xml
===================================================================
--- console/trunk/gui/src/main/java/org/picketlink/as/console/PicketLinkConsole.gwt.xml 2012-03-14 23:55:28 UTC (rev 1505)
+++ console/trunk/gui/src/main/java/org/picketlink/as/console/PicketLinkConsole.gwt.xml 2012-03-14 23:56:06 UTC (rev 1506)
@@ -15,7 +15,11 @@
<module rename-to="PicketLinkConsole">
<inherits name="org.jboss.as.console.App" />
-
+
+ <generate-with class="org.picketlink.as.console.rebind.extension.PicketLinkApplicationMetaDataGenerator">
+ <when-type-assignable class="org.jboss.as.console.client.widgets.forms.ApplicationMetaData" />
+ </generate-with>
+
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />
12 years, 9 months
Picketlink SVN: r1505 - console/trunk/app/src/main/java/org/picketlink/as/console/application.
by picketlink-commits@lists.jboss.org
Author: pcraveiro
Date: 2012-03-14 19:55:28 -0400 (Wed, 14 Mar 2012)
New Revision: 1505
Modified:
console/trunk/app/src/main/java/org/picketlink/as/console/application/Development.gwt.xml
Log:
First commit.
Modified: console/trunk/app/src/main/java/org/picketlink/as/console/application/Development.gwt.xml
===================================================================
--- console/trunk/app/src/main/java/org/picketlink/as/console/application/Development.gwt.xml 2012-03-14 15:19:11 UTC (rev 1504)
+++ console/trunk/app/src/main/java/org/picketlink/as/console/application/Development.gwt.xml 2012-03-14 23:55:28 UTC (rev 1505)
@@ -20,6 +20,7 @@
<module rename-to="app">
<inherits name="org.picketlink.as.console.application.App" />
+
<set-property name="user.agent" value="gecko1_8" />
<set-property name="locale" value="default" />
12 years, 9 months
Picketlink SVN: r1503 - console/trunk/gui.
by picketlink-commits@lists.jboss.org
Author: pcraveiro
Date: 2012-03-14 01:36:49 -0400 (Wed, 14 Mar 2012)
New Revision: 1503
Added:
console/trunk/gui/pom.xml
Log:
First commit.
Added: console/trunk/gui/pom.xml
===================================================================
--- console/trunk/gui/pom.xml (rev 0)
+++ console/trunk/gui/pom.xml 2012-03-14 05:36:49 UTC (rev 1503)
@@ -0,0 +1,150 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>picketlink-console-parent</artifactId>
+ <groupId>org.picketlink.as</groupId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <packaging>jar</packaging>
+ <artifactId>picketlink-console-extension</artifactId>
+ <dependencies>
+
+ <dependency>
+ <groupId>org.jboss.ballroom</groupId>
+ <artifactId>widgets</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- XXX: replace with proper AS dependency once console includes extension
+ support. -->
+ <dependency>
+ <groupId>org.switchyard.console</groupId>
+ <artifactId>switchyard-console-as7-core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.code</groupId>
+ <artifactId>gwt-visualization</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.code.gwt-log</groupId>
+ <artifactId>gwt-log</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.gwtplatform</groupId>
+ <artifactId>gwtp-mvp-client</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.inject</groupId>
+ <artifactId>guice</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.google.inject.extensions</groupId>
+ <artifactId>guice-assistedinject</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt.inject</groupId>
+ <artifactId>gin</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-dev</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <version>2.3.0</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>resources</goal>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ <!-- Plugin configuration. There are many available options, see gwt-maven-plugin
+ documentation at codehaus.org -->
+ <configuration>
+ <htmlunit>FF3,IE7</htmlunit>
+ <logLevel>TRACE</logLevel>
+ <mode>htmlunit</mode>
+ <extraJvmArgs>-Xmx512m</extraJvmArgs>
+ <localWorkers>2</localWorkers>
+ </configuration>
+ </plugin>
+
+ <!-- Remove GWT tests -->
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/GwtTest*.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ <pluginManagement>
+ <plugins>
+ <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>
+ org.codehaus.mojo
+ </groupId>
+ <artifactId>
+ gwt-maven-plugin
+ </artifactId>
+ <versionRange>
+ [2.3.0,)
+ </versionRange>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore></ignore>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
\ No newline at end of file
12 years, 9 months
Picketlink SVN: r1502 - console/trunk/app.
by picketlink-commits@lists.jboss.org
Author: pcraveiro
Date: 2012-03-14 01:36:39 -0400 (Wed, 14 Mar 2012)
New Revision: 1502
Added:
console/trunk/app/pom.xml
Log:
First commit.
Added: console/trunk/app/pom.xml
===================================================================
--- console/trunk/app/pom.xml (rev 0)
+++ console/trunk/app/pom.xml 2012-03-14 05:36:39 UTC (rev 1502)
@@ -0,0 +1,261 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>picketlink-console-parent</artifactId>
+ <groupId>org.picketlink.as</groupId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <name>PicketLink: Management Console Application</name>
+ <description>Integrated AS7 console application, which includes the PicketLink extension.</description>
+ <packaging>war</packaging>
+ <artifactId>picketlink-console-application</artifactId>
+
+ <properties>
+ <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
+ </properties>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.picketlink.as</groupId>
+ <artifactId>picketlink-console-extension</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.ballroom</groupId>
+ <artifactId>widgets</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- Need to include the source files for GWT compilation. -->
+ <dependency>
+ <groupId>org.switchyard.console</groupId>
+ <artifactId>switchyard-console-as7-core</artifactId>
+ <classifier>sources</classifier>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- XXX: replace with proper AS dependency once console includes extension
+ support. -->
+ <dependency>
+ <groupId>org.switchyard.console</groupId>
+ <artifactId>switchyard-console-as7-core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.code</groupId>
+ <artifactId>gwt-visualization</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.code.gwt-log</groupId>
+ <artifactId>gwt-log</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.gwtplatform</groupId>
+ <artifactId>gwtp-mvp-client</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.inject</groupId>
+ <artifactId>guice</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.google.inject.extensions</groupId>
+ <artifactId>guice-assistedinject</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt.inject</groupId>
+ <artifactId>gin</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-dev</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <version>2.3.0</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>compile</goal>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ <!-- Plugin configuration. There are many available options, see gwt-maven-plugin
+ documentation at codehaus.org -->
+ <configuration>
+ <compileReport>false</compileReport>
+ <hostedWebapp>${webappDirectory}</hostedWebapp>
+ <htmlunit>FF3,IE7</htmlunit>
+ <logLevel>TRACE</logLevel>
+ <mode>htmlunit</mode>
+ <runTarget>App.html</runTarget>
+ <module>org.picketlink.as.console.application.App</module>
+ <extraJvmArgs>-Xmx512m</extraJvmArgs>
+ <localWorkers>2</localWorkers>
+ </configuration>
+ </plugin>
+ <!-- Copy static web files before executing gwt:run -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>compile</phase>
+ <goals>
+ <goal>exploded</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <failOnMissingWebXml>false</failOnMissingWebXml>
+ <packagingExcludes>WEB-INF/**</packagingExcludes>
+ <overlays>
+ <overlay>
+ <id>core-web-resources</id>
+ <groupId>org.switchyard.console</groupId>
+ <artifactId>switchyard-console-as7-core</artifactId>
+ <type>jar</type>
+ <includes>
+ <include>images/**</include>
+ <include>*.html</include>
+ </includes>
+ </overlay>
+ </overlays>
+ </configuration>
+ </plugin>
+ </plugins>
+ <pluginManagement>
+ <plugins>
+ <!--This plugin's configuration is used to store Eclipse m2e settings
+ only. It has no influence on the Maven build itself. -->
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>
+ org.apache.maven.plugins
+ </groupId>
+ <artifactId>
+ maven-war-plugin
+ </artifactId>
+ <versionRange>
+ [2.1.1,)
+ </versionRange>
+ <goals>
+ <goal>exploded</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore></ignore>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>dev</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <version>2.3.0</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>compile</goal>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ <!-- Plugin configuration. There are many available options, see gwt-maven-plugin
+ documentation at codehaus.org -->
+ <configuration>
+ <compileReport>false</compileReport>
+ <hostedWebapp>${webappDirectory}</hostedWebapp>
+ <htmlunit>FF3,IE7</htmlunit>
+ <logLevel>TRACE</logLevel>
+ <mode>htmlunit</mode>
+ <runTarget>App.html</runTarget>
+ <module>org.picketlink.as.console.application.Development</module>
+ <extraJvmArgs>-Xmx512m</extraJvmArgs>
+ <localWorkers>2</localWorkers>
+ </configuration>
+ </plugin>
+ <!-- Copy static web files before executing gwt:run -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>compile</phase>
+ <goals>
+ <goal>exploded</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <failOnMissingWebXml>false</failOnMissingWebXml>
+ <packagingExcludes>WEB-INF/**</packagingExcludes>
+ <overlays>
+ <overlay>
+ <id>core-web-resources</id>
+ <groupId>org.switchyard.console</groupId>
+ <artifactId>switchyard-console-as7-core</artifactId>
+ <type>jar</type>
+ <includes>
+ <include>images/**</include>
+ <include>*.html</include>
+ </includes>
+ </overlay>
+ </overlays>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
\ No newline at end of file
12 years, 9 months