From 0d94ce926595579c474474524b3e7c5157e4af8c Mon Sep 17 00:00:00 2001 From: objectiser Date: Wed, 23 Apr 2014 17:20:48 +0100 Subject: [PATCH 1/2] RTGOV-380 Support RTGov UI on Karaf --- modules/activity-analysis/pom.xml | 2 + .../situation-store-jpa/pom.xml | 40 +- .../store/jpa/JPASituationStore.java | 144 +- .../blueprint/situation-store-jpa.xml | 10 + .../situation/store/jpa/messages.properties | 4 - .../store/jpa/JPASituationStoreTest.java | 41 +- .../situation-store-mem/pom.xml | 77 + .../store/mem/MemSituationStore.java | 74 + .../src/main/resources/META-INF/beans.xml | 0 .../blueprint/situation-store-mem.xml | 10 + .../activity-analysis/situation-store/pom.xml | 76 + .../store/AbstractSituationStore.java | 172 + .../situation/store/ResolutionState.java} | 48 +- .../situation/store/SituationStore.java | 100 +- .../store/SituationStoreFactory.java | 89 + .../situation/store/SituationsQuery.java | 189 + .../situation/store/osgi/Activator.java | 87 + .../src/main/resources/META-INF/beans.xml | 0 .../OSGI-INF/blueprint/activity-store-jpa.xml | 2 +- modules/activity-management/activity/pom.xml | 11 + .../rtgov/activity/osgi/Activator.java | 87 + .../activity/server/ActivityStoreFactory.java | 37 +- .../rtgov/ep/jpa/JPAEventProcessor.java | 17 +- pom.xml | 27 + .../configuration/overlord-rtgov.properties | 7 +- release/jbossas/performance/tester/pom.xml | 35 + .../calltracerest/CallTraceRESTTest.java | 6 + .../actsvrrest/ActivityServerRESTTest.java | 5 + .../activity-management/bean-service/pom.xml | 35 + .../tests/platform/activity_server/pom.xml | 35 + .../jbossas/tests/platform/calltrace/pom.xml | 35 + .../custom_events_tester/pom.xml | 35 + .../JBossASCustomEventsResultsTest.java | 2 +- .../tests/platform/policy_async/pom.xml | 35 + .../tests/platform/policy_sync/pom.xml | 35 + .../tests/platform/service_dependency/pom.xml | 48 + .../tests/platform/situation_manager/pom.xml | 35 + .../tests/platform/sla_monitor/pom.xml | 35 + .../slamonitor/JBossASSLAMonitorTest.java | 2 +- release/jbossas/war-server/pom.xml | 6 +- release/karaf/features/pom.xml | 98 +- samples/karaf/pom.xml | 2 +- ui/.errai/BindableProxyLoaderImpl.java | 1614 -------- ui/.errai/BootstrapperImpl.java | 3332 ----------------- ui/.errai/GeneratedNavigationGraph.java | 364 -- ui/.errai/LessStyleMappingGenerated.java | 10 - ui/.errai/MarshallerFactoryImpl.java | 1433 ------- ui/.errai/RpcProxyLoaderImpl.java | 152 - ui/.errai/TranslationServiceImpl.java | 17 - ui/.errai/beangraph.gv | 177 - ui/.errai/errai-bundle-all.json | 74 - ui/.errai/errai-bundle-extra.json | 51 - ui/.errai/errai-bundle-missing.json | 74 - ui/.errai/navgraph.gv | 23 - .../impl/SituationsProviderServiceImpl.java | 2 +- ui/overlord-rtgov-ui-war-fuse6/pom.xml | 108 +- .../src/main/features/features.xml | 21 - .../impl/ServicesProviderServiceImpl.java | 160 + .../impl/SituationEventGenerator.java | 69 + .../impl/SituationsProviderServiceImpl.java | 206 + .../src/main/webapp/WEB-INF/beans.xml | 6 +- ui/overlord-rtgov-ui-war/pom.xml | 38 + .../local/pages/SituationDetailsPage.java | 2 +- .../situations/ResolutionStateListBox.java | 2 +- .../local/services/SituationsRpcService.java | 2 +- .../services/ISituationsServiceImpl.java | 2 +- .../ui/server/services/SituationsService.java | 2 +- .../impl/MockSituationsServiceImpl.java | 2 +- ui/rtgov-ui-core/pom.xml | 9 +- .../ui/client/model/ResolutionState.java | 36 +- .../ui/client/model/SituationSummaryBean.java | 1 + .../rtgov/ui/provider/SituationsProvider.java | 2 +- .../provider/switchyard/messages.properties | 5 - ui/rtgov-ui-situations/pom.xml | 13 +- .../situation/store/SituationsQuery.java | 177 - .../situations/RTGovSituationsProvider.java | 56 +- .../situations/SituationsFilterPredicate.java | 84 - .../situation/store/messages.properties | 4 + .../RTGovSituationsProviderTest.java | 10 +- .../SituationsFilterPredicateTest.java | 172 - 80 files changed, 2263 insertions(+), 8084 deletions(-) create mode 100644 modules/activity-analysis/situation-store-jpa/src/main/resources/OSGI-INF/blueprint/situation-store-jpa.xml delete mode 100644 modules/activity-analysis/situation-store-jpa/src/main/resources/org/overlord/rtgov/analytics/situation/store/jpa/messages.properties create mode 100644 modules/activity-analysis/situation-store-mem/pom.xml create mode 100644 modules/activity-analysis/situation-store-mem/src/main/java/org/overlord/rtgov/analytics/situation/store/mem/MemSituationStore.java create mode 100644 modules/activity-analysis/situation-store-mem/src/main/resources/META-INF/beans.xml create mode 100644 modules/activity-analysis/situation-store-mem/src/main/resources/OSGI-INF/blueprint/situation-store-mem.xml create mode 100644 modules/activity-analysis/situation-store/pom.xml create mode 100644 modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/AbstractSituationStore.java rename modules/activity-analysis/{situation-store-jpa/src/main/java/org/overlord/rtgov/analytics/situation/store/jpa/Messages.java => situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/ResolutionState.java} (54%) rename {ui/rtgov-ui-situations => modules/activity-analysis/situation-store}/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStore.java (56%) create mode 100644 modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStoreFactory.java create mode 100644 modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationsQuery.java create mode 100644 modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/osgi/Activator.java create mode 100644 modules/activity-analysis/situation-store/src/main/resources/META-INF/beans.xml create mode 100644 modules/activity-management/activity/src/main/java/org/overlord/rtgov/activity/osgi/Activator.java delete mode 100644 ui/.errai/BindableProxyLoaderImpl.java delete mode 100644 ui/.errai/BootstrapperImpl.java delete mode 100644 ui/.errai/GeneratedNavigationGraph.java delete mode 100644 ui/.errai/LessStyleMappingGenerated.java delete mode 100644 ui/.errai/MarshallerFactoryImpl.java delete mode 100644 ui/.errai/RpcProxyLoaderImpl.java delete mode 100644 ui/.errai/TranslationServiceImpl.java delete mode 100644 ui/.errai/beangraph.gv delete mode 100644 ui/.errai/errai-bundle-all.json delete mode 100644 ui/.errai/errai-bundle-extra.json delete mode 100644 ui/.errai/errai-bundle-missing.json delete mode 100644 ui/.errai/navgraph.gv delete mode 100644 ui/overlord-rtgov-ui-war-fuse6/src/main/features/features.xml create mode 100644 ui/overlord-rtgov-ui-war-fuse6/src/main/java/org/overlord/rtgov/ui/server/services/impl/ServicesProviderServiceImpl.java create mode 100644 ui/overlord-rtgov-ui-war-fuse6/src/main/java/org/overlord/rtgov/ui/server/services/impl/SituationEventGenerator.java create mode 100644 ui/overlord-rtgov-ui-war-fuse6/src/main/java/org/overlord/rtgov/ui/server/services/impl/SituationsProviderServiceImpl.java delete mode 100644 ui/rtgov-ui-situations/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationsQuery.java delete mode 100644 ui/rtgov-ui-situations/src/main/java/org/overlord/rtgov/ui/provider/situations/SituationsFilterPredicate.java create mode 100644 ui/rtgov-ui-situations/src/main/resources/org/overlord/rtgov/analytics/situation/store/messages.properties delete mode 100644 ui/rtgov-ui-situations/src/test/java/org/overlord/rtgov/ui/provider/situations/SituationsFilterPredicateTest.java diff --git a/modules/activity-analysis/pom.xml b/modules/activity-analysis/pom.xml index ed4f89b4..3e1b81a7 100644 --- a/modules/activity-analysis/pom.xml +++ b/modules/activity-analysis/pom.xml @@ -23,7 +23,9 @@ service-dependency service-dependency-svg situation-manager + situation-store situation-store-jpa + situation-store-mem diff --git a/modules/activity-analysis/situation-store-jpa/pom.xml b/modules/activity-analysis/situation-store-jpa/pom.xml index f7c11dc3..b6db8f13 100644 --- a/modules/activity-analysis/situation-store-jpa/pom.xml +++ b/modules/activity-analysis/situation-store-jpa/pom.xml @@ -3,6 +3,7 @@ 4.0.0 org.overlord.rtgov.activity-analysis situation-store-jpa + bundle Overlord RTGov::Modules::Activity Analysis::SituationStoreJPA @@ -12,10 +13,6 @@ - - org.overlord.rtgov.ui - rtgov-ui-situations - @@ -36,6 +33,11 @@ analytics provided + + org.overlord.rtgov.activity-analysis + situation-store + provided + @@ -70,7 +72,12 @@ - + + com.google.guava + guava + provided + + org.overlord.rtgov.activity-management @@ -90,4 +97,27 @@ + + + + org.apache.felix + maven-bundle-plugin + true + + + ${project.artifactId} + ${project.version} + + org.overlord.rtgov.analytics.situation.store.jpa.*;version=${project.version} + + + org.overlord.rtgov.analytics.situation, + * + + + + + + + diff --git a/modules/activity-analysis/situation-store-jpa/src/main/java/org/overlord/rtgov/analytics/situation/store/jpa/JPASituationStore.java b/modules/activity-analysis/situation-store-jpa/src/main/java/org/overlord/rtgov/analytics/situation/store/jpa/JPASituationStore.java index f59aecb7..0178159c 100644 --- a/modules/activity-analysis/situation-store-jpa/src/main/java/org/overlord/rtgov/analytics/situation/store/jpa/JPASituationStore.java +++ b/modules/activity-analysis/situation-store-jpa/src/main/java/org/overlord/rtgov/analytics/situation/store/jpa/JPASituationStore.java @@ -16,11 +16,9 @@ package org.overlord.rtgov.analytics.situation.store.jpa; import static com.google.common.base.Strings.isNullOrEmpty; -import static java.lang.System.currentTimeMillis; import java.net.URL; import java.util.List; -import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; @@ -33,9 +31,8 @@ import org.overlord.rtgov.analytics.situation.store.SituationsQuery; import org.overlord.rtgov.jpa.JpaStore; import org.overlord.rtgov.jpa.JpaStore.JpaWork; -import org.overlord.rtgov.ui.client.model.ResolutionState; -import org.overlord.rtgov.ui.provider.situations.Messages; -import org.overlord.rtgov.ui.server.interceptors.IUserContext; +import org.overlord.rtgov.analytics.situation.store.AbstractSituationStore; +import org.overlord.rtgov.analytics.situation.store.ResolutionState; import com.google.common.base.Strings; @@ -45,12 +42,10 @@ * */ @Singleton -public class JPASituationStore implements SituationStore { +public class JPASituationStore extends AbstractSituationStore implements SituationStore { private static final int PROPERTY_VALUE_MAX_LENGTH = 250; - private static volatile Messages i18n = new Messages(); - private static final Logger LOG = Logger.getLogger(JPASituationStore.class.getName()); private static final String JNDI_PROPERTY = "JPASituationStore.jndi.datasource"; @@ -79,23 +74,27 @@ public JPASituationStore(JpaStore jpaStore) { */ public Situation getSituation(final String id) { if (LOG.isLoggable(Level.FINEST)) { - LOG.finest(i18n.format("JPASituationStore.GetSit", id)); //$NON-NLS-1$ + LOG.finest("Get situation: "+id); //$NON-NLS-1$ } Situation ret = _jpaStore.withJpa(new JpaWork() { public Situation perform(Session s) { - return (Situation) s.createQuery("SELECT sit FROM Situation sit " //$NON-NLS-1$ - + "WHERE sit.id = '" + id + "'") //$NON-NLS-1$ //$NON-NLS-2$ - .uniqueResult(); + return loadSituation(s, id); } }); if (LOG.isLoggable(Level.FINEST)) { - LOG.finest(i18n.format("JPASituationStore.Result", ret)); //$NON-NLS-1$ + LOG.finest("Situation="+ret); //$NON-NLS-1$ } return (ret); } + + protected Situation loadSituation(final Session s, final String id) { + return (Situation) s.createQuery("SELECT sit FROM Situation sit " //$NON-NLS-1$ + + "WHERE sit.id = '" + id + "'") //$NON-NLS-1$ //$NON-NLS-2$ + .uniqueResult(); + } /** * {@inheritDoc} @@ -110,7 +109,7 @@ public List perform(Session s) { } }); if (LOG.isLoggable(Level.FINEST)) { - LOG.finest(i18n.format("JPASituationStore.SitResult", situations)); //$NON-NLS-1$ + LOG.finest("Situations="+situations); //$NON-NLS-1$ } return (situations); } @@ -193,13 +192,9 @@ private String createQuery(String selectOrDelete, SituationsQuery sitQuery) { * {@inheritDoc} */ public void assignSituation(final String situationId, final String userName) { - if (LOG.isLoggable(Level.FINEST)) { - LOG.finest(i18n.format("JPASituationStore.AssSit", situationId)); //$NON-NLS-1$ - } _jpaStore.withJpa(new JpaWork() { public Void perform(Session s) { - Situation situation = (Situation) s.get(Situation.class, situationId); - situation.getSituationProperties().put(ASSIGNED_TO_PROPERTY, userName); + doAssignSituation(loadSituation(s, situationId), userName); return null; } }); @@ -209,20 +204,9 @@ public Void perform(Session s) { * {@inheritDoc} */ public void closeSituation(final String situationId) { - if (LOG.isLoggable(Level.FINEST)) { - LOG.finest(i18n.format("JPASituationStore.DeassSit", situationId)); //$NON-NLS-1$ - } _jpaStore.withJpa(new JpaWork() { public Void perform(Session s) { - Situation situation = (Situation) s.get(Situation.class, situationId); - java.util.Map properties = situation.getSituationProperties(); - properties.remove(ASSIGNED_TO_PROPERTY); - // remove current state if not already resolved - String resolutionState = properties.get(RESOLUTION_STATE_PROPERTY); - if (resolutionState != null - && ResolutionState.RESOLVED != ResolutionState.valueOf(resolutionState)) { - properties.remove(RESOLUTION_STATE_PROPERTY); - } + doCloseSituation(loadSituation(s, situationId)); return null; } }); @@ -232,116 +216,50 @@ public Void perform(Session s) { * {@inheritDoc} */ public void updateResolutionState(final String situationId, final ResolutionState resolutionState) { - if (LOG.isLoggable(Level.FINEST)) { - LOG.finest(i18n.format("JPASituationStore.UpdRState", situationId)); //$NON-NLS-1$ - } _jpaStore.withJpa(new JpaWork() { public Void perform(Session s) { - Situation situation = (Situation) s.get(Situation.class, situationId); - situation.getSituationProperties().put(RESOLUTION_STATE_PROPERTY, resolutionState.name()); + doUpdateResolutionState(loadSituation(s, situationId), resolutionState); return null; } }); } - /** - * This class provides the situation results. - * - */ - public static class SituationsResult { - - private java.util.List _situations = null; - private int _totalCount = 0; - - /** - * This is the constructor for the situation results. - * - * @param situations - * The situations relevant for the requested page - * @param total - * The total number - */ - public SituationsResult(java.util.List situations, int total) { - _situations = situations; - _totalCount = total; - } - - /** - * This method returns the list of situations for the selected page. - * - * @return The situations - */ - public java.util.List getSituations() { - return (_situations); - } - - /** - * This method returns the total number of situations available. - * - * @return The total number of situations - */ - public int getTotalCount() { - return (_totalCount); - } - } - @Override - public void recordSuccessfulResubmit(final String situationId) { - if (LOG.isLoggable(Level.FINEST)) { - LOG.finest(i18n.format("JPASituationStore.Resubmit", situationId)); //$NON-NLS-1$ - } + public void recordSuccessfulResubmit(final String situationId, final String userName) { _jpaStore.withJpa(new JpaWork() { public Void perform(Session s) { - Situation situation = (Situation) s.get(Situation.class, situationId); - Map properties = situation.getSituationProperties(); - if (IUserContext.Holder.getUserPrincipal() != null) { - properties.put(RESUBMIT_BY_PROPERTY, IUserContext.Holder.getUserPrincipal().getName()); - } - properties.put(RESUBMIT_AT_PROPERTY, Long.toString(currentTimeMillis())); - properties.put(RESUBMIT_RESULT_PROPERTY, RESUBMIT_RESULT_SUCCESS); - properties.remove(RESUBMIT_ERROR_MESSAGE); + doRecordSuccessfulResubmit(loadSituation(s, situationId), userName); return null; } }); } @Override - public void recordResubmitFailure(final String situationId, final String errorMessage) { - if (LOG.isLoggable(Level.FINEST)) { - LOG.finest(i18n.format("JPASituationStore.ResubmitFailure", situationId)); //$NON-NLS-1$ - } + public void recordResubmitFailure(final String situationId, final String errorMessage, final String userName) { _jpaStore.withJpa(new JpaWork() { public Void perform(Session s) { - Situation situation = (Situation) s.get(Situation.class, situationId); - Map properties = situation.getSituationProperties(); - if (IUserContext.Holder.getUserPrincipal() != null) { - properties.put(RESUBMIT_BY_PROPERTY, IUserContext.Holder.getUserPrincipal().getName()); - } - properties.put(RESUBMIT_AT_PROPERTY, Long.toString(currentTimeMillis())); - properties.put(RESUBMIT_RESULT_PROPERTY, RESUBMIT_RESULT_ERROR); String message = Strings.nullToEmpty(errorMessage); if (message.length() > PROPERTY_VALUE_MAX_LENGTH) { message = message.substring(0, PROPERTY_VALUE_MAX_LENGTH); } - properties.put(RESUBMIT_ERROR_MESSAGE, message); + doRecordResubmitFailure(loadSituation(s, situationId), message, userName); return null; } }); } - @Override - public int delete(final SituationsQuery situationQuery) { - final String queryString = createQuery("SELECT sit from Situation sit ", situationQuery); - return _jpaStore.withJpa(new JpaWork() { - public Integer perform(Session s) { - Query query = s.createQuery(queryString); - @SuppressWarnings("unchecked") - List situations = query.list(); - for (Situation situation : situations) { - s.delete(situation); - } - return situations.size(); + /** + * This method deletes the supplied situation. + * + * @param situation The situation + */ + protected void doDelete(final Situation situation) { + _jpaStore.withJpa(new JpaWork() { + public Void perform(Session s) { + s.delete(situation); + return null; } }); } + } diff --git a/modules/activity-analysis/situation-store-jpa/src/main/resources/OSGI-INF/blueprint/situation-store-jpa.xml b/modules/activity-analysis/situation-store-jpa/src/main/resources/OSGI-INF/blueprint/situation-store-jpa.xml new file mode 100644 index 00000000..2c7e9eb7 --- /dev/null +++ b/modules/activity-analysis/situation-store-jpa/src/main/resources/OSGI-INF/blueprint/situation-store-jpa.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/modules/activity-analysis/situation-store-jpa/src/main/resources/org/overlord/rtgov/analytics/situation/store/jpa/messages.properties b/modules/activity-analysis/situation-store-jpa/src/main/resources/org/overlord/rtgov/analytics/situation/store/jpa/messages.properties deleted file mode 100644 index 00b5a0fc..00000000 --- a/modules/activity-analysis/situation-store-jpa/src/main/resources/org/overlord/rtgov/analytics/situation/store/jpa/messages.properties +++ /dev/null @@ -1,4 +0,0 @@ -JPASituationStore.GetSit=Get situation with id={0} -JPASituationStore.SitResult=Situations result={0} -JPASituationStore.Result=Result={0} -JPASituationStore.Result=Update situation with id={0} diff --git a/modules/activity-analysis/situation-store-jpa/src/test/java/org/overlord/rtgov/analytics/situation/store/jpa/JPASituationStoreTest.java b/modules/activity-analysis/situation-store-jpa/src/test/java/org/overlord/rtgov/analytics/situation/store/jpa/JPASituationStoreTest.java index 9df390ca..0af2eb2f 100644 --- a/modules/activity-analysis/situation-store-jpa/src/test/java/org/overlord/rtgov/analytics/situation/store/jpa/JPASituationStoreTest.java +++ b/modules/activity-analysis/situation-store-jpa/src/test/java/org/overlord/rtgov/analytics/situation/store/jpa/JPASituationStoreTest.java @@ -1,12 +1,26 @@ +/* + * 2012-3 Red Hat Inc. and/or its affiliates and other contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.overlord.rtgov.analytics.situation.store.jpa; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; -import static org.overlord.rtgov.ui.client.model.ResolutionState.IN_PROGRESS; +import static org.overlord.rtgov.analytics.situation.store.ResolutionState.IN_PROGRESS; import java.net.URL; -import java.security.Principal; import java.util.Collections; import java.util.List; @@ -25,8 +39,7 @@ import org.overlord.rtgov.analytics.situation.store.SituationsQuery; import org.overlord.rtgov.jpa.JpaStore; import org.overlord.rtgov.jpa.JpaStore.JpaWork; -import org.overlord.rtgov.ui.client.model.ResolutionState; -import org.overlord.rtgov.ui.server.interceptors.IUserContext; +import org.overlord.rtgov.analytics.situation.store.ResolutionState; import com.google.common.base.Strings; import com.google.common.collect.Sets; @@ -42,19 +55,6 @@ public void init() throws NamingException { final URL configXml = JPASituationStoreTest.class.getClassLoader().getResource("hibernate-test.cfg.xml"); _jpaStore = new JpaStore(configXml); _situationStore = new JPASituationStore(_jpaStore); - IUserContext.Holder.setSecurityContext(new IUserContext() { - - @Override - public Principal getUserPrincipal() { - return new Principal() { - - @Override - public String getName() { - return name.getMethodName(); - } - }; - } - }); } @Test @@ -340,7 +340,7 @@ public void recordResubmit() throws Exception { situation.setId(name.getMethodName()); situation.setTimestamp(System.currentTimeMillis()); persist(situation); - _situationStore.recordSuccessfulResubmit(situation.getId()); + _situationStore.recordSuccessfulResubmit(situation.getId(), name.getMethodName()); Situation reload = _situationStore.getSituation(situation.getId()); assertEquals(name.getMethodName(), reload.getSituationProperties().get(SituationStore.RESUBMIT_BY_PROPERTY)); assertEquals(SituationStore.RESUBMIT_RESULT_SUCCESS, reload.getSituationProperties().get(SituationStore.RESUBMIT_RESULT_PROPERTY)); @@ -354,7 +354,7 @@ public void recordResubmitFailure() throws Exception { situation.setId(name.getMethodName()); situation.setTimestamp(System.currentTimeMillis()); persist(situation); - _situationStore.recordResubmitFailure(situation.getId(), name.getMethodName()); + _situationStore.recordResubmitFailure(situation.getId(), name.getMethodName(), name.getMethodName()); Situation reload = _situationStore.getSituation(situation.getId()); assertEquals(name.getMethodName(), reload.getSituationProperties().get(SituationStore.RESUBMIT_BY_PROPERTY)); assertEquals(name.getMethodName(), reload.getSituationProperties().get(SituationStore.RESUBMIT_ERROR_MESSAGE)); @@ -369,7 +369,8 @@ public void recordResubmitErrorMessageMaxLength() throws Exception { situation.setId(name.getMethodName()); situation.setTimestamp(System.currentTimeMillis()); persist(situation); - _situationStore.recordResubmitFailure(situation.getId(), Strings.padEnd(name.getMethodName(), 10000, '*')); + _situationStore.recordResubmitFailure(situation.getId(), + Strings.padEnd(name.getMethodName(), 10000, '*'), name.getMethodName()); Situation reload = _situationStore.getSituation(situation.getId()); assertEquals(name.getMethodName(), reload.getSituationProperties().get(SituationStore.RESUBMIT_BY_PROPERTY)); String errorMessage = reload.getSituationProperties().get(SituationStore.RESUBMIT_ERROR_MESSAGE); diff --git a/modules/activity-analysis/situation-store-mem/pom.xml b/modules/activity-analysis/situation-store-mem/pom.xml new file mode 100644 index 00000000..da492f16 --- /dev/null +++ b/modules/activity-analysis/situation-store-mem/pom.xml @@ -0,0 +1,77 @@ + + 4.0.0 + org.overlord.rtgov.activity-analysis + situation-store-mem + bundle + Overlord RTGov::Modules::Activity Analysis::SituationStoreMem + + + org.overlord.rtgov + activity-analysis + 2.0.0-SNAPSHOT + + + + + + + org.overlord.rtgov.common + rtgov-common + + + org.overlord.rtgov.activity-management + activity + provided + + + org.overlord.rtgov.activity-analysis + analytics + provided + + + org.overlord.rtgov.activity-analysis + situation-store + provided + + + + + + org.overlord.rtgov.activity-management + activity-store-mem + test + + + + + junit + junit + test + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + ${project.artifactId} + ${project.version} + + org.overlord.rtgov.analytics.situation.store.mem.*;version=${project.version} + + + org.overlord.rtgov.analytics.situation, + * + + + + + + + + diff --git a/modules/activity-analysis/situation-store-mem/src/main/java/org/overlord/rtgov/analytics/situation/store/mem/MemSituationStore.java b/modules/activity-analysis/situation-store-mem/src/main/java/org/overlord/rtgov/analytics/situation/store/mem/MemSituationStore.java new file mode 100644 index 00000000..47452311 --- /dev/null +++ b/modules/activity-analysis/situation-store-mem/src/main/java/org/overlord/rtgov/analytics/situation/store/mem/MemSituationStore.java @@ -0,0 +1,74 @@ +/* + * Copyright 2013 JBoss Inc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.overlord.rtgov.analytics.situation.store.mem; + +import java.util.List; + +import org.overlord.rtgov.analytics.situation.Situation; +import org.overlord.rtgov.analytics.situation.store.AbstractSituationStore; +import org.overlord.rtgov.analytics.situation.store.SituationStore; +import org.overlord.rtgov.analytics.situation.store.SituationsQuery; + +/** + * This class provides the in-memory based implementation of the SituationsStore interface. + * + */ +public class MemSituationStore extends AbstractSituationStore implements SituationStore { + + private java.util.List _situations=new java.util.ArrayList(); + + /** + * The situation repository constructor. + */ + public MemSituationStore() { + } + + /** + * {@inheritDoc} + */ + public Situation getSituation(String id) { + for (Situation sit : _situations) { + if (sit.getId().equals(id)) { + return (sit); + } + } + + return (null); + } + + /** + * {@inheritDoc} + */ + public List getSituations(SituationsQuery sitQuery) { + List situations = new java.util.ArrayList(); + + for (Situation situation : _situations) { + if (sitQuery.matches(situation)) { + situations.add(situation); + } + } + + return (situations); + } + + /** + * {@inheritDoc} + */ + protected void doDelete(Situation situation) { + _situations.remove(situation); + } + +} diff --git a/modules/activity-analysis/situation-store-mem/src/main/resources/META-INF/beans.xml b/modules/activity-analysis/situation-store-mem/src/main/resources/META-INF/beans.xml new file mode 100644 index 00000000..e69de29b diff --git a/modules/activity-analysis/situation-store-mem/src/main/resources/OSGI-INF/blueprint/situation-store-mem.xml b/modules/activity-analysis/situation-store-mem/src/main/resources/OSGI-INF/blueprint/situation-store-mem.xml new file mode 100644 index 00000000..03ecb4f7 --- /dev/null +++ b/modules/activity-analysis/situation-store-mem/src/main/resources/OSGI-INF/blueprint/situation-store-mem.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/modules/activity-analysis/situation-store/pom.xml b/modules/activity-analysis/situation-store/pom.xml new file mode 100644 index 00000000..5d0688d0 --- /dev/null +++ b/modules/activity-analysis/situation-store/pom.xml @@ -0,0 +1,76 @@ + + 4.0.0 + org.overlord.rtgov.activity-analysis + situation-store + bundle + Overlord RTGov::Modules::Activity Analysis::SituationStore + + + org.overlord.rtgov + activity-analysis + 2.0.0-SNAPSHOT + + + + + + + org.overlord.rtgov.common + rtgov-common + + + org.overlord.rtgov.activity-management + activity + provided + + + org.overlord.rtgov.activity-analysis + analytics + provided + + + + + + org.osgi + org.osgi.core + provided + + + org.osgi + org.osgi.compendium + provided + + + junit + junit + test + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + ${project.artifactId} + ${project.version} + org.overlord.rtgov.analytics.situation.store.osgi.Activator + + org.overlord.rtgov.analytics.situation.store.*;version=${project.version} + + + org.overlord.rtgov.analytics.situation, + * + + + + + + + + diff --git a/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/AbstractSituationStore.java b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/AbstractSituationStore.java new file mode 100644 index 00000000..06de3733 --- /dev/null +++ b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/AbstractSituationStore.java @@ -0,0 +1,172 @@ +/* + * Copyright 2013 JBoss Inc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.overlord.rtgov.analytics.situation.store; + +import static java.lang.System.currentTimeMillis; + +import java.util.Map; +import java.util.logging.Level; +import java.util.logging.Logger; + +import org.overlord.rtgov.analytics.situation.Situation; + +/** + * This class provides an abstract base implementation of the SituationsStore interface. + * + */ +public abstract class AbstractSituationStore implements SituationStore { + + private static final Logger LOG=Logger.getLogger(AbstractSituationStore.class.getName()); + + /** + * The situation repository constructor. + */ + public AbstractSituationStore() { + } + + /** + * {@inheritDoc} + */ + public void assignSituation(final String situationId, final String userName) { + doAssignSituation(getSituation(situationId), userName); + } + + /** + * Assign the situation to the user. + * + * @param situationId The id + * @param userName The user + */ + protected void doAssignSituation(final Situation situation, final String userName) { + if (LOG.isLoggable(Level.FINEST)) { + LOG.finest("Assign situation '"+situation.getId()+"' for userName: "+userName); //$NON-NLS-1$ + } + situation.getSituationProperties().put(ASSIGNED_TO_PROPERTY, userName); + } + + /** + * {@inheritDoc} + */ + public void closeSituation(final String situationId) { + doCloseSituation(getSituation(situationId)); + } + + /** + * Close the situation. + * + * @param situationId Id + */ + protected void doCloseSituation(final Situation situation) { + java.util.Map properties = situation.getSituationProperties(); + properties.remove(ASSIGNED_TO_PROPERTY); + // remove current state if not already resolved + String resolutionState = properties.get(RESOLUTION_STATE_PROPERTY); + if (resolutionState != null && ResolutionState.RESOLVED != ResolutionState.valueOf(resolutionState)) { + properties.remove(RESOLUTION_STATE_PROPERTY); + } + } + + /** + * {@inheritDoc} + */ + public void updateResolutionState(final String situationId, final ResolutionState resolutionState) { + doUpdateResolutionState(getSituation(situationId), resolutionState); + } + + /** + * Update the resolution state. + * + * @param situationId The id + * @param resolutionState The state + */ + protected void doUpdateResolutionState(final Situation situation, final ResolutionState resolutionState) { + situation.getSituationProperties().put(RESOLUTION_STATE_PROPERTY, resolutionState.name()); + } + + @Override + public void recordSuccessfulResubmit(final String situationId, final String userName) { + doRecordSuccessfulResubmit(getSituation(situationId), userName); + } + + /** + * Record successful resubmit. + * + * @param situationId The id + */ + protected void doRecordSuccessfulResubmit(final Situation situation, final String userName) { + if (LOG.isLoggable(Level.FINEST)) { + LOG.finest("Record successful resubmit: situationId="+situation.getId()+" userName="+userName); //$NON-NLS-1$ + } + Map properties = situation.getSituationProperties(); + properties.put(RESUBMIT_BY_PROPERTY, userName); + properties.put(RESUBMIT_AT_PROPERTY, Long.toString(currentTimeMillis())); + properties.put(RESUBMIT_RESULT_PROPERTY, RESUBMIT_RESULT_SUCCESS); + properties.remove(RESUBMIT_ERROR_MESSAGE); + } + + @Override + public void recordResubmitFailure(final String situationId, final String errorMessage, + final String userName) { + doRecordResubmitFailure(getSituation(situationId), errorMessage, userName); + } + + /** + * Record resubmit failure. + * + * @param situationId The id + * @param errorMessage The error + * @param userName The optional user id who resubmitted the message + */ + protected void doRecordResubmitFailure(final Situation situation, final String errorMessage, + final String userName) { + if (LOG.isLoggable(Level.FINEST)) { + LOG.finest("Record unsuccessful resubmit: situationId="+situation.getId()+" userName="+userName); //$NON-NLS-1$ + } + Map properties = situation.getSituationProperties(); + properties.put(RESUBMIT_BY_PROPERTY, userName); + properties.put(RESUBMIT_AT_PROPERTY, Long.toString(currentTimeMillis())); + properties.put(RESUBMIT_RESULT_PROPERTY, RESUBMIT_RESULT_ERROR); + properties.put(RESUBMIT_ERROR_MESSAGE, errorMessage); + } + + @Override + public int delete(final SituationsQuery situationQuery) { + return (doDelete(situationQuery)); + } + + /** + * This method deletes the situations that meet the supplied query. + * + * @param situationQuery The query + * @return The number of deleted situations + */ + protected int doDelete(final SituationsQuery situationQuery) { + java.util.List situations=getSituations(situationQuery); + for (Situation situation : situations) { + doDelete(situation); + } + + return (situations.size()); + } + + /** + * This method deletes the specified situation. + * + * @param situation The situation + */ + protected abstract void doDelete(Situation situation); + +} diff --git a/modules/activity-analysis/situation-store-jpa/src/main/java/org/overlord/rtgov/analytics/situation/store/jpa/Messages.java b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/ResolutionState.java similarity index 54% rename from modules/activity-analysis/situation-store-jpa/src/main/java/org/overlord/rtgov/analytics/situation/store/jpa/Messages.java rename to modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/ResolutionState.java index 3ce4edf7..321aa1f8 100644 --- a/modules/activity-analysis/situation-store-jpa/src/main/java/org/overlord/rtgov/analytics/situation/store/jpa/Messages.java +++ b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/ResolutionState.java @@ -13,26 +13,46 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.overlord.rtgov.analytics.situation.store.jpa; - -import org.overlord.rtgov.ui.server.i18n.AbstractMessages; +package org.overlord.rtgov.analytics.situation.store; /** - * I18N messages. + * This enumerated type represents the resolution states. * */ -public class Messages extends AbstractMessages { - +public enum ResolutionState { + /** - * Messages for situations store jpa. + * Any resolution state. */ - public static final Messages I18N = new Messages(); - + ANY, + /** - * Constructor. + * Null resolution state. */ - public Messages() { - super(Messages.class); - } - + NULL, + + /** + * Unresolved state. + */ + UNRESOLVED, + + /** + * Resolved state. + */ + RESOLVED, + + /** + * In-progress state. + */ + IN_PROGRESS, + + /** + * Waiting state. + */ + WAITING, + + /** + * Re-opened state. + */ + REOPENED; } diff --git a/ui/rtgov-ui-situations/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStore.java b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStore.java similarity index 56% rename from ui/rtgov-ui-situations/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStore.java rename to modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStore.java index 6b021b28..1edcf56d 100644 --- a/ui/rtgov-ui-situations/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStore.java +++ b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStore.java @@ -16,7 +16,6 @@ package org.overlord.rtgov.analytics.situation.store; import org.overlord.rtgov.analytics.situation.Situation; -import org.overlord.rtgov.ui.client.model.ResolutionState; /** * This interface provides access to the Situation store. @@ -24,24 +23,58 @@ */ public interface SituationStore { - public static final String HOST_PROPERTY = "host"; - public static final String RESOLUTION_STATE_PROPERTY = "resolutionState"; - public static final String ASSIGNED_TO_PROPERTY = "assignedTo"; - public static final String RESUBMIT_ERROR_MESSAGE = "resubmitErrorMessage"; - public static final String RESUBMIT_RESULT_PROPERTY = "resubmitResult"; - public static final String RESUBMIT_AT_PROPERTY = "resubmitAt"; - public static final String RESUBMIT_BY_PROPERTY = "resubmitBy"; - public static final String RESUBMIT_RESULT_ERROR = "Error"; - public static final String RESUBMIT_RESULT_SUCCESS = "Success"; + /** + * Host property. + */ + public static final String HOST_PROPERTY = "host"; + + /** + * Resolution state property. + */ + public static final String RESOLUTION_STATE_PROPERTY = "resolutionState"; + + /** + * Situation 'assigned to' property. + */ + public static final String ASSIGNED_TO_PROPERTY = "assignedTo"; + + /** + * Resubmit error message property. + */ + public static final String RESUBMIT_ERROR_MESSAGE = "resubmitErrorMessage"; + + /** + * Resubmit result property. + */ + public static final String RESUBMIT_RESULT_PROPERTY = "resubmitResult"; + + /** + * Resubmit 'at' property. + */ + public static final String RESUBMIT_AT_PROPERTY = "resubmitAt"; + + /** + * Resubmit 'by' property. + */ + public static final String RESUBMIT_BY_PROPERTY = "resubmitBy"; + + /** + * Resubmit result error property. + */ + public static final String RESUBMIT_RESULT_ERROR = "Error"; + + /** + * Resubmit result successful property. + */ + public static final String RESUBMIT_RESULT_SUCCESS = "Success"; - /** + /** * This method returns the situation associated with the supplied id. * * @param id The id * @return The situation, or null if not found - * @throws Exception Failed to get situation */ public Situation getSituation(String id); @@ -51,7 +84,6 @@ public interface SituationStore { * * @param query The situations query * @return The list of situations - * @throws Exception Failed to get situations */ public java.util.List getSituations(SituationsQuery query); @@ -81,31 +113,31 @@ public interface SituationStore { */ public void updateResolutionState(String situationId, ResolutionState resolutionState) throws Exception; - /** - * Record's a successful resubmit of the situation matching the given id - * - * @param situationId - * The situation id - */ - public void recordSuccessfulResubmit(String situationId); - - /** - * Record's a failed resubmit of the situation matching the given id - * - * @param situationId - * The situation id - * @param message - * The exception message - */ - public void recordResubmitFailure(String situationId, String message); - - /** + /** + * Record's a successful resubmit of the situation matching the given id. + * + * @param situationId The situation id + * @param userName The optional user id who resubmitted the message for this situation + */ + public void recordSuccessfulResubmit(String situationId, String userName); + + /** + * Record's a failed resubmit of the situation matching the given id. + * + * @param situationId + * The situation id + * @param message + * The exception message + * @param userName The optional user id who resubmitted the message for this situation + */ + public void recordResubmitFailure(String situationId, String message, String userName); + + /** * This method deletes all situations that meet the criteria * specified in the query. * * @param query The situations query - * @return The list of situations - * @throws Exception Failed to get situations + * @return The number of deleted situations */ public int delete(SituationsQuery query); } diff --git a/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStoreFactory.java b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStoreFactory.java new file mode 100644 index 00000000..42bbce69 --- /dev/null +++ b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStoreFactory.java @@ -0,0 +1,89 @@ +/* + * 2012-3 Red Hat Inc. and/or its affiliates and other contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.overlord.rtgov.analytics.situation.store; + +import java.util.logging.Level; +import java.util.logging.Logger; + +import org.overlord.rtgov.common.util.RTGovProperties; + +/** + * This class represents a CDI factory for obtaining a situation store implementation. + * + */ +public final class SituationStoreFactory { + + private static final Logger LOG=Logger.getLogger(SituationStoreFactory.class.getName()); + + private static final String SITUATION_STORE_CLASS="SituationStore.class"; + + private static SituationStore _instance; + + /** + * Private constructor. + */ + private SituationStoreFactory() { + } + + /** + * This method will initialize the situation store factory to use the + * supplied situation store, if not already initialized with a value. + * + * @param sitStore The situation store + */ + public static synchronized void initialize(SituationStore sitStore) { + if (_instance == null) { + if (LOG.isLoggable(Level.FINER)) { + LOG.finer("Situation store initialized="+sitStore); + } + + _instance = sitStore; + } + } + + /** + * This method returns an instance of the SituationStore interface. + * + * @return The situation store + */ + public static synchronized SituationStore getSituationStore() { + if (_instance == null) { + try { + String clsName=(String)RTGovProperties.getProperties().get(SITUATION_STORE_CLASS); + + if (clsName != null) { + try { + @SuppressWarnings("unchecked") + Class cls=(Class) + Thread.currentThread().getContextClassLoader().loadClass(clsName); + + _instance = (SituationStore)cls.newInstance(); + } catch (Throwable t) { + LOG.log(Level.FINEST, "Failed to find situation store class '"+clsName+"'", t); + } + } + } catch (Throwable t) { + LOG.log(Level.FINEST, "Failed to get situation store class property", t); + } + } + + if (LOG.isLoggable(Level.FINER)) { + LOG.finer("Situation store instance="+_instance); + } + + return (_instance); + } +} diff --git a/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationsQuery.java b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationsQuery.java new file mode 100644 index 00000000..0937bfca --- /dev/null +++ b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationsQuery.java @@ -0,0 +1,189 @@ +/* + * Copyright 2013 JBoss Inc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.overlord.rtgov.analytics.situation.store; + +import org.overlord.rtgov.analytics.situation.Situation; + +/** + * This class provides identifies the situations query criteria. + * + */ +public class SituationsQuery { + + private String _type; + private String _description; + private String _subject; + private Situation.Severity _severity; + private long _fromTimestamp; + private long _toTimestamp; + private String _resolutionState; + private String _host; + + /** + * The default constructor. + */ + public SituationsQuery() { + } + + /** + * This method returns the type. + * + * @return The type + */ + public String getType() { + return (_type); + } + + /** + * This method sets the type. + * + * @param type The type + */ + public void setType(String type) { + _type = type; + } + + /** + * This method returns the subject. + * + * @return The subject + */ + public String getSubject() { + return (_subject); + } + + /** + * This method sets the subject. + * + * @param subject The subject + */ + public void setSubject(String subject) { + _subject = subject; + } + + /** + * This method returns the severity. + * + * @return The severity + */ + public Situation.Severity getSeverity() { + return (_severity); + } + + /** + * This method sets the severity. + * + * @param severity The severity + */ + public void setSeverity(Situation.Severity severity) { + _severity = severity; + } + + /** + * This method returns the from timestamp. + * + * @return The from timestamp + */ + public long getFromTimestamp() { + return (_fromTimestamp); + } + + /** + * This method sets the from timestamp. + * + * @param fromTimestamp The from timestamp + */ + public void setFromTimestamp(long fromTimestamp) { + _fromTimestamp = fromTimestamp; + } + + /** + * This method returns the to timestamp. + * + * @return The to timestamp + */ + public long getToTimestamp() { + return (_toTimestamp); + } + + /** + * This method sets the to timestamp. + * + * @param toTimestamp The to timestamp + */ + public void setToTimestamp(long toTimestamp) { + _toTimestamp = toTimestamp; + } + + /** + * This method returns the resolution state. + * + * @return The resolution state + */ + public String getResolutionState() { + return (_resolutionState); + } + + /** + * This method sets the resolution state. + * + * @param resolutionState The resolution state + */ + public void setResolutionState(String resolutionState) { + _resolutionState = resolutionState; + } + + /** + * @return the _description + */ + public String getDescription() { + return _description; + } + + /** + * @param description the description to set + */ + public void setDescription(String description) { + this._description = description; + } + + /** + * @return the host + */ + public String getHost() { + return _host; + } + + /** + * @param host the host to set + */ + public void setHost(String host) { + this._host = host; + } + + /** + * This method determines if the supplied situation matches + * the query criteria. + * + * @param situation The situation + * @return Whether the situation meets the query criteria + */ + public boolean matches(Situation situation) { + boolean ret=true; + + return (ret); + } +} diff --git a/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/osgi/Activator.java b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/osgi/Activator.java new file mode 100644 index 00000000..33925638 --- /dev/null +++ b/modules/activity-analysis/situation-store/src/main/java/org/overlord/rtgov/analytics/situation/store/osgi/Activator.java @@ -0,0 +1,87 @@ +/* + * 2012-4 Red Hat Inc. and/or its affiliates and other contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.overlord.rtgov.analytics.situation.store.osgi; + +import java.util.logging.Level; +import java.util.logging.Logger; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; +import org.osgi.framework.InvalidSyntaxException; +import org.osgi.framework.ServiceEvent; +import org.osgi.framework.ServiceListener; +import org.osgi.framework.ServiceReference; +import org.overlord.rtgov.analytics.situation.store.SituationStore; +import org.overlord.rtgov.analytics.situation.store.SituationStoreFactory; + +/** + * This class provides the activator capability for the analytics bundle. + * + */ +public class Activator implements BundleActivator { + + private static final Logger LOG=Logger.getLogger(Activator.class.getName()); + + /** + * {@inheritDoc} + */ + public void start(final BundleContext context) throws Exception { + ServiceReference actStoreRef=context.getServiceReference(SituationStore.class.getName()); + + if (actStoreRef != null) { + register(context, actStoreRef); + } else { + ServiceListener sl = new ServiceListener() { + public void serviceChanged(ServiceEvent ev) { + ServiceReference sr = ev.getServiceReference(); + switch(ev.getType()) { + case ServiceEvent.REGISTERED: + register(context, sr); + break; + default: + break; + } + } + }; + + String filter = "(objectclass=" + SituationStore.class.getName() + ")"; + try { + context.addServiceListener(sl, filter); + } catch (InvalidSyntaxException e) { + LOG.log(Level.SEVERE, "Failed to add service listener for situation store", e); + } + } + } + + /** + * This method registers the situation store associated with the + * supplied service reference. + * + * @param context The context + * @param actStoreRef The service ref + */ + protected void register(final BundleContext context, ServiceReference actStoreRef) { + SituationStore sitStore=(SituationStore)context.getService(actStoreRef); + SituationStoreFactory.initialize(sitStore); + } + + /** + * {@inheritDoc} + */ + public void stop(BundleContext context) throws Exception { + } + +} diff --git a/modules/activity-analysis/situation-store/src/main/resources/META-INF/beans.xml b/modules/activity-analysis/situation-store/src/main/resources/META-INF/beans.xml new file mode 100644 index 00000000..e69de29b diff --git a/modules/activity-management/activity-store-jpa/src/main/resources/OSGI-INF/blueprint/activity-store-jpa.xml b/modules/activity-management/activity-store-jpa/src/main/resources/OSGI-INF/blueprint/activity-store-jpa.xml index a39cd869..26bed802 100644 --- a/modules/activity-management/activity-store-jpa/src/main/resources/OSGI-INF/blueprint/activity-store-jpa.xml +++ b/modules/activity-management/activity-store-jpa/src/main/resources/OSGI-INF/blueprint/activity-store-jpa.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"> - + diff --git a/modules/activity-management/activity/pom.xml b/modules/activity-management/activity/pom.xml index a758e51f..b9693997 100644 --- a/modules/activity-management/activity/pom.xml +++ b/modules/activity-management/activity/pom.xml @@ -57,6 +57,16 @@ provided + + org.osgi + org.osgi.core + provided + + + org.osgi + org.osgi.compendium + provided + junit junit @@ -74,6 +84,7 @@ ${project.artifactId} ${project.version} + org.overlord.rtgov.activity.osgi.Activator org.overlord.rtgov.activity.*;version=${project.version} diff --git a/modules/activity-management/activity/src/main/java/org/overlord/rtgov/activity/osgi/Activator.java b/modules/activity-management/activity/src/main/java/org/overlord/rtgov/activity/osgi/Activator.java new file mode 100644 index 00000000..405123bc --- /dev/null +++ b/modules/activity-management/activity/src/main/java/org/overlord/rtgov/activity/osgi/Activator.java @@ -0,0 +1,87 @@ +/* + * 2012-4 Red Hat Inc. and/or its affiliates and other contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.overlord.rtgov.activity.osgi; + +import java.util.logging.Level; +import java.util.logging.Logger; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; +import org.osgi.framework.InvalidSyntaxException; +import org.osgi.framework.ServiceEvent; +import org.osgi.framework.ServiceListener; +import org.osgi.framework.ServiceReference; +import org.overlord.rtgov.activity.server.ActivityStore; +import org.overlord.rtgov.activity.server.ActivityStoreFactory; + +/** + * This class provides the activator capability for the activity bundle. + * + */ +public class Activator implements BundleActivator { + + private static final Logger LOG=Logger.getLogger(Activator.class.getName()); + + /** + * {@inheritDoc} + */ + public void start(final BundleContext context) throws Exception { + ServiceReference actStoreRef=context.getServiceReference(ActivityStore.class.getName()); + + if (actStoreRef != null) { + register(context, actStoreRef); + } else { + ServiceListener sl = new ServiceListener() { + public void serviceChanged(ServiceEvent ev) { + ServiceReference sr = ev.getServiceReference(); + switch(ev.getType()) { + case ServiceEvent.REGISTERED: + register(context, sr); + break; + default: + break; + } + } + }; + + String filter = "(objectclass=" + ActivityStore.class.getName() + ")"; + try { + context.addServiceListener(sl, filter); + } catch (InvalidSyntaxException e) { + LOG.log(Level.SEVERE, "Failed to add service listener for activity store", e); + } + } + } + + /** + * This method registers the activity store associated with the + * supplied service reference. + * + * @param context The context + * @param actStoreRef The service ref + */ + protected void register(final BundleContext context, ServiceReference actStoreRef) { + ActivityStore actStore=(ActivityStore)context.getService(actStoreRef); + ActivityStoreFactory.initialize(actStore); + } + + /** + * {@inheritDoc} + */ + public void stop(BundleContext context) throws Exception { + } + +} diff --git a/modules/activity-management/activity/src/main/java/org/overlord/rtgov/activity/server/ActivityStoreFactory.java b/modules/activity-management/activity/src/main/java/org/overlord/rtgov/activity/server/ActivityStoreFactory.java index 2e09c341..0c628e5c 100644 --- a/modules/activity-management/activity/src/main/java/org/overlord/rtgov/activity/server/ActivityStoreFactory.java +++ b/modules/activity-management/activity/src/main/java/org/overlord/rtgov/activity/server/ActivityStoreFactory.java @@ -28,11 +28,6 @@ public final class ActivityStoreFactory { private static final Logger LOG=Logger.getLogger(ActivityStoreFactory.class.getName()); - private static final String[] DEFAULT_IMPLEMENTATIONS={ - "org.overlord.rtgov.activity.store.jpa.JPAActivityStore", - "org.overlord.rtgov.activity.store.mem.MemActivityStore" - }; - private static final String ACTIVITY_STORE_CLASS="ActivityStore.class"; private static ActivityStore _instance; @@ -43,6 +38,22 @@ public final class ActivityStoreFactory { private ActivityStoreFactory() { } + /** + * This method will initialize the activity store factory to use the + * supplied activity store, if not already initialized with a value. + * + * @param actStore The activity store + */ + public static synchronized void initialize(ActivityStore actStore) { + if (_instance == null) { + if (LOG.isLoggable(Level.FINER)) { + LOG.finer("Activity store initialized="+actStore); + } + + _instance = actStore; + } + } + /** * This method returns an instance of the ActivityStore interface. * @@ -69,22 +80,6 @@ public static synchronized ActivityStore getActivityStore() { } } - if (_instance == null) { - for (String clsName : DEFAULT_IMPLEMENTATIONS) { - try { - @SuppressWarnings("unchecked") - Class cls=(Class) - Thread.currentThread().getContextClassLoader().loadClass(clsName); - - _instance = (ActivityStore)cls.newInstance(); - - break; - } catch (Throwable t) { - LOG.log(Level.FINEST, "Failed to find activity store class '"+clsName+"'", t); - } - } - } - if (LOG.isLoggable(Level.FINER)) { LOG.finer("Activity store instance="+_instance); } diff --git a/modules/event-processor/ep-jpa/src/main/java/org/overlord/rtgov/ep/jpa/JPAEventProcessor.java b/modules/event-processor/ep-jpa/src/main/java/org/overlord/rtgov/ep/jpa/JPAEventProcessor.java index ef41bca7..39fb9e11 100644 --- a/modules/event-processor/ep-jpa/src/main/java/org/overlord/rtgov/ep/jpa/JPAEventProcessor.java +++ b/modules/event-processor/ep-jpa/src/main/java/org/overlord/rtgov/ep/jpa/JPAEventProcessor.java @@ -43,8 +43,6 @@ public class JPAEventProcessor extends EventProcessor { * Constructor. */ public JPAEventProcessor() { - final URL configXml = this.getClass().getClassLoader().getResource("hibernate.cfg.xml"); - _jpaStore = new JpaStore(configXml, JNDI_PROPERTY); } /** @@ -56,6 +54,21 @@ public JPAEventProcessor(JpaStore jpaStore) { _jpaStore = jpaStore; } + /** + * {@inheritDoc} + */ + public void init() throws Exception { + super.init(); + + final URL configXml = Thread.currentThread().getContextClassLoader().getResource("hibernate.cfg.xml"); + + if (LOG.isLoggable(Level.FINE)) { + LOG.fine("Hibernate configure: "+configXml); + } + + _jpaStore = new JpaStore(configXml, JNDI_PROPERTY); + } + /** * @return The persistence unit name * diff --git a/pom.xml b/pom.xml index c0e092f6..5b539d88 100644 --- a/pom.xml +++ b/pom.xml @@ -65,6 +65,7 @@ + 0.7.4 3.1 6.1.0.Beta2 1.1.0 @@ -249,11 +250,21 @@ situation-manager ${project.version} + + org.overlord.rtgov.activity-analysis + situation-store + ${project.version} + org.overlord.rtgov.activity-analysis situation-store-jpa ${project.version} + + org.overlord.rtgov.activity-analysis + situation-store-mem + ${project.version} + org.overlord.rtgov.activity-management @@ -459,6 +470,12 @@ ${project.version} war + + org.overlord.rtgov.ui + overlord-rtgov-ui-war-fuse6 + ${project.version} + war + org.overlord.rtgov.samples.jbossas.ordermgmt @@ -635,6 +652,11 @@ overlord-commons-services ${overlord-commons.version} + + org.overlord + overlord-commons-osgi + ${overlord-commons.version} + org.overlord overlord-commons-auth @@ -940,6 +962,11 @@ ${remoting-jmx} + + ch.qos.cal10n + cal10n-api + ${cal10n-api.version} + diff --git a/release/jbossas/distribution/src/main/jbossas/profiles/server/configuration/overlord-rtgov.properties b/release/jbossas/distribution/src/main/jbossas/profiles/server/configuration/overlord-rtgov.properties index 559ceb13..5bbf87b6 100644 --- a/release/jbossas/distribution/src/main/jbossas/profiles/server/configuration/overlord-rtgov.properties +++ b/release/jbossas/distribution/src/main/jbossas/profiles/server/configuration/overlord-rtgov.properties @@ -9,6 +9,10 @@ collectionEnabled=true # activity units to the server ActivityServerLogger.maxThreads = 10 +# Store configuration +ActivityStore.class=org.overlord.rtgov.activity.store.jpa.JPAActivityStore +SituationStore.class=org.overlord.rtgov.analytics.situation.store.jpa.JPASituationStore + # Activity unit batch logging properties BatchedActivityUnitLogger.maxUnitCount=1000 BatchedActivityUnitLogger.maxTimeInterval=500 @@ -23,10 +27,9 @@ ActiveCollectionManager.houseKeepingInterval=10000 # Service dependency graph #MVELSeverityAnalyzer.scriptLocation = +# Elasticsearch configuration Elasticsearch.hosts=localhost:9300 -#Default Elasticsearch schedule configuration. Elasticsearch.schedule=30000 -ActivityStore.class=org.overlord.rtgov.activity.store.elasticsearch.ElasticsearchActivityStore JPAActivityStore.jndi.datasource=java:jboss/datasources/OverlordRTGov JPAEventProcessor.jndi.datasource=java:jboss/datasources/OverlordRTGov diff --git a/release/jbossas/performance/tester/pom.xml b/release/jbossas/performance/tester/pom.xml index 6b15dec1..4ca22812 100644 --- a/release/jbossas/performance/tester/pom.xml +++ b/release/jbossas/performance/tester/pom.xml @@ -138,6 +138,41 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-antrun-plugin + + + [1.7,) + + + run + + + + + + + + + + + + diff --git a/release/jbossas/tests/activity-analysis/call-trace-rest/src/test/java/org/overlord/rtgov/tests/actanal/jbossas/calltracerest/CallTraceRESTTest.java b/release/jbossas/tests/activity-analysis/call-trace-rest/src/test/java/org/overlord/rtgov/tests/actanal/jbossas/calltracerest/CallTraceRESTTest.java index ce178ac2..e9d2f89a 100644 --- a/release/jbossas/tests/activity-analysis/call-trace-rest/src/test/java/org/overlord/rtgov/tests/actanal/jbossas/calltracerest/CallTraceRESTTest.java +++ b/release/jbossas/tests/activity-analysis/call-trace-rest/src/test/java/org/overlord/rtgov/tests/actanal/jbossas/calltracerest/CallTraceRESTTest.java @@ -37,6 +37,7 @@ import org.overlord.rtgov.activity.model.soa.ResponseReceived; import org.overlord.rtgov.activity.model.soa.ResponseSent; import org.overlord.rtgov.activity.server.ActivityStoreFactory; +import org.overlord.rtgov.activity.store.mem.MemActivityStore; import org.overlord.rtgov.call.trace.model.CallTrace; import org.overlord.rtgov.call.trace.util.CallTraceUtil; @@ -95,6 +96,11 @@ public static WebArchive createDeployment() { ).addAsLibraries(Maven.resolver().resolve("commons-lang:commons-lang:"+langversion).withTransitivity().asFile()); } + @org.junit.Before + public void init() { + ActivityStoreFactory.initialize(new MemActivityStore()); + } + protected void initActivityStore() { org.overlord.rtgov.activity.server.ActivityStore _activityStore=ActivityStoreFactory.getActivityStore(); diff --git a/release/jbossas/tests/activity-management/activity-server-rest/src/test/java/org/overlord/rtgov/tests/actmgmt/jbossas/actsvrrest/ActivityServerRESTTest.java b/release/jbossas/tests/activity-management/activity-server-rest/src/test/java/org/overlord/rtgov/tests/actmgmt/jbossas/actsvrrest/ActivityServerRESTTest.java index 16efe88d..d1cda57f 100644 --- a/release/jbossas/tests/activity-management/activity-server-rest/src/test/java/org/overlord/rtgov/tests/actmgmt/jbossas/actsvrrest/ActivityServerRESTTest.java +++ b/release/jbossas/tests/activity-management/activity-server-rest/src/test/java/org/overlord/rtgov/tests/actmgmt/jbossas/actsvrrest/ActivityServerRESTTest.java @@ -76,6 +76,11 @@ public static WebArchive createDeployment() { ).addAsLibraries(Maven.resolver().resolve("org.overlord:overlord-commons-config:"+commonsversion).withTransitivity().asFile()); } + @org.junit.Before + public void init() { + ActivityStoreFactory.initialize(new MemActivityStore()); + } + @Test public void queryAll() { diff --git a/release/jbossas/tests/activity-management/bean-service/pom.xml b/release/jbossas/tests/activity-management/bean-service/pom.xml index e87b56b8..19f4958d 100644 --- a/release/jbossas/tests/activity-management/bean-service/pom.xml +++ b/release/jbossas/tests/activity-management/bean-service/pom.xml @@ -170,6 +170,41 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.switchyard + + + switchyard-plugin + + + [2.0.0-SNAPSHOT,) + + + configure + + + + + + + + + + + + diff --git a/release/jbossas/tests/platform/activity_server/pom.xml b/release/jbossas/tests/platform/activity_server/pom.xml index 57138998..6eb891f1 100644 --- a/release/jbossas/tests/platform/activity_server/pom.xml +++ b/release/jbossas/tests/platform/activity_server/pom.xml @@ -123,6 +123,41 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-antrun-plugin + + + [1.7,) + + + run + + + + + + + + + + + + diff --git a/release/jbossas/tests/platform/calltrace/pom.xml b/release/jbossas/tests/platform/calltrace/pom.xml index 3fa53bc1..10d1ab26 100644 --- a/release/jbossas/tests/platform/calltrace/pom.xml +++ b/release/jbossas/tests/platform/calltrace/pom.xml @@ -129,6 +129,41 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-antrun-plugin + + + [1.7,) + + + run + + + + + + + + + + + + diff --git a/release/jbossas/tests/platform/custom_events/custom_events_tester/pom.xml b/release/jbossas/tests/platform/custom_events/custom_events_tester/pom.xml index c900abc2..6edc9375 100644 --- a/release/jbossas/tests/platform/custom_events/custom_events_tester/pom.xml +++ b/release/jbossas/tests/platform/custom_events/custom_events_tester/pom.xml @@ -141,6 +141,41 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-antrun-plugin + + + [1.7,) + + + run + + + + + + + + + + + + diff --git a/release/jbossas/tests/platform/custom_events/custom_events_tester/src/test/java/org/overlord/rtgov/tests/platforms/jbossas/customevents/JBossASCustomEventsResultsTest.java b/release/jbossas/tests/platform/custom_events/custom_events_tester/src/test/java/org/overlord/rtgov/tests/platforms/jbossas/customevents/JBossASCustomEventsResultsTest.java index 7a74c9ad..a9a1dabc 100644 --- a/release/jbossas/tests/platform/custom_events/custom_events_tester/src/test/java/org/overlord/rtgov/tests/platforms/jbossas/customevents/JBossASCustomEventsResultsTest.java +++ b/release/jbossas/tests/platform/custom_events/custom_events_tester/src/test/java/org/overlord/rtgov/tests/platforms/jbossas/customevents/JBossASCustomEventsResultsTest.java @@ -324,7 +324,7 @@ public void testActivityEventsProcessed() { } // Wait for events to propagate - Thread.sleep(3000); + Thread.sleep(4000); java.util.List events=getEvents(); diff --git a/release/jbossas/tests/platform/policy_async/pom.xml b/release/jbossas/tests/platform/policy_async/pom.xml index 0cdf3fee..d53168c1 100644 --- a/release/jbossas/tests/platform/policy_async/pom.xml +++ b/release/jbossas/tests/platform/policy_async/pom.xml @@ -117,6 +117,41 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-antrun-plugin + + + [1.7,) + + + run + + + + + + + + + + + + diff --git a/release/jbossas/tests/platform/policy_sync/pom.xml b/release/jbossas/tests/platform/policy_sync/pom.xml index c40cc173..022be29f 100644 --- a/release/jbossas/tests/platform/policy_sync/pom.xml +++ b/release/jbossas/tests/platform/policy_sync/pom.xml @@ -117,6 +117,41 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-antrun-plugin + + + [1.7,) + + + run + + + + + + + + + + + + diff --git a/release/jbossas/tests/platform/service_dependency/pom.xml b/release/jbossas/tests/platform/service_dependency/pom.xml index 59b9c9b2..8e3ed2ee 100644 --- a/release/jbossas/tests/platform/service_dependency/pom.xml +++ b/release/jbossas/tests/platform/service_dependency/pom.xml @@ -129,6 +129,54 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-antrun-plugin + + + [1.7,) + + + run + + + + + + + + + + + [,) + + + + + + + + + + + + + + diff --git a/release/jbossas/tests/platform/situation_manager/pom.xml b/release/jbossas/tests/platform/situation_manager/pom.xml index bb13a0ba..716c0ff9 100644 --- a/release/jbossas/tests/platform/situation_manager/pom.xml +++ b/release/jbossas/tests/platform/situation_manager/pom.xml @@ -128,6 +128,41 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-antrun-plugin + + + [1.7,) + + + run + + + + + + + + + + + + diff --git a/release/jbossas/tests/platform/sla_monitor/pom.xml b/release/jbossas/tests/platform/sla_monitor/pom.xml index a63c8946..32f176fa 100644 --- a/release/jbossas/tests/platform/sla_monitor/pom.xml +++ b/release/jbossas/tests/platform/sla_monitor/pom.xml @@ -133,6 +133,41 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-antrun-plugin + + + [1.7,) + + + run + + + + + + + + + + + + diff --git a/release/jbossas/tests/platform/sla_monitor/src/test/java/org/overlord/rtgov/tests/platforms/jbossas/slamonitor/JBossASSLAMonitorTest.java b/release/jbossas/tests/platform/sla_monitor/src/test/java/org/overlord/rtgov/tests/platforms/jbossas/slamonitor/JBossASSLAMonitorTest.java index 99864e3d..b87ca917 100644 --- a/release/jbossas/tests/platform/sla_monitor/src/test/java/org/overlord/rtgov/tests/platforms/jbossas/slamonitor/JBossASSLAMonitorTest.java +++ b/release/jbossas/tests/platform/sla_monitor/src/test/java/org/overlord/rtgov/tests/platforms/jbossas/slamonitor/JBossASSLAMonitorTest.java @@ -593,7 +593,7 @@ public void testActivityEventsProcessed() { } // Wait for events to propagate - Thread.sleep(2000); + Thread.sleep(4000); if (tl.getEvents(SITUATIONS_PROCESSED) == null) { fail("Expecting situations processed"); diff --git a/release/jbossas/war-server/pom.xml b/release/jbossas/war-server/pom.xml index 62f017a4..49a1ca63 100644 --- a/release/jbossas/war-server/pom.xml +++ b/release/jbossas/war-server/pom.xml @@ -56,6 +56,10 @@ org.overlord.rtgov.activity-analysis analytics + + org.overlord.rtgov.activity-analysis + situation-store + org.overlord.rtgov.activity-analysis service-dependency @@ -309,7 +313,7 @@ as a runtime dependency for overlord-commons-auth. If this is changed to a module dependency, then the direct dependency on codec can be removed --> - org.picketbox, org.picketlink, org.jboss.as.web, org.switchyard.bus.camel optional, org.switchyard.api optional, org.switchyard.config optional, org.apache.camel.core optional, org.switchyard.api.extensions.java optional, org.switchyard.api.extensions.wsdl optional, org.switchyard.security optional, org.switchyard.runtime optional, org.switchyard.component.bpel optional, org.drools export, org.apache.commons.codec, javaee.api export, org.apache.commons.configuration export, org.apache.commons.lang export, org.codehaus.jackson.jackson-core-asl export, org.codehaus.jackson.jackson-mapper-asl export, org.kie export, org.jbpm export, org.mvel export, org.hibernate export, org.infinispan export, org.jaxen, org.javassist + org.picketbox, org.picketlink, org.jboss.as.web, org.switchyard.bus.camel optional, org.switchyard.api optional, org.switchyard.config optional, org.apache.camel.core optional, org.switchyard.api.extensions.java optional, org.switchyard.api.extensions.wsdl optional, org.switchyard.security optional, org.switchyard.runtime optional, org.switchyard.component.bpel optional, org.drools export, org.apache.commons.codec, javaee.api export, org.apache.commons.configuration export, org.apache.commons.lang export, org.codehaus.jackson.jackson-core-asl export, org.codehaus.jackson.jackson-mapper-asl export, org.kie export, org.jbpm export, org.mvel export, org.hibernate export, org.infinispan export, org.jaxen, org.javassist, org.osgi.core diff --git a/release/karaf/features/pom.xml b/release/karaf/features/pom.xml index 5cea0534..9f55294c 100644 --- a/release/karaf/features/pom.xml +++ b/release/karaf/features/pom.xml @@ -27,6 +27,14 @@ org.overlord.rtgov.activity-management activity + + org.overlord.rtgov.activity-analysis + analytics + + + org.overlord.rtgov.activity-analysis + situation-store + @@ -141,19 +149,23 @@ war - + + + + org.overlord.rtgov.ui + overlord-rtgov-ui-war-fuse6 + war + + + org.overlord.rtgov.activity-management activity-store-mem - - @@ -259,6 +271,26 @@ ant + + + org.jdom jdom @@ -307,10 +339,19 @@ jaxen + + org.overlord + overlord-commons-osgi + + + org.overlord + overlord-commons-services + org.overlord overlord-commons-auth-jetty8 + org.picketlink picketlink-federation @@ -369,6 +410,9 @@ http + + war + org.overlord.rtgov.*:*:* @@ -421,9 +465,15 @@ rtgov-common ${project.version} + + rtgov-event-processor + ${project.version} + org.overlord.rtgov.activity-management:activity:* + org.overlord.rtgov.activity-analysis:analytics:* + org.overlord.rtgov.activity-analysis:situation-store:* @@ -510,7 +560,6 @@ org.overlord.rtgov.activity-management:activity-server-rests:* org.overlord.rtgov.active-queries:active-collection-rests:* - org.overlord.rtgov.activity-analysis:analytics:* org.overlord.rtgov.activity-analysis:call-trace:* org.overlord.rtgov.activity-analysis:reports:* org.overlord.rtgov.activity-analysis:reports-rests:* @@ -524,9 +573,9 @@ - rtgov-activity-store-inmemory + rtgov-store-inmemory ${project.version} - RTGov Activity Store Inmemory + RTGov Store Inmemory rtgov-activity @@ -535,20 +584,7 @@ org.overlord.rtgov.activity-management:activity-store-mem:* - - - - rtgov-activity-store-jpa-h2 - ${project.version} - RTGov Activity Store JPA H2 - - - rtgov-activity - ${project.version} - - - - org.overlord.rtgov.karaf.ds:activity-store-jpa-h2:* + org.overlord.rtgov.activity-analysis:situation-store-mem:* @@ -582,6 +618,20 @@ org.overlord.rtgov.integration:rtgov-osgi:* + + rtgov-ui + ${project.version} + RTGov UI + + + rtgov-services + ${project.version} + + + + org.overlord.rtgov.ui:overlord-rtgov-ui-war-fuse6:* + + rtgov-server-contents ${project.version} diff --git a/samples/karaf/pom.xml b/samples/karaf/pom.xml index 6e597588..634e1b3c 100644 --- a/samples/karaf/pom.xml +++ b/samples/karaf/pom.xml @@ -37,7 +37,7 @@ 1.0.0.Final 7.2.0.Final 2.0.1-SNAPSHOT - 1.1.0.CR1 + 2.0.0-SNAPSHOT diff --git a/ui/.errai/BindableProxyLoaderImpl.java b/ui/.errai/BindableProxyLoaderImpl.java deleted file mode 100644 index 86cd3cd7..00000000 --- a/ui/.errai/BindableProxyLoaderImpl.java +++ /dev/null @@ -1,1614 +0,0 @@ -package org.jboss.errai.databinding.client; - -import java.util.Date; -import java.util.List; -import java.util.Map; -import org.jboss.errai.databinding.client.api.InitialState; -import org.jboss.errai.ui.shared.api.Locale; -import org.overlord.rtgov.ui.client.model.CallTraceBean; -import org.overlord.rtgov.ui.client.model.ComponentServiceBean; -import org.overlord.rtgov.ui.client.model.ComponentServiceSummaryBean; -import org.overlord.rtgov.ui.client.model.MessageBean; -import org.overlord.rtgov.ui.client.model.QName; -import org.overlord.rtgov.ui.client.model.ReferenceBean; -import org.overlord.rtgov.ui.client.model.ReferenceSummaryBean; -import org.overlord.rtgov.ui.client.model.ServiceBean; -import org.overlord.rtgov.ui.client.model.ServiceSummaryBean; -import org.overlord.rtgov.ui.client.model.SituationBean; -import org.overlord.rtgov.ui.client.model.SituationSummaryBean; - -public class BindableProxyLoaderImpl implements BindableProxyLoader { - public void loadBindableProxies() { - class org_overlord_rtgov_ui_client_model_ServiceBeanProxy extends ServiceBean implements BindableProxy { - private BindableProxyAgent agent; - public org_overlord_rtgov_ui_client_model_ServiceBeanProxy(InitialState initialState) { - this(new ServiceBean(), initialState); - } - - public org_overlord_rtgov_ui_client_model_ServiceBeanProxy(ServiceBean target, InitialState initialState) { - agent = new BindableProxyAgent(this, target, initialState); - agent.propertyTypes.put("references", new PropertyType(List.class, false, true)); - agent.propertyTypes.put("application", new PropertyType(QName.class, false, false)); - agent.propertyTypes.put("serviceInterface", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("serviceId", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("name", new PropertyType(QName.class, false, false)); - agent.copyValues(); - } - - public BindableProxyAgent getAgent() { - return agent; - } - - public void updateWidgets() { - agent.updateWidgetsAndFireEvents(); - } - - public ServiceBean unwrap() { - return agent.target; - } - - public ServiceBean deepUnwrap() { - final ServiceBean clone = new ServiceBean(); - clone.setReferences(agent.target.getReferences()); - clone.setApplication(agent.target.getApplication()); - clone.setServiceInterface(agent.target.getServiceInterface()); - clone.setServiceId(agent.target.getServiceId()); - clone.setName(agent.target.getName()); - return clone; - } - - public boolean equals(Object obj) { - if (obj instanceof org_overlord_rtgov_ui_client_model_ServiceBeanProxy) { - obj = ((org_overlord_rtgov_ui_client_model_ServiceBeanProxy) obj).unwrap(); - } - return agent.target.equals(obj); - } - - public int hashCode() { - return agent.target.hashCode(); - } - - public String toString() { - return agent.target.toString(); - } - - public List getReferences() { - return agent.target.getReferences(); - } - - public void setReferences(List references) { - List oldValue = agent.target.getReferences(); - references = agent.ensureBoundListIsProxied("references", references); - agent.target.setReferences(references); - agent.updateWidgetsAndFireEvent("references", oldValue, references); - } - - public QName getApplication() { - return agent.target.getApplication(); - } - - public void setApplication(QName application) { - QName oldValue = agent.target.getApplication(); - agent.target.setApplication(application); - agent.updateWidgetsAndFireEvent("application", oldValue, application); - } - - public String getServiceInterface() { - return agent.target.getServiceInterface(); - } - - public void setServiceInterface(String serviceInterface) { - String oldValue = agent.target.getServiceInterface(); - agent.target.setServiceInterface(serviceInterface); - agent.updateWidgetsAndFireEvent("serviceInterface", oldValue, serviceInterface); - } - - public String getServiceId() { - return agent.target.getServiceId(); - } - - public void setServiceId(String serviceId) { - String oldValue = agent.target.getServiceId(); - agent.target.setServiceId(serviceId); - agent.updateWidgetsAndFireEvent("serviceId", oldValue, serviceId); - } - - public QName getName() { - return agent.target.getName(); - } - - public void setName(QName name) { - QName oldValue = agent.target.getName(); - agent.target.setName(name); - agent.updateWidgetsAndFireEvent("name", oldValue, name); - } - - public Object get(String property) { - if (property.equals("references")) { - return getReferences(); - } - if (property.equals("application")) { - return getApplication(); - } - if (property.equals("serviceInterface")) { - return getServiceInterface(); - } - if (property.equals("serviceId")) { - return getServiceId(); - } - if (property.equals("name")) { - return getName(); - } - throw new NonExistingPropertyException(property); - } - - public void set(String property, Object value) { - if (property.equals("references")) { - agent.target.setReferences((List) value); - return; - } - if (property.equals("application")) { - agent.target.setApplication((QName) value); - return; - } - if (property.equals("serviceInterface")) { - agent.target.setServiceInterface((String) value); - return; - } - if (property.equals("serviceId")) { - agent.target.setServiceId((String) value); - return; - } - if (property.equals("name")) { - agent.target.setName((QName) value); - return; - } - throw new NonExistingPropertyException(property); - } - } - BindableProxyFactory.addBindableProxy(ServiceBean.class, new BindableProxyProvider() { - public BindableProxy getBindableProxy(Object model, InitialState state) { - return new org_overlord_rtgov_ui_client_model_ServiceBeanProxy((ServiceBean) model, state); - } - public BindableProxy getBindableProxy(InitialState state) { - return new org_overlord_rtgov_ui_client_model_ServiceBeanProxy(state); - } - }); - class org_overlord_rtgov_ui_client_model_ServiceSummaryBeanProxy extends ServiceSummaryBean implements BindableProxy { - private BindableProxyAgent agent; - public org_overlord_rtgov_ui_client_model_ServiceSummaryBeanProxy(InitialState initialState) { - this(new ServiceSummaryBean(), initialState); - } - - public org_overlord_rtgov_ui_client_model_ServiceSummaryBeanProxy(ServiceSummaryBean target, InitialState initialState) { - agent = new BindableProxyAgent(this, target, initialState); - agent.propertyTypes.put("iface", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("application", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("serviceId", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("bindings", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("name", new PropertyType(String.class, false, false)); - agent.copyValues(); - } - - public BindableProxyAgent getAgent() { - return agent; - } - - public void updateWidgets() { - agent.updateWidgetsAndFireEvents(); - } - - public ServiceSummaryBean unwrap() { - return agent.target; - } - - public ServiceSummaryBean deepUnwrap() { - final ServiceSummaryBean clone = new ServiceSummaryBean(); - clone.setIface(agent.target.getIface()); - clone.setApplication(agent.target.getApplication()); - clone.setServiceId(agent.target.getServiceId()); - clone.setBindings(agent.target.getBindings()); - clone.setName(agent.target.getName()); - return clone; - } - - public boolean equals(Object obj) { - if (obj instanceof org_overlord_rtgov_ui_client_model_ServiceSummaryBeanProxy) { - obj = ((org_overlord_rtgov_ui_client_model_ServiceSummaryBeanProxy) obj).unwrap(); - } - return agent.target.equals(obj); - } - - public int hashCode() { - return agent.target.hashCode(); - } - - public String toString() { - return agent.target.toString(); - } - - public String getIface() { - return agent.target.getIface(); - } - - public ServiceSummaryBean setIface(String iface) { - String oldValue = agent.target.getIface(); - final ServiceSummaryBean returnValueOfSetter = agent.target.setIface(iface); - agent.updateWidgetsAndFireEvent("iface", oldValue, iface); - return returnValueOfSetter; - } - - public String getApplication() { - return agent.target.getApplication(); - } - - public ServiceSummaryBean setApplication(String application) { - String oldValue = agent.target.getApplication(); - final ServiceSummaryBean returnValueOfSetter = agent.target.setApplication(application); - agent.updateWidgetsAndFireEvent("application", oldValue, application); - return returnValueOfSetter; - } - - public String getServiceId() { - return agent.target.getServiceId(); - } - - public void setServiceId(String serviceId) { - String oldValue = agent.target.getServiceId(); - agent.target.setServiceId(serviceId); - agent.updateWidgetsAndFireEvent("serviceId", oldValue, serviceId); - } - - public String getBindings() { - return agent.target.getBindings(); - } - - public ServiceSummaryBean setBindings(String bindings) { - String oldValue = agent.target.getBindings(); - final ServiceSummaryBean returnValueOfSetter = agent.target.setBindings(bindings); - agent.updateWidgetsAndFireEvent("bindings", oldValue, bindings); - return returnValueOfSetter; - } - - public String getName() { - return agent.target.getName(); - } - - public ServiceSummaryBean setName(String name) { - String oldValue = agent.target.getName(); - final ServiceSummaryBean returnValueOfSetter = agent.target.setName(name); - agent.updateWidgetsAndFireEvent("name", oldValue, name); - return returnValueOfSetter; - } - - public Object get(String property) { - if (property.equals("iface")) { - return getIface(); - } - if (property.equals("application")) { - return getApplication(); - } - if (property.equals("serviceId")) { - return getServiceId(); - } - if (property.equals("bindings")) { - return getBindings(); - } - if (property.equals("name")) { - return getName(); - } - throw new NonExistingPropertyException(property); - } - - public void set(String property, Object value) { - if (property.equals("iface")) { - agent.target.setIface((String) value); - return; - } - if (property.equals("application")) { - agent.target.setApplication((String) value); - return; - } - if (property.equals("serviceId")) { - agent.target.setServiceId((String) value); - return; - } - if (property.equals("bindings")) { - agent.target.setBindings((String) value); - return; - } - if (property.equals("name")) { - agent.target.setName((String) value); - return; - } - throw new NonExistingPropertyException(property); - } - } - BindableProxyFactory.addBindableProxy(ServiceSummaryBean.class, new BindableProxyProvider() { - public BindableProxy getBindableProxy(Object model, InitialState state) { - return new org_overlord_rtgov_ui_client_model_ServiceSummaryBeanProxy((ServiceSummaryBean) model, state); - } - public BindableProxy getBindableProxy(InitialState state) { - return new org_overlord_rtgov_ui_client_model_ServiceSummaryBeanProxy(state); - } - }); - class org_overlord_rtgov_ui_client_model_SituationSummaryBeanProxy extends SituationSummaryBean implements BindableProxy { - private BindableProxyAgent agent; - public org_overlord_rtgov_ui_client_model_SituationSummaryBeanProxy(InitialState initialState) { - this(new SituationSummaryBean(), initialState); - } - - public org_overlord_rtgov_ui_client_model_SituationSummaryBeanProxy(SituationSummaryBean target, InitialState initialState) { - agent = new BindableProxyAgent(this, target, initialState); - agent.propertyTypes.put("timestamp", new PropertyType(Date.class, false, false)); - agent.propertyTypes.put("description", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("subject", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("assignedTo", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("severity", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("properties", new PropertyType(Map.class, false, false)); - agent.propertyTypes.put("type", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("resolutionState", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("situationId", new PropertyType(String.class, false, false)); - agent.copyValues(); - } - - public BindableProxyAgent getAgent() { - return agent; - } - - public void updateWidgets() { - agent.updateWidgetsAndFireEvents(); - } - - public SituationSummaryBean unwrap() { - return agent.target; - } - - public SituationSummaryBean deepUnwrap() { - final SituationSummaryBean clone = new SituationSummaryBean(); - clone.setTimestamp(agent.target.getTimestamp()); - clone.setDescription(agent.target.getDescription()); - clone.setSubject(agent.target.getSubject()); - clone.setSeverity(agent.target.getSeverity()); - clone.setProperties(agent.target.getProperties()); - clone.setType(agent.target.getType()); - clone.setSituationId(agent.target.getSituationId()); - return clone; - } - - public boolean equals(Object obj) { - if (obj instanceof org_overlord_rtgov_ui_client_model_SituationSummaryBeanProxy) { - obj = ((org_overlord_rtgov_ui_client_model_SituationSummaryBeanProxy) obj).unwrap(); - } - return agent.target.equals(obj); - } - - public int hashCode() { - return agent.target.hashCode(); - } - - public String toString() { - return agent.target.toString(); - } - - public Date getTimestamp() { - return agent.target.getTimestamp(); - } - - public void setTimestamp(Date timestamp) { - Date oldValue = agent.target.getTimestamp(); - agent.target.setTimestamp(timestamp); - agent.updateWidgetsAndFireEvent("timestamp", oldValue, timestamp); - } - - public String getDescription() { - return agent.target.getDescription(); - } - - public void setDescription(String description) { - String oldValue = agent.target.getDescription(); - agent.target.setDescription(description); - agent.updateWidgetsAndFireEvent("description", oldValue, description); - } - - public String getSubject() { - return agent.target.getSubject(); - } - - public void setSubject(String subject) { - String oldValue = agent.target.getSubject(); - agent.target.setSubject(subject); - agent.updateWidgetsAndFireEvent("subject", oldValue, subject); - } - - public String getAssignedTo() { - return agent.target.getAssignedTo(); - } - - public String getSeverity() { - return agent.target.getSeverity(); - } - - public void setSeverity(String severity) { - String oldValue = agent.target.getSeverity(); - agent.target.setSeverity(severity); - agent.updateWidgetsAndFireEvent("severity", oldValue, severity); - } - - public Map getProperties() { - return agent.target.getProperties(); - } - - public void setProperties(Map properties) { - Map oldValue = agent.target.getProperties(); - agent.target.setProperties(properties); - agent.updateWidgetsAndFireEvent("properties", oldValue, properties); - } - - public String getType() { - return agent.target.getType(); - } - - public void setType(String type) { - String oldValue = agent.target.getType(); - agent.target.setType(type); - agent.updateWidgetsAndFireEvent("type", oldValue, type); - } - - public String getResolutionState() { - return agent.target.getResolutionState(); - } - - public String getSituationId() { - return agent.target.getSituationId(); - } - - public void setSituationId(String situationId) { - String oldValue = agent.target.getSituationId(); - agent.target.setSituationId(situationId); - agent.updateWidgetsAndFireEvent("situationId", oldValue, situationId); - } - - public Object get(String property) { - if (property.equals("timestamp")) { - return getTimestamp(); - } - if (property.equals("description")) { - return getDescription(); - } - if (property.equals("subject")) { - return getSubject(); - } - if (property.equals("assignedTo")) { - return getAssignedTo(); - } - if (property.equals("severity")) { - return getSeverity(); - } - if (property.equals("properties")) { - return getProperties(); - } - if (property.equals("type")) { - return getType(); - } - if (property.equals("resolutionState")) { - return getResolutionState(); - } - if (property.equals("situationId")) { - return getSituationId(); - } - throw new NonExistingPropertyException(property); - } - - public void set(String property, Object value) { - if (property.equals("timestamp")) { - agent.target.setTimestamp((Date) value); - return; - } - if (property.equals("description")) { - agent.target.setDescription((String) value); - return; - } - if (property.equals("subject")) { - agent.target.setSubject((String) value); - return; - } - if (property.equals("severity")) { - agent.target.setSeverity((String) value); - return; - } - if (property.equals("properties")) { - agent.target.setProperties((Map) value); - return; - } - if (property.equals("type")) { - agent.target.setType((String) value); - return; - } - if (property.equals("situationId")) { - agent.target.setSituationId((String) value); - return; - } - throw new NonExistingPropertyException(property); - } - } - BindableProxyFactory.addBindableProxy(SituationSummaryBean.class, new BindableProxyProvider() { - public BindableProxy getBindableProxy(Object model, InitialState state) { - return new org_overlord_rtgov_ui_client_model_SituationSummaryBeanProxy((SituationSummaryBean) model, state); - } - public BindableProxy getBindableProxy(InitialState state) { - return new org_overlord_rtgov_ui_client_model_SituationSummaryBeanProxy(state); - } - }); - class org_overlord_rtgov_ui_client_model_ComponentServiceBeanProxy extends ComponentServiceBean implements BindableProxy { - private BindableProxyAgent agent; - public org_overlord_rtgov_ui_client_model_ComponentServiceBeanProxy(InitialState initialState) { - this(new ComponentServiceBean(), initialState); - } - - public org_overlord_rtgov_ui_client_model_ComponentServiceBeanProxy(ComponentServiceBean target, InitialState initialState) { - agent = new BindableProxyAgent(this, target, initialState); - agent.propertyTypes.put("application", new PropertyType(QName.class, false, false)); - agent.propertyTypes.put("serviceInterface", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("serviceId", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("name", new PropertyType(QName.class, false, false)); - agent.propertyTypes.put("serviceImplementation", new PropertyType(String.class, false, false)); - agent.copyValues(); - } - - public BindableProxyAgent getAgent() { - return agent; - } - - public void updateWidgets() { - agent.updateWidgetsAndFireEvents(); - } - - public ComponentServiceBean unwrap() { - return agent.target; - } - - public ComponentServiceBean deepUnwrap() { - final ComponentServiceBean clone = new ComponentServiceBean(); - clone.setApplication(agent.target.getApplication()); - clone.setServiceInterface(agent.target.getServiceInterface()); - clone.setServiceId(agent.target.getServiceId()); - clone.setName(agent.target.getName()); - clone.setServiceImplementation(agent.target.getServiceImplementation()); - return clone; - } - - public boolean equals(Object obj) { - if (obj instanceof org_overlord_rtgov_ui_client_model_ComponentServiceBeanProxy) { - obj = ((org_overlord_rtgov_ui_client_model_ComponentServiceBeanProxy) obj).unwrap(); - } - return agent.target.equals(obj); - } - - public int hashCode() { - return agent.target.hashCode(); - } - - public String toString() { - return agent.target.toString(); - } - - public QName getApplication() { - return agent.target.getApplication(); - } - - public void setApplication(QName application) { - QName oldValue = agent.target.getApplication(); - agent.target.setApplication(application); - agent.updateWidgetsAndFireEvent("application", oldValue, application); - } - - public String getServiceInterface() { - return agent.target.getServiceInterface(); - } - - public void setServiceInterface(String serviceInterface) { - String oldValue = agent.target.getServiceInterface(); - agent.target.setServiceInterface(serviceInterface); - agent.updateWidgetsAndFireEvent("serviceInterface", oldValue, serviceInterface); - } - - public String getServiceId() { - return agent.target.getServiceId(); - } - - public void setServiceId(String serviceId) { - String oldValue = agent.target.getServiceId(); - agent.target.setServiceId(serviceId); - agent.updateWidgetsAndFireEvent("serviceId", oldValue, serviceId); - } - - public QName getName() { - return agent.target.getName(); - } - - public void setName(QName name) { - QName oldValue = agent.target.getName(); - agent.target.setName(name); - agent.updateWidgetsAndFireEvent("name", oldValue, name); - } - - public String getServiceImplementation() { - return agent.target.getServiceImplementation(); - } - - public void setServiceImplementation(String serviceImplementation) { - String oldValue = agent.target.getServiceImplementation(); - agent.target.setServiceImplementation(serviceImplementation); - agent.updateWidgetsAndFireEvent("serviceImplementation", oldValue, serviceImplementation); - } - - public Object get(String property) { - if (property.equals("application")) { - return getApplication(); - } - if (property.equals("serviceInterface")) { - return getServiceInterface(); - } - if (property.equals("serviceId")) { - return getServiceId(); - } - if (property.equals("name")) { - return getName(); - } - if (property.equals("serviceImplementation")) { - return getServiceImplementation(); - } - throw new NonExistingPropertyException(property); - } - - public void set(String property, Object value) { - if (property.equals("application")) { - agent.target.setApplication((QName) value); - return; - } - if (property.equals("serviceInterface")) { - agent.target.setServiceInterface((String) value); - return; - } - if (property.equals("serviceId")) { - agent.target.setServiceId((String) value); - return; - } - if (property.equals("name")) { - agent.target.setName((QName) value); - return; - } - if (property.equals("serviceImplementation")) { - agent.target.setServiceImplementation((String) value); - return; - } - throw new NonExistingPropertyException(property); - } - } - BindableProxyFactory.addBindableProxy(ComponentServiceBean.class, new BindableProxyProvider() { - public BindableProxy getBindableProxy(Object model, InitialState state) { - return new org_overlord_rtgov_ui_client_model_ComponentServiceBeanProxy((ComponentServiceBean) model, state); - } - public BindableProxy getBindableProxy(InitialState state) { - return new org_overlord_rtgov_ui_client_model_ComponentServiceBeanProxy(state); - } - }); - class org_overlord_rtgov_ui_client_model_ReferenceBeanProxy extends ReferenceBean implements BindableProxy { - private BindableProxyAgent agent; - public org_overlord_rtgov_ui_client_model_ReferenceBeanProxy(InitialState initialState) { - this(new ReferenceBean(), initialState); - } - - public org_overlord_rtgov_ui_client_model_ReferenceBeanProxy(ReferenceBean target, InitialState initialState) { - agent = new BindableProxyAgent(this, target, initialState); - agent.propertyTypes.put("application", new PropertyType(QName.class, false, false)); - agent.propertyTypes.put("referenceInterface", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("name", new PropertyType(QName.class, false, false)); - agent.propertyTypes.put("referenceId", new PropertyType(String.class, false, false)); - agent.copyValues(); - } - - public BindableProxyAgent getAgent() { - return agent; - } - - public void updateWidgets() { - agent.updateWidgetsAndFireEvents(); - } - - public ReferenceBean unwrap() { - return agent.target; - } - - public ReferenceBean deepUnwrap() { - final ReferenceBean clone = new ReferenceBean(); - clone.setApplication(agent.target.getApplication()); - clone.setReferenceInterface(agent.target.getReferenceInterface()); - clone.setName(agent.target.getName()); - clone.setReferenceId(agent.target.getReferenceId()); - return clone; - } - - public boolean equals(Object obj) { - if (obj instanceof org_overlord_rtgov_ui_client_model_ReferenceBeanProxy) { - obj = ((org_overlord_rtgov_ui_client_model_ReferenceBeanProxy) obj).unwrap(); - } - return agent.target.equals(obj); - } - - public int hashCode() { - return agent.target.hashCode(); - } - - public String toString() { - return agent.target.toString(); - } - - public QName getApplication() { - return agent.target.getApplication(); - } - - public void setApplication(QName application) { - QName oldValue = agent.target.getApplication(); - agent.target.setApplication(application); - agent.updateWidgetsAndFireEvent("application", oldValue, application); - } - - public String getReferenceInterface() { - return agent.target.getReferenceInterface(); - } - - public void setReferenceInterface(String referenceInterface) { - String oldValue = agent.target.getReferenceInterface(); - agent.target.setReferenceInterface(referenceInterface); - agent.updateWidgetsAndFireEvent("referenceInterface", oldValue, referenceInterface); - } - - public QName getName() { - return agent.target.getName(); - } - - public void setName(QName name) { - QName oldValue = agent.target.getName(); - agent.target.setName(name); - agent.updateWidgetsAndFireEvent("name", oldValue, name); - } - - public String getReferenceId() { - return agent.target.getReferenceId(); - } - - public void setReferenceId(String referenceId) { - String oldValue = agent.target.getReferenceId(); - agent.target.setReferenceId(referenceId); - agent.updateWidgetsAndFireEvent("referenceId", oldValue, referenceId); - } - - public Object get(String property) { - if (property.equals("application")) { - return getApplication(); - } - if (property.equals("referenceInterface")) { - return getReferenceInterface(); - } - if (property.equals("name")) { - return getName(); - } - if (property.equals("referenceId")) { - return getReferenceId(); - } - throw new NonExistingPropertyException(property); - } - - public void set(String property, Object value) { - if (property.equals("application")) { - agent.target.setApplication((QName) value); - return; - } - if (property.equals("referenceInterface")) { - agent.target.setReferenceInterface((String) value); - return; - } - if (property.equals("name")) { - agent.target.setName((QName) value); - return; - } - if (property.equals("referenceId")) { - agent.target.setReferenceId((String) value); - return; - } - throw new NonExistingPropertyException(property); - } - } - BindableProxyFactory.addBindableProxy(ReferenceBean.class, new BindableProxyProvider() { - public BindableProxy getBindableProxy(Object model, InitialState state) { - return new org_overlord_rtgov_ui_client_model_ReferenceBeanProxy((ReferenceBean) model, state); - } - public BindableProxy getBindableProxy(InitialState state) { - return new org_overlord_rtgov_ui_client_model_ReferenceBeanProxy(state); - } - }); - class org_overlord_rtgov_ui_client_model_ComponentServiceSummaryBeanProxy extends ComponentServiceSummaryBean implements BindableProxy { - private BindableProxyAgent agent; - public org_overlord_rtgov_ui_client_model_ComponentServiceSummaryBeanProxy(InitialState initialState) { - this(new ComponentServiceSummaryBean(), initialState); - } - - public org_overlord_rtgov_ui_client_model_ComponentServiceSummaryBeanProxy(ComponentServiceSummaryBean target, InitialState initialState) { - agent = new BindableProxyAgent(this, target, initialState); - agent.propertyTypes.put("iface", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("application", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("serviceId", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("implementation", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("name", new PropertyType(String.class, false, false)); - agent.copyValues(); - } - - public BindableProxyAgent getAgent() { - return agent; - } - - public void updateWidgets() { - agent.updateWidgetsAndFireEvents(); - } - - public ComponentServiceSummaryBean unwrap() { - return agent.target; - } - - public ComponentServiceSummaryBean deepUnwrap() { - final ComponentServiceSummaryBean clone = new ComponentServiceSummaryBean(); - clone.setIface(agent.target.getIface()); - clone.setApplication(agent.target.getApplication()); - clone.setServiceId(agent.target.getServiceId()); - clone.setImplementation(agent.target.getImplementation()); - clone.setName(agent.target.getName()); - return clone; - } - - public boolean equals(Object obj) { - if (obj instanceof org_overlord_rtgov_ui_client_model_ComponentServiceSummaryBeanProxy) { - obj = ((org_overlord_rtgov_ui_client_model_ComponentServiceSummaryBeanProxy) obj).unwrap(); - } - return agent.target.equals(obj); - } - - public int hashCode() { - return agent.target.hashCode(); - } - - public String toString() { - return agent.target.toString(); - } - - public String getIface() { - return agent.target.getIface(); - } - - public ComponentServiceSummaryBean setIface(String iface) { - String oldValue = agent.target.getIface(); - final ComponentServiceSummaryBean returnValueOfSetter = agent.target.setIface(iface); - agent.updateWidgetsAndFireEvent("iface", oldValue, iface); - return returnValueOfSetter; - } - - public String getApplication() { - return agent.target.getApplication(); - } - - public ComponentServiceSummaryBean setApplication(String application) { - String oldValue = agent.target.getApplication(); - final ComponentServiceSummaryBean returnValueOfSetter = agent.target.setApplication(application); - agent.updateWidgetsAndFireEvent("application", oldValue, application); - return returnValueOfSetter; - } - - public String getServiceId() { - return agent.target.getServiceId(); - } - - public void setServiceId(String serviceId) { - String oldValue = agent.target.getServiceId(); - agent.target.setServiceId(serviceId); - agent.updateWidgetsAndFireEvent("serviceId", oldValue, serviceId); - } - - public String getImplementation() { - return agent.target.getImplementation(); - } - - public ComponentServiceSummaryBean setImplementation(String implementation) { - String oldValue = agent.target.getImplementation(); - final ComponentServiceSummaryBean returnValueOfSetter = agent.target.setImplementation(implementation); - agent.updateWidgetsAndFireEvent("implementation", oldValue, implementation); - return returnValueOfSetter; - } - - public String getName() { - return agent.target.getName(); - } - - public ComponentServiceSummaryBean setName(String name) { - String oldValue = agent.target.getName(); - final ComponentServiceSummaryBean returnValueOfSetter = agent.target.setName(name); - agent.updateWidgetsAndFireEvent("name", oldValue, name); - return returnValueOfSetter; - } - - public Object get(String property) { - if (property.equals("iface")) { - return getIface(); - } - if (property.equals("application")) { - return getApplication(); - } - if (property.equals("serviceId")) { - return getServiceId(); - } - if (property.equals("implementation")) { - return getImplementation(); - } - if (property.equals("name")) { - return getName(); - } - throw new NonExistingPropertyException(property); - } - - public void set(String property, Object value) { - if (property.equals("iface")) { - agent.target.setIface((String) value); - return; - } - if (property.equals("application")) { - agent.target.setApplication((String) value); - return; - } - if (property.equals("serviceId")) { - agent.target.setServiceId((String) value); - return; - } - if (property.equals("implementation")) { - agent.target.setImplementation((String) value); - return; - } - if (property.equals("name")) { - agent.target.setName((String) value); - return; - } - throw new NonExistingPropertyException(property); - } - } - BindableProxyFactory.addBindableProxy(ComponentServiceSummaryBean.class, new BindableProxyProvider() { - public BindableProxy getBindableProxy(Object model, InitialState state) { - return new org_overlord_rtgov_ui_client_model_ComponentServiceSummaryBeanProxy((ComponentServiceSummaryBean) model, state); - } - public BindableProxy getBindableProxy(InitialState state) { - return new org_overlord_rtgov_ui_client_model_ComponentServiceSummaryBeanProxy(state); - } - }); - class org_jboss_errai_ui_shared_api_LocaleProxy extends Locale implements BindableProxy { - private BindableProxyAgent agent; - public org_jboss_errai_ui_shared_api_LocaleProxy(InitialState initialState) { - this(new Locale(), initialState); - } - - public org_jboss_errai_ui_shared_api_LocaleProxy(Locale target, InitialState initialState) { - agent = new BindableProxyAgent(this, target, initialState); - agent.propertyTypes.put("locale", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("label", new PropertyType(String.class, false, false)); - agent.copyValues(); - } - - public BindableProxyAgent getAgent() { - return agent; - } - - public void updateWidgets() { - agent.updateWidgetsAndFireEvents(); - } - - public Locale unwrap() { - return agent.target; - } - - public Locale deepUnwrap() { - final Locale clone = new Locale(); - clone.setLocale(agent.target.getLocale()); - clone.setLabel(agent.target.getLabel()); - return clone; - } - - public boolean equals(Object obj) { - if (obj instanceof org_jboss_errai_ui_shared_api_LocaleProxy) { - obj = ((org_jboss_errai_ui_shared_api_LocaleProxy) obj).unwrap(); - } - return agent.target.equals(obj); - } - - public int hashCode() { - return agent.target.hashCode(); - } - - public String toString() { - return agent.target.toString(); - } - - public String getLocale() { - return agent.target.getLocale(); - } - - public void setLocale(String locale) { - String oldValue = agent.target.getLocale(); - agent.target.setLocale(locale); - agent.updateWidgetsAndFireEvent("locale", oldValue, locale); - } - - public String getLabel() { - return agent.target.getLabel(); - } - - public void setLabel(String label) { - String oldValue = agent.target.getLabel(); - agent.target.setLabel(label); - agent.updateWidgetsAndFireEvent("label", oldValue, label); - } - - public Object get(String property) { - if (property.equals("locale")) { - return getLocale(); - } - if (property.equals("label")) { - return getLabel(); - } - throw new NonExistingPropertyException(property); - } - - public void set(String property, Object value) { - if (property.equals("locale")) { - agent.target.setLocale((String) value); - return; - } - if (property.equals("label")) { - agent.target.setLabel((String) value); - return; - } - throw new NonExistingPropertyException(property); - } - } - BindableProxyFactory.addBindableProxy(Locale.class, new BindableProxyProvider() { - public BindableProxy getBindableProxy(Object model, InitialState state) { - return new org_jboss_errai_ui_shared_api_LocaleProxy((Locale) model, state); - } - public BindableProxy getBindableProxy(InitialState state) { - return new org_jboss_errai_ui_shared_api_LocaleProxy(state); - } - }); - class org_overlord_rtgov_ui_client_model_ReferenceSummaryBeanProxy extends ReferenceSummaryBean implements BindableProxy { - private BindableProxyAgent agent; - public org_overlord_rtgov_ui_client_model_ReferenceSummaryBeanProxy(InitialState initialState) { - this(new ReferenceSummaryBean(), initialState); - } - - public org_overlord_rtgov_ui_client_model_ReferenceSummaryBeanProxy(ReferenceSummaryBean target, InitialState initialState) { - agent = new BindableProxyAgent(this, target, initialState); - agent.propertyTypes.put("iface", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("application", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("bindings", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("name", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("referenceId", new PropertyType(String.class, false, false)); - agent.copyValues(); - } - - public BindableProxyAgent getAgent() { - return agent; - } - - public void updateWidgets() { - agent.updateWidgetsAndFireEvents(); - } - - public ReferenceSummaryBean unwrap() { - return agent.target; - } - - public ReferenceSummaryBean deepUnwrap() { - final ReferenceSummaryBean clone = new ReferenceSummaryBean(); - clone.setIface(agent.target.getIface()); - clone.setApplication(agent.target.getApplication()); - clone.setBindings(agent.target.getBindings()); - clone.setName(agent.target.getName()); - clone.setReferenceId(agent.target.getReferenceId()); - return clone; - } - - public boolean equals(Object obj) { - if (obj instanceof org_overlord_rtgov_ui_client_model_ReferenceSummaryBeanProxy) { - obj = ((org_overlord_rtgov_ui_client_model_ReferenceSummaryBeanProxy) obj).unwrap(); - } - return agent.target.equals(obj); - } - - public int hashCode() { - return agent.target.hashCode(); - } - - public String toString() { - return agent.target.toString(); - } - - public String getIface() { - return agent.target.getIface(); - } - - public ReferenceSummaryBean setIface(String iface) { - String oldValue = agent.target.getIface(); - final ReferenceSummaryBean returnValueOfSetter = agent.target.setIface(iface); - agent.updateWidgetsAndFireEvent("iface", oldValue, iface); - return returnValueOfSetter; - } - - public String getApplication() { - return agent.target.getApplication(); - } - - public ReferenceSummaryBean setApplication(String application) { - String oldValue = agent.target.getApplication(); - final ReferenceSummaryBean returnValueOfSetter = agent.target.setApplication(application); - agent.updateWidgetsAndFireEvent("application", oldValue, application); - return returnValueOfSetter; - } - - public String getBindings() { - return agent.target.getBindings(); - } - - public ReferenceSummaryBean setBindings(String bindings) { - String oldValue = agent.target.getBindings(); - final ReferenceSummaryBean returnValueOfSetter = agent.target.setBindings(bindings); - agent.updateWidgetsAndFireEvent("bindings", oldValue, bindings); - return returnValueOfSetter; - } - - public String getName() { - return agent.target.getName(); - } - - public ReferenceSummaryBean setName(String name) { - String oldValue = agent.target.getName(); - final ReferenceSummaryBean returnValueOfSetter = agent.target.setName(name); - agent.updateWidgetsAndFireEvent("name", oldValue, name); - return returnValueOfSetter; - } - - public String getReferenceId() { - return agent.target.getReferenceId(); - } - - public void setReferenceId(String referenceId) { - String oldValue = agent.target.getReferenceId(); - agent.target.setReferenceId(referenceId); - agent.updateWidgetsAndFireEvent("referenceId", oldValue, referenceId); - } - - public Object get(String property) { - if (property.equals("iface")) { - return getIface(); - } - if (property.equals("application")) { - return getApplication(); - } - if (property.equals("bindings")) { - return getBindings(); - } - if (property.equals("name")) { - return getName(); - } - if (property.equals("referenceId")) { - return getReferenceId(); - } - throw new NonExistingPropertyException(property); - } - - public void set(String property, Object value) { - if (property.equals("iface")) { - agent.target.setIface((String) value); - return; - } - if (property.equals("application")) { - agent.target.setApplication((String) value); - return; - } - if (property.equals("bindings")) { - agent.target.setBindings((String) value); - return; - } - if (property.equals("name")) { - agent.target.setName((String) value); - return; - } - if (property.equals("referenceId")) { - agent.target.setReferenceId((String) value); - return; - } - throw new NonExistingPropertyException(property); - } - } - BindableProxyFactory.addBindableProxy(ReferenceSummaryBean.class, new BindableProxyProvider() { - public BindableProxy getBindableProxy(Object model, InitialState state) { - return new org_overlord_rtgov_ui_client_model_ReferenceSummaryBeanProxy((ReferenceSummaryBean) model, state); - } - public BindableProxy getBindableProxy(InitialState state) { - return new org_overlord_rtgov_ui_client_model_ReferenceSummaryBeanProxy(state); - } - }); - class org_overlord_rtgov_ui_client_model_SituationBeanProxy extends SituationBean implements BindableProxy { - private BindableProxyAgent agent; - public org_overlord_rtgov_ui_client_model_SituationBeanProxy(InitialState initialState) { - this(new SituationBean(), initialState); - } - - public org_overlord_rtgov_ui_client_model_SituationBeanProxy(SituationBean target, InitialState initialState) { - agent = new BindableProxyAgent(this, target, initialState); - agent.propertyTypes.put("resubmitPossible", new PropertyType(Boolean.class, false, false)); - agent.propertyTypes.put("resubmitError", new PropertyType(Boolean.class, false, false)); - agent.propertyTypes.put("resubmitBy", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("subject", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("assignedTo", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("severity", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("resubmitResult", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("properties", new PropertyType(Map.class, false, false)); - agent.propertyTypes.put("type", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("situationId", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("timestamp", new PropertyType(Date.class, false, false)); - agent.propertyTypes.put("message", new PropertyType(MessageBean.class, false, false)); - agent.propertyTypes.put("description", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("context", new PropertyType(Map.class, false, false)); - agent.propertyTypes.put("assignedToCurrentUser", new PropertyType(Boolean.class, false, false)); - agent.propertyTypes.put("resubmitErrorMessage", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("callTrace", new PropertyType(CallTraceBean.class, false, false)); - agent.propertyTypes.put("takeoverPossible", new PropertyType(Boolean.class, false, false)); - agent.propertyTypes.put("resubmitAt", new PropertyType(String.class, false, false)); - agent.propertyTypes.put("resolutionState", new PropertyType(String.class, false, false)); - agent.copyValues(); - } - - public BindableProxyAgent getAgent() { - return agent; - } - - public void updateWidgets() { - agent.updateWidgetsAndFireEvents(); - } - - public SituationBean unwrap() { - return agent.target; - } - - public SituationBean deepUnwrap() { - final SituationBean clone = new SituationBean(); - clone.setResubmitPossible(agent.target.isResubmitPossible()); - clone.setSubject(agent.target.getSubject()); - clone.setSeverity(agent.target.getSeverity()); - clone.setProperties(agent.target.getProperties()); - clone.setType(agent.target.getType()); - clone.setSituationId(agent.target.getSituationId()); - clone.setTimestamp(agent.target.getTimestamp()); - clone.setMessage(agent.target.getMessage()); - clone.setDescription(agent.target.getDescription()); - clone.setContext(agent.target.getContext()); - clone.setAssignedToCurrentUser(agent.target.isAssignedToCurrentUser()); - clone.setCallTrace(agent.target.getCallTrace()); - clone.setTakeoverPossible(agent.target.isTakeoverPossible()); - return clone; - } - - public boolean equals(Object obj) { - if (obj instanceof org_overlord_rtgov_ui_client_model_SituationBeanProxy) { - obj = ((org_overlord_rtgov_ui_client_model_SituationBeanProxy) obj).unwrap(); - } - return agent.target.equals(obj); - } - - public int hashCode() { - return agent.target.hashCode(); - } - - public String toString() { - return agent.target.toString(); - } - - public boolean isResubmitPossible() { - return agent.target.isResubmitPossible(); - } - - public void setResubmitPossible(boolean resubmitPossible) { - boolean oldValue = agent.target.isResubmitPossible(); - agent.target.setResubmitPossible(resubmitPossible); - agent.updateWidgetsAndFireEvent("resubmitPossible", oldValue, resubmitPossible); - } - - public boolean isResubmitError() { - return agent.target.isResubmitError(); - } - - public String getResubmitBy() { - return agent.target.getResubmitBy(); - } - - public String getSubject() { - return agent.target.getSubject(); - } - - public void setSubject(String subject) { - String oldValue = agent.target.getSubject(); - agent.target.setSubject(subject); - agent.updateWidgetsAndFireEvent("subject", oldValue, subject); - } - - public String getAssignedTo() { - return agent.target.getAssignedTo(); - } - - public String getSeverity() { - return agent.target.getSeverity(); - } - - public void setSeverity(String severity) { - String oldValue = agent.target.getSeverity(); - agent.target.setSeverity(severity); - agent.updateWidgetsAndFireEvent("severity", oldValue, severity); - } - - public String getResubmitResult() { - return agent.target.getResubmitResult(); - } - - public Map getProperties() { - return agent.target.getProperties(); - } - - public void setProperties(Map properties) { - Map oldValue = agent.target.getProperties(); - agent.target.setProperties(properties); - agent.updateWidgetsAndFireEvent("properties", oldValue, properties); - } - - public String getType() { - return agent.target.getType(); - } - - public void setType(String type) { - String oldValue = agent.target.getType(); - agent.target.setType(type); - agent.updateWidgetsAndFireEvent("type", oldValue, type); - } - - public String getSituationId() { - return agent.target.getSituationId(); - } - - public void setSituationId(String situationId) { - String oldValue = agent.target.getSituationId(); - agent.target.setSituationId(situationId); - agent.updateWidgetsAndFireEvent("situationId", oldValue, situationId); - } - - public Date getTimestamp() { - return agent.target.getTimestamp(); - } - - public void setTimestamp(Date timestamp) { - Date oldValue = agent.target.getTimestamp(); - agent.target.setTimestamp(timestamp); - agent.updateWidgetsAndFireEvent("timestamp", oldValue, timestamp); - } - - public MessageBean getMessage() { - return agent.target.getMessage(); - } - - public void setMessage(MessageBean message) { - MessageBean oldValue = agent.target.getMessage(); - agent.target.setMessage(message); - agent.updateWidgetsAndFireEvent("message", oldValue, message); - } - - public String getDescription() { - return agent.target.getDescription(); - } - - public void setDescription(String description) { - String oldValue = agent.target.getDescription(); - agent.target.setDescription(description); - agent.updateWidgetsAndFireEvent("description", oldValue, description); - } - - public Map getContext() { - return agent.target.getContext(); - } - - public void setContext(Map context) { - Map oldValue = agent.target.getContext(); - agent.target.setContext(context); - agent.updateWidgetsAndFireEvent("context", oldValue, context); - } - - public boolean isAssignedToCurrentUser() { - return agent.target.isAssignedToCurrentUser(); - } - - public void setAssignedToCurrentUser(boolean assignedToCurrentUser) { - boolean oldValue = agent.target.isAssignedToCurrentUser(); - agent.target.setAssignedToCurrentUser(assignedToCurrentUser); - agent.updateWidgetsAndFireEvent("assignedToCurrentUser", oldValue, assignedToCurrentUser); - } - - public String getResubmitErrorMessage() { - return agent.target.getResubmitErrorMessage(); - } - - public CallTraceBean getCallTrace() { - return agent.target.getCallTrace(); - } - - public void setCallTrace(CallTraceBean callTrace) { - CallTraceBean oldValue = agent.target.getCallTrace(); - agent.target.setCallTrace(callTrace); - agent.updateWidgetsAndFireEvent("callTrace", oldValue, callTrace); - } - - public boolean isTakeoverPossible() { - return agent.target.isTakeoverPossible(); - } - - public void setTakeoverPossible(boolean takeoverPossible) { - boolean oldValue = agent.target.isTakeoverPossible(); - agent.target.setTakeoverPossible(takeoverPossible); - agent.updateWidgetsAndFireEvent("takeoverPossible", oldValue, takeoverPossible); - } - - public String getResubmitAt() { - return agent.target.getResubmitAt(); - } - - public String getResolutionState() { - return agent.target.getResolutionState(); - } - - public Object get(String property) { - if (property.equals("resubmitPossible")) { - return isResubmitPossible(); - } - if (property.equals("resubmitError")) { - return isResubmitError(); - } - if (property.equals("resubmitBy")) { - return getResubmitBy(); - } - if (property.equals("subject")) { - return getSubject(); - } - if (property.equals("assignedTo")) { - return getAssignedTo(); - } - if (property.equals("severity")) { - return getSeverity(); - } - if (property.equals("resubmitResult")) { - return getResubmitResult(); - } - if (property.equals("properties")) { - return getProperties(); - } - if (property.equals("type")) { - return getType(); - } - if (property.equals("situationId")) { - return getSituationId(); - } - if (property.equals("timestamp")) { - return getTimestamp(); - } - if (property.equals("message")) { - return getMessage(); - } - if (property.equals("description")) { - return getDescription(); - } - if (property.equals("context")) { - return getContext(); - } - if (property.equals("assignedToCurrentUser")) { - return isAssignedToCurrentUser(); - } - if (property.equals("resubmitErrorMessage")) { - return getResubmitErrorMessage(); - } - if (property.equals("callTrace")) { - return getCallTrace(); - } - if (property.equals("takeoverPossible")) { - return isTakeoverPossible(); - } - if (property.equals("resubmitAt")) { - return getResubmitAt(); - } - if (property.equals("resolutionState")) { - return getResolutionState(); - } - throw new NonExistingPropertyException(property); - } - - public void set(String property, Object value) { - if (property.equals("resubmitPossible")) { - agent.target.setResubmitPossible((Boolean) value); - return; - } - if (property.equals("subject")) { - agent.target.setSubject((String) value); - return; - } - if (property.equals("severity")) { - agent.target.setSeverity((String) value); - return; - } - if (property.equals("properties")) { - agent.target.setProperties((Map) value); - return; - } - if (property.equals("type")) { - agent.target.setType((String) value); - return; - } - if (property.equals("situationId")) { - agent.target.setSituationId((String) value); - return; - } - if (property.equals("timestamp")) { - agent.target.setTimestamp((Date) value); - return; - } - if (property.equals("message")) { - agent.target.setMessage((MessageBean) value); - return; - } - if (property.equals("description")) { - agent.target.setDescription((String) value); - return; - } - if (property.equals("context")) { - agent.target.setContext((Map) value); - return; - } - if (property.equals("assignedToCurrentUser")) { - agent.target.setAssignedToCurrentUser((Boolean) value); - return; - } - if (property.equals("callTrace")) { - agent.target.setCallTrace((CallTraceBean) value); - return; - } - if (property.equals("takeoverPossible")) { - agent.target.setTakeoverPossible((Boolean) value); - return; - } - throw new NonExistingPropertyException(property); - } - - public boolean hasMessage() { - final boolean returnValue = agent.target.hasMessage(); - agent.updateWidgetsAndFireEvents(); - return returnValue; - } - } - BindableProxyFactory.addBindableProxy(SituationBean.class, new BindableProxyProvider() { - public BindableProxy getBindableProxy(Object model, InitialState state) { - return new org_overlord_rtgov_ui_client_model_SituationBeanProxy((SituationBean) model, state); - } - public BindableProxy getBindableProxy(InitialState state) { - return new org_overlord_rtgov_ui_client_model_SituationBeanProxy(state); - } - }); - } -} \ No newline at end of file diff --git a/ui/.errai/BootstrapperImpl.java b/ui/.errai/BootstrapperImpl.java deleted file mode 100644 index 7de2d525..00000000 --- a/ui/.errai/BootstrapperImpl.java +++ /dev/null @@ -1,3332 +0,0 @@ -package org.jboss.errai.ioc.client; - -import com.google.gwt.core.client.GWT; -import com.google.gwt.dom.client.Element; -import com.google.gwt.dom.client.SpanElement; -import com.google.gwt.editor.client.IsEditor; -import com.google.gwt.event.dom.client.ClickEvent; -import com.google.gwt.event.dom.client.ClickHandler; -import com.google.gwt.event.dom.client.HasAllDragAndDropHandlers; -import com.google.gwt.event.dom.client.HasAllFocusHandlers; -import com.google.gwt.event.dom.client.HasAllGestureHandlers; -import com.google.gwt.event.dom.client.HasAllKeyHandlers; -import com.google.gwt.event.dom.client.HasAllMouseHandlers; -import com.google.gwt.event.dom.client.HasAllTouchHandlers; -import com.google.gwt.event.dom.client.HasBlurHandlers; -import com.google.gwt.event.dom.client.HasChangeHandlers; -import com.google.gwt.event.dom.client.HasClickHandlers; -import com.google.gwt.event.dom.client.HasDoubleClickHandlers; -import com.google.gwt.event.dom.client.HasDragEndHandlers; -import com.google.gwt.event.dom.client.HasDragEnterHandlers; -import com.google.gwt.event.dom.client.HasDragHandlers; -import com.google.gwt.event.dom.client.HasDragLeaveHandlers; -import com.google.gwt.event.dom.client.HasDragOverHandlers; -import com.google.gwt.event.dom.client.HasDragStartHandlers; -import com.google.gwt.event.dom.client.HasDropHandlers; -import com.google.gwt.event.dom.client.HasFocusHandlers; -import com.google.gwt.event.dom.client.HasGestureChangeHandlers; -import com.google.gwt.event.dom.client.HasGestureEndHandlers; -import com.google.gwt.event.dom.client.HasGestureStartHandlers; -import com.google.gwt.event.dom.client.HasKeyDownHandlers; -import com.google.gwt.event.dom.client.HasKeyPressHandlers; -import com.google.gwt.event.dom.client.HasKeyUpHandlers; -import com.google.gwt.event.dom.client.HasMouseDownHandlers; -import com.google.gwt.event.dom.client.HasMouseMoveHandlers; -import com.google.gwt.event.dom.client.HasMouseOutHandlers; -import com.google.gwt.event.dom.client.HasMouseOverHandlers; -import com.google.gwt.event.dom.client.HasMouseUpHandlers; -import com.google.gwt.event.dom.client.HasMouseWheelHandlers; -import com.google.gwt.event.dom.client.HasTouchCancelHandlers; -import com.google.gwt.event.dom.client.HasTouchEndHandlers; -import com.google.gwt.event.dom.client.HasTouchMoveHandlers; -import com.google.gwt.event.dom.client.HasTouchStartHandlers; -import com.google.gwt.event.logical.shared.HasAttachHandlers; -import com.google.gwt.event.logical.shared.HasSelectionHandlers; -import com.google.gwt.event.logical.shared.HasValueChangeHandlers; -import com.google.gwt.event.shared.HasHandlers; -import com.google.gwt.i18n.client.AutoDirectionHandler.Target; -import com.google.gwt.i18n.client.HasDirection; -import com.google.gwt.i18n.shared.HasDirectionEstimator; -import com.google.gwt.resources.client.ClientBundle; -import com.google.gwt.resources.client.ClientBundle.Source; -import com.google.gwt.resources.client.TextResource; -import com.google.gwt.safehtml.client.HasSafeHtml; -import com.google.gwt.user.client.EventListener; -import com.google.gwt.user.client.TakesValue; -import com.google.gwt.user.client.ui.Anchor; -import com.google.gwt.user.client.ui.Button; -import com.google.gwt.user.client.ui.ButtonBase; -import com.google.gwt.user.client.ui.ComplexPanel; -import com.google.gwt.user.client.ui.Composite; -import com.google.gwt.user.client.ui.FlowPanel; -import com.google.gwt.user.client.ui.FocusWidget; -import com.google.gwt.user.client.ui.Focusable; -import com.google.gwt.user.client.ui.HasAutoHorizontalAlignment; -import com.google.gwt.user.client.ui.HasConstrainedValue; -import com.google.gwt.user.client.ui.HasDirectionalSafeHtml; -import com.google.gwt.user.client.ui.HasDirectionalText; -import com.google.gwt.user.client.ui.HasEnabled; -import com.google.gwt.user.client.ui.HasFocus; -import com.google.gwt.user.client.ui.HasHTML; -import com.google.gwt.user.client.ui.HasHorizontalAlignment; -import com.google.gwt.user.client.ui.HasName; -import com.google.gwt.user.client.ui.HasText; -import com.google.gwt.user.client.ui.HasValue; -import com.google.gwt.user.client.ui.HasVisibility; -import com.google.gwt.user.client.ui.HasWidgets; -import com.google.gwt.user.client.ui.HasWordWrap; -import com.google.gwt.user.client.ui.IndexedPanel; -import com.google.gwt.user.client.ui.InlineLabel; -import com.google.gwt.user.client.ui.InsertPanel; -import com.google.gwt.user.client.ui.InsertPanel.ForIsWidget; -import com.google.gwt.user.client.ui.IsRenderable; -import com.google.gwt.user.client.ui.IsWidget; -import com.google.gwt.user.client.ui.Label; -import com.google.gwt.user.client.ui.LabelBase; -import com.google.gwt.user.client.ui.ListBox; -import com.google.gwt.user.client.ui.Panel; -import com.google.gwt.user.client.ui.RootPanel; -import com.google.gwt.user.client.ui.SourcesChangeEvents; -import com.google.gwt.user.client.ui.SourcesClickEvents; -import com.google.gwt.user.client.ui.SourcesFocusEvents; -import com.google.gwt.user.client.ui.SourcesKeyboardEvents; -import com.google.gwt.user.client.ui.SourcesMouseEvents; -import com.google.gwt.user.client.ui.TextBox; -import com.google.gwt.user.client.ui.TextBoxBase; -import com.google.gwt.user.client.ui.UIObject; -import com.google.gwt.user.client.ui.ValueBoxBase; -import com.google.gwt.user.client.ui.ValueListBox; -import com.google.gwt.user.client.ui.Widget; -import java.util.LinkedHashMap; -import java.util.Map; -import javax.enterprise.inject.Instance; -import javax.inject.Provider; -import org.jboss.errai.bus.client.api.ClientMessageBus; -import org.jboss.errai.bus.client.api.messaging.MessageBus; -import org.jboss.errai.bus.client.api.messaging.RequestDispatcher; -import org.jboss.errai.common.client.api.Caller; -import org.jboss.errai.common.client.api.extension.InitVotes; -import org.jboss.errai.common.client.ui.ElementWrapperWidget; -import org.jboss.errai.databinding.client.DataBinderProvider; -import org.jboss.errai.databinding.client.DataBindingModuleBootstrapper; -import org.jboss.errai.databinding.client.api.DataBinder; -import org.jboss.errai.enterprise.client.cdi.CDIEventTypeLookup; -import org.jboss.errai.enterprise.client.cdi.EventProvider; -import org.jboss.errai.enterprise.client.cdi.InstanceProvider; -import org.jboss.errai.enterprise.client.cdi.api.CDI; -import org.jboss.errai.ioc.client.api.ContextualTypeProvider; -import org.jboss.errai.ioc.client.api.builtin.CallerProvider; -import org.jboss.errai.ioc.client.api.builtin.DisposerProvider; -import org.jboss.errai.ioc.client.api.builtin.IOCBeanManagerProvider; -import org.jboss.errai.ioc.client.api.builtin.InitBallotProvider; -import org.jboss.errai.ioc.client.api.builtin.RootPanelProvider; -import org.jboss.errai.ioc.client.container.BeanProvider; -import org.jboss.errai.ioc.client.container.CreationalContext; -import org.jboss.errai.ioc.client.container.DestructionCallback; -import org.jboss.errai.ioc.client.container.InitializationCallback; -import org.jboss.errai.ioc.client.container.ProxyResolver; -import org.jboss.errai.ioc.client.container.SimpleCreationalContext; -import org.jboss.errai.ioc.client.container.SyncBeanManager; -import org.jboss.errai.ioc.support.bus.client.BatchCallerProvider; -import org.jboss.errai.ioc.support.bus.client.MessageBusProvider; -import org.jboss.errai.ioc.support.bus.client.RequestDispatcherProvider; -import org.jboss.errai.ioc.support.bus.client.SenderProvider; -import org.jboss.errai.ui.client.local.spi.LessStyle; -import org.jboss.errai.ui.client.widget.ListWidgetProvider; -import org.jboss.errai.ui.client.widget.LocaleListBox; -import org.jboss.errai.ui.client.widget.LocaleSelector; -import org.jboss.errai.ui.nav.client.local.Navigation; -import org.jboss.errai.ui.nav.client.local.PageTransitionProvider; -import org.jboss.errai.ui.nav.client.local.TransitionAnchor; -import org.jboss.errai.ui.nav.client.local.TransitionAnchorFactory; -import org.jboss.errai.ui.nav.client.local.TransitionAnchorFactoryProvider; -import org.jboss.errai.ui.nav.client.local.TransitionAnchorProvider; -import org.jboss.errai.ui.shared.Template; -import org.jboss.errai.ui.shared.TemplateUtil; -import org.overlord.commons.gwt.client.local.widgets.HtmlSnippet; -import org.overlord.commons.gwt.client.local.widgets.Pager; -import org.overlord.commons.gwt.client.local.widgets.TemplatedWidgetTable; -import org.overlord.commons.gwt.client.local.widgets.WidgetTable; -import org.overlord.rtgov.ui.client.local.App; -import org.overlord.rtgov.ui.client.local.ClientMessages; -import org.overlord.rtgov.ui.client.local.events.MouseInEvent.HasMouseInHandlers; -import org.overlord.rtgov.ui.client.local.events.TableSortEvent.HasTableSortHandlers; -import org.overlord.rtgov.ui.client.local.pages.AbstractPage; -import org.overlord.rtgov.ui.client.local.pages.DashboardPage; -import org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage; -import org.overlord.rtgov.ui.client.local.pages.ServiceDetailsPage; -import org.overlord.rtgov.ui.client.local.pages.ServicesPage; -import org.overlord.rtgov.ui.client.local.pages.SituationDetailsPage; -import org.overlord.rtgov.ui.client.local.pages.SituationsPage; -import org.overlord.rtgov.ui.client.local.pages.services.ApplicationNameListBox; -import org.overlord.rtgov.ui.client.local.pages.services.ProcessingStateListBox; -import org.overlord.rtgov.ui.client.local.pages.services.ReferenceTable; -import org.overlord.rtgov.ui.client.local.pages.services.ServiceFilters; -import org.overlord.rtgov.ui.client.local.pages.services.ServiceTable; -import org.overlord.rtgov.ui.client.local.pages.situations.CallTraceDetails; -import org.overlord.rtgov.ui.client.local.pages.situations.CallTraceWidget; -import org.overlord.rtgov.ui.client.local.pages.situations.ResolutionStateListBox; -import org.overlord.rtgov.ui.client.local.pages.situations.SeverityListBox; -import org.overlord.rtgov.ui.client.local.pages.situations.SituationFilters; -import org.overlord.rtgov.ui.client.local.pages.situations.SituationPropertiesTable; -import org.overlord.rtgov.ui.client.local.pages.situations.SituationTable; -import org.overlord.rtgov.ui.client.local.pages.situations.SituationWatcherEvent; -import org.overlord.rtgov.ui.client.local.pages.situations.SituationWatcherEvents; -import org.overlord.rtgov.ui.client.local.services.NotificationService; -import org.overlord.rtgov.ui.client.local.services.ServicesRpcService; -import org.overlord.rtgov.ui.client.local.services.SituationsRpcService; -import org.overlord.rtgov.ui.client.local.services.notification.NotificationWidget; -import org.overlord.rtgov.ui.client.local.services.rpc.IRpcServiceInvocationHandler; -import org.overlord.rtgov.ui.client.local.services.rpc.IRpcServiceInvocationHandler.VoidInvocationHandler; -import org.overlord.rtgov.ui.client.local.util.DataBindingDateTimeConverter; -import org.overlord.rtgov.ui.client.local.util.DataBindingQNameLocalPartConverter; -import org.overlord.rtgov.ui.client.local.util.DataBindingQNameNamespaceConverter; -import org.overlord.rtgov.ui.client.local.widgets.DateTimePicker; -import org.overlord.rtgov.ui.client.local.widgets.ToggleSwitch; -import org.overlord.rtgov.ui.client.local.widgets.common.AbstractFilterListBox; -import org.overlord.rtgov.ui.client.local.widgets.common.SortableTemplatedWidgetTable; -import org.overlord.rtgov.ui.client.local.widgets.common.SourceEditor; -import org.overlord.rtgov.ui.client.model.ReferenceBean; -import org.overlord.rtgov.ui.client.model.ServiceBean; -import org.overlord.rtgov.ui.client.model.SituationBean; -import org.overlord.rtgov.ui.client.shared.services.IServicesService; -import org.overlord.rtgov.ui.client.shared.services.ISituationsService; - -public class BootstrapperImpl implements Bootstrapper { - { - new CDI().initLookupTable(CDIEventTypeLookup.get()); - new DataBindingModuleBootstrapper().run(); - } - private final SimpleInjectionContext injContext = new SimpleInjectionContext(); - private final SimpleCreationalContext context = injContext.getRootContext(); - private final BeanProvider inj1765_EventProvider_creational = new BeanProvider() { - public EventProvider getInstance(final CreationalContext context) { - final EventProvider inj1756_EventProvider = new EventProvider(); - context.addBean(context.getBeanReference(EventProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1756_EventProvider); - return inj1756_EventProvider; - } - }; - private final EventProvider inj1756_EventProvider = inj1765_EventProvider_creational.getInstance(context); - private final BeanProvider inj1766_SenderProvider_creational = new BeanProvider() { - public SenderProvider getInstance(final CreationalContext context) { - final SenderProvider inj1750_SenderProvider = new SenderProvider(); - context.addBean(context.getBeanReference(SenderProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1750_SenderProvider); - return inj1750_SenderProvider; - } - }; - private final SenderProvider inj1750_SenderProvider = inj1766_SenderProvider_creational.getInstance(context); - private InitializationCallback init_inj1767_Navigation = new InitializationCallback() { - public void init(final Navigation obj) { - _136504311_init(obj); - } - }; - private DestructionCallback destroy_inj1767_Navigation = new DestructionCallback() { - public void destroy(final Navigation obj) { - _136504311_cleanUp(obj); - } - }; - private final BeanProvider inj1768_Navigation_creational = new BeanProvider() { - public Navigation getInstance(final CreationalContext context) { - final Navigation inj1767_Navigation = new Navigation(); - context.addBean(context.getBeanReference(Navigation.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1767_Navigation); - context.addInitializationCallback(inj1767_Navigation, init_inj1767_Navigation); - context.addDestructionCallback(inj1767_Navigation, destroy_inj1767_Navigation); - return inj1767_Navigation; - } - }; - private final Navigation inj1767_Navigation = inj1768_Navigation_creational.getInstance(context); - private final BeanProvider inj1769_IOCBeanManagerProvider_creational = new BeanProvider() { - public IOCBeanManagerProvider getInstance(final CreationalContext context) { - final IOCBeanManagerProvider inj1746_IOCBeanManagerProvider = new IOCBeanManagerProvider(); - context.addBean(context.getBeanReference(IOCBeanManagerProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1746_IOCBeanManagerProvider); - return inj1746_IOCBeanManagerProvider; - } - }; - private final IOCBeanManagerProvider inj1746_IOCBeanManagerProvider = inj1769_IOCBeanManagerProvider_creational.getInstance(context); - private final BeanProvider inj1770_CallerProvider_creational = new BeanProvider() { - public CallerProvider getInstance(final CreationalContext context) { - final CallerProvider inj1760_CallerProvider = new CallerProvider(); - context.addBean(context.getBeanReference(CallerProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1760_CallerProvider); - return inj1760_CallerProvider; - } - }; - private final CallerProvider inj1760_CallerProvider = inj1770_CallerProvider_creational.getInstance(context); - private InitializationCallback init_inj1376_SeverityListBox = new InitializationCallback() { - public void init(final SeverityListBox obj) { - _1183065176_postConstruct(obj); - } - }; - private final BeanProvider inj1772_SeverityListBox_creational = new BeanProvider() { - public SeverityListBox getInstance(final CreationalContext context) { - final SeverityListBox inj1376_SeverityListBox = new SeverityListBox(); - context.addBean(context.getBeanReference(SeverityListBox.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1376_SeverityListBox); - final ClientMessages_inj1773_proxy inj1773_proxy = new ClientMessages_inj1773_proxy(); - context.addUnresolvedProxy(new ProxyResolver() { - public void resolve(ClientMessages obj) { - inj1773_proxy.__$setProxiedInstance$(obj); - context.addProxyReference(inj1773_proxy, obj); - } - }, ClientMessages.class, QualifierUtil.DEFAULT_QUALIFIERS); - _1024371274__$1433900096_i18n(inj1376_SeverityListBox, inj1773_proxy); - context.addInitializationCallback(inj1376_SeverityListBox, init_inj1376_SeverityListBox); - return inj1376_SeverityListBox; - } - }; - private final BeanProvider inj1774_TextBox_creational = new BeanProvider() { - public TextBox getInstance(final CreationalContext context) { - final TextBox inj1531_TextBox = new TextBox(); - context.addBean(context.getBeanReference(TextBox.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1531_TextBox); - return inj1531_TextBox; - } - }; - private InitializationCallback init_inj1652_ResolutionStateListBox = new InitializationCallback() { - public void init(final ResolutionStateListBox obj) { - _1183065176_postConstruct(obj); - } - }; - private final BeanProvider inj1775_ResolutionStateListBox_creational = new BeanProvider() { - public ResolutionStateListBox getInstance(final CreationalContext context) { - final ResolutionStateListBox inj1652_ResolutionStateListBox = new ResolutionStateListBox(); - context.addBean(context.getBeanReference(ResolutionStateListBox.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1652_ResolutionStateListBox); - final ClientMessages_inj1773_proxy inj1773_proxy = new ClientMessages_inj1773_proxy(); - context.addUnresolvedProxy(new ProxyResolver() { - public void resolve(ClientMessages obj) { - inj1773_proxy.__$setProxiedInstance$(obj); - context.addProxyReference(inj1773_proxy, obj); - } - }, ClientMessages.class, QualifierUtil.DEFAULT_QUALIFIERS); - _1181247566__$1433900096_i18n(inj1652_ResolutionStateListBox, inj1773_proxy); - context.addInitializationCallback(inj1652_ResolutionStateListBox, init_inj1652_ResolutionStateListBox); - return inj1652_ResolutionStateListBox; - } - }; - private InitializationCallback init_inj1348_DateTimePicker = new InitializationCallback() { - public void init(final DateTimePicker obj) { - _$951620175_postConstruct(obj); - } - }; - private final BeanProvider inj1776_DateTimePicker_creational = new BeanProvider() { - public DateTimePicker getInstance(final CreationalContext context) { - final DateTimePicker inj1348_DateTimePicker = new DateTimePicker(); - context.addBean(context.getBeanReference(DateTimePicker.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1348_DateTimePicker); - context.addInitializationCallback(inj1348_DateTimePicker, init_inj1348_DateTimePicker); - return inj1348_DateTimePicker; - } - }; - private final BeanProvider inj1777_Anchor_creational = new BeanProvider() { - public Anchor getInstance(final CreationalContext context) { - final Anchor inj84_Anchor = new Anchor(); - context.addBean(context.getBeanReference(Anchor.class, QualifierUtil.DEFAULT_QUALIFIERS), inj84_Anchor); - return inj84_Anchor; - } - }; - private InitializationCallback init_inj1513_SituationFilters = new InitializationCallback() { - public void init(final SituationFilters obj) { - _148888483_postConstruct(obj); - } - }; - private final BeanProvider inj1771_SituationFilters_creational = new BeanProvider() { - public SituationFilters getInstance(final CreationalContext context) { - final SituationFilters inj1513_SituationFilters = new SituationFilters(); - context.addBean(context.getBeanReference(SituationFilters.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1513_SituationFilters); - _148888483__1024371274_severity(inj1513_SituationFilters, inj1772_SeverityListBox_creational.getInstance(context)); - _148888483__$371269162_type(inj1513_SituationFilters, inj1774_TextBox_creational.getInstance(context)); - _148888483__1181247566_resolutionState(inj1513_SituationFilters, inj1775_ResolutionStateListBox_creational.getInstance(context)); - _148888483__$951620175_timestampFrom(inj1513_SituationFilters, inj1776_DateTimePicker_creational.getInstance(context)); - _148888483__$951620175_timestampTo(inj1513_SituationFilters, inj1776_DateTimePicker_creational.getInstance(context)); - _148888483__2084144957_clearFilters(inj1513_SituationFilters, inj1777_Anchor_creational.getInstance(context)); - _148888483__$371269162_description(inj1513_SituationFilters, inj1774_TextBox_creational.getInstance(context)); - _148888483__$371269162_subject(inj1513_SituationFilters, inj1774_TextBox_creational.getInstance(context)); - _148888483__$371269162_host(inj1513_SituationFilters, inj1774_TextBox_creational.getInstance(context)); - context.addInitializationCallback(inj1513_SituationFilters, new InitializationCallback() { - public void init(final SituationFilters obj) { - org_overlord_rtgov_ui_client_local_pages_situations_SituationFiltersTemplateResource var2 = GWT.create(org_overlord_rtgov_ui_client_local_pages_situations_SituationFiltersTemplateResource.class); - Element var3 = TemplateUtil.getRootTemplateElement(var2.getContents().getText(), "filter-sidebar"); - TemplateUtil.translateTemplate("org/overlord/rtgov/ui/client/local/site/situations.html", var3); - Map var4 = TemplateUtil.getDataFieldElements(var3); - Map var5 = new LinkedHashMap(); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.situations.SituationFilters", "org/overlord/rtgov/ui/client/local/site/situations.html", _148888483__1024371274_severity(inj1513_SituationFilters), var4, "severity"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.situations.SituationFilters", "org/overlord/rtgov/ui/client/local/site/situations.html", _148888483__$371269162_type(inj1513_SituationFilters), var4, "type"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.situations.SituationFilters", "org/overlord/rtgov/ui/client/local/site/situations.html", _148888483__1181247566_resolutionState(inj1513_SituationFilters), var4, "resolutionState"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.situations.SituationFilters", "org/overlord/rtgov/ui/client/local/site/situations.html", _148888483__$951620175_timestampFrom(inj1513_SituationFilters), var4, "timestampFrom"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.situations.SituationFilters", "org/overlord/rtgov/ui/client/local/site/situations.html", _148888483__$951620175_timestampTo(inj1513_SituationFilters), var4, "timestampTo"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.situations.SituationFilters", "org/overlord/rtgov/ui/client/local/site/situations.html", _148888483__2084144957_clearFilters(inj1513_SituationFilters), var4, "clearFilters"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.situations.SituationFilters", "org/overlord/rtgov/ui/client/local/site/situations.html", _148888483__$371269162_description(inj1513_SituationFilters), var4, "description"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.situations.SituationFilters", "org/overlord/rtgov/ui/client/local/site/situations.html", _148888483__$371269162_subject(inj1513_SituationFilters), var4, "subject"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.situations.SituationFilters", "org/overlord/rtgov/ui/client/local/site/situations.html", _148888483__$371269162_host(inj1513_SituationFilters), var4, "host"); - var5.put("severity", _148888483__1024371274_severity(inj1513_SituationFilters)); - var5.put("type", _148888483__$371269162_type(inj1513_SituationFilters)); - var5.put("resolutionState", _148888483__1181247566_resolutionState(inj1513_SituationFilters)); - var5.put("timestampFrom", _148888483__$951620175_timestampFrom(inj1513_SituationFilters)); - var5.put("timestampTo", _148888483__$951620175_timestampTo(inj1513_SituationFilters)); - var5.put("clearFilters", _148888483__2084144957_clearFilters(inj1513_SituationFilters)); - var5.put("description", _148888483__$371269162_description(inj1513_SituationFilters)); - var5.put("subject", _148888483__$371269162_subject(inj1513_SituationFilters)); - var5.put("host", _148888483__$371269162_host(inj1513_SituationFilters)); - TemplateUtil.initWidget(inj1513_SituationFilters, var3, var5.values()); - } - }); - context.addInitializationCallback(inj1513_SituationFilters, init_inj1513_SituationFilters); - return inj1513_SituationFilters; - } - }; - private final BeanProvider inj1778_MessageBusProvider_creational = new BeanProvider() { - public MessageBusProvider getInstance(final CreationalContext context) { - final MessageBusProvider inj1738_MessageBusProvider = new MessageBusProvider(); - context.addBean(context.getBeanReference(MessageBusProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1738_MessageBusProvider); - return inj1738_MessageBusProvider; - } - }; - private final MessageBusProvider inj1738_MessageBusProvider = inj1778_MessageBusProvider_creational.getInstance(context); - private final BeanProvider inj1779_RequestDispatcherProvider_creational = new BeanProvider() { - public RequestDispatcherProvider getInstance(final CreationalContext context) { - final RequestDispatcherProvider inj1740_RequestDispatcherProvider = new RequestDispatcherProvider(); - context.addBean(context.getBeanReference(RequestDispatcherProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1740_RequestDispatcherProvider); - return inj1740_RequestDispatcherProvider; - } - }; - private final RequestDispatcherProvider inj1740_RequestDispatcherProvider = inj1779_RequestDispatcherProvider_creational.getInstance(context); - private final BeanProvider inj1780_InstanceProvider_creational = new BeanProvider() { - public InstanceProvider getInstance(final CreationalContext context) { - final InstanceProvider inj1752_InstanceProvider = new InstanceProvider(); - context.addBean(context.getBeanReference(InstanceProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1752_InstanceProvider); - return inj1752_InstanceProvider; - } - }; - private final InstanceProvider inj1752_InstanceProvider = inj1780_InstanceProvider_creational.getInstance(context); - private final BeanProvider inj1781_RootPanelProvider_creational = new BeanProvider() { - public RootPanelProvider getInstance(final CreationalContext context) { - final RootPanelProvider inj1744_RootPanelProvider = new RootPanelProvider(); - context.addBean(context.getBeanReference(RootPanelProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1744_RootPanelProvider); - return inj1744_RootPanelProvider; - } - }; - private final RootPanelProvider inj1744_RootPanelProvider = inj1781_RootPanelProvider_creational.getInstance(context); - private InitializationCallback init_inj1782_NotificationService = new InitializationCallback() { - public void init(final NotificationService obj) { - _2030280515_onPostConstruct(obj); - } - }; - private final BeanProvider inj1783_NotificationService_creational = new BeanProvider() { - public NotificationService getInstance(final CreationalContext context) { - final NotificationService inj1782_NotificationService = new NotificationService(); - context.addBean(context.getBeanReference(NotificationService.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1782_NotificationService); - _2030280515__2098965610_bus(inj1782_NotificationService, inj1738_MessageBusProvider.get()); - _2030280515__624081413_dispatcher(inj1782_NotificationService, inj1740_RequestDispatcherProvider.get()); - _2030280515__$124296006_rootPanel(inj1782_NotificationService, inj1744_RootPanelProvider.get()); - _2030280515__$903668163_notificationWidgetFactory(inj1782_NotificationService, inj1752_InstanceProvider.provide(new Class[] { NotificationWidget.class }, null)); - context.addInitializationCallback(inj1782_NotificationService, init_inj1782_NotificationService); - return inj1782_NotificationService; - } - }; - private final NotificationService inj1782_NotificationService = inj1783_NotificationService_creational.getInstance(context); - private final BeanProvider inj1784_TransitionAnchorProvider_creational = new BeanProvider() { - public TransitionAnchorProvider getInstance(final CreationalContext context) { - final TransitionAnchorProvider inj1758_TransitionAnchorProvider = new TransitionAnchorProvider(); - context.addBean(context.getBeanReference(TransitionAnchorProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1758_TransitionAnchorProvider); - _$1034438370__136504311_navigation(inj1758_TransitionAnchorProvider, inj1767_Navigation); - return inj1758_TransitionAnchorProvider; - } - }; - private final TransitionAnchorProvider inj1758_TransitionAnchorProvider = inj1784_TransitionAnchorProvider_creational.getInstance(context); - private final BeanProvider inj1785_DataBinderProvider_creational = new BeanProvider() { - public DataBinderProvider getInstance(final CreationalContext context) { - final DataBinderProvider inj1748_DataBinderProvider = new DataBinderProvider(); - context.addBean(context.getBeanReference(DataBinderProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1748_DataBinderProvider); - return inj1748_DataBinderProvider; - } - }; - private final DataBinderProvider inj1748_DataBinderProvider = inj1785_DataBinderProvider_creational.getInstance(context); - private final BeanProvider inj1787_ClientMessages_creational = new BeanProvider() { - public ClientMessages getInstance(final CreationalContext context) { - final ClientMessages inj1786_ClientMessages = new ClientMessages(); - context.addBean(context.getBeanReference(ClientMessages.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1786_ClientMessages); - return inj1786_ClientMessages; - } - }; - private final ClientMessages inj1786_ClientMessages = inj1787_ClientMessages_creational.getInstance(context); - private final BeanProvider inj1789_ServicesRpcService_creational = new BeanProvider() { - public ServicesRpcService getInstance(final CreationalContext context) { - final ServicesRpcService inj1788_ServicesRpcService = new ServicesRpcService(); - context.addBean(context.getBeanReference(ServicesRpcService.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1788_ServicesRpcService); - _$1163117323__120980481_remoteServicesService(inj1788_ServicesRpcService, inj1760_CallerProvider.provide(new Class[] { IServicesService.class }, null)); - return inj1788_ServicesRpcService; - } - }; - private final ServicesRpcService inj1788_ServicesRpcService = inj1789_ServicesRpcService_creational.getInstance(context); - private final BeanProvider inj1792_InlineLabel_creational = new BeanProvider() { - public InlineLabel getInstance(final CreationalContext context) { - final InlineLabel inj1317_InlineLabel = new InlineLabel(); - context.addBean(context.getBeanReference(InlineLabel.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1317_InlineLabel); - return inj1317_InlineLabel; - } - }; - private final BeanProvider inj1793_HtmlSnippet_creational = new BeanProvider() { - public HtmlSnippet getInstance(final CreationalContext context) { - final HtmlSnippet inj1662_HtmlSnippet = new HtmlSnippet(); - context.addBean(context.getBeanReference(HtmlSnippet.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1662_HtmlSnippet); - return inj1662_HtmlSnippet; - } - }; - private InitializationCallback init_inj1790_ReferenceDetailsPage = new InitializationCallback() { - public void init(final ReferenceDetailsPage obj) { - _$1203922748__onPostConstruct(obj); - _80634777_onPostConstruct(obj); - } - }; - private final BeanProvider inj1791_ReferenceDetailsPage_creational = new BeanProvider() { - public ReferenceDetailsPage getInstance(final CreationalContext context) { - final ReferenceDetailsPage inj1790_ReferenceDetailsPage = new ReferenceDetailsPage(); - context.addBean(context.getBeanReference(ReferenceDetailsPage.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1790_ReferenceDetailsPage); - _80634777__$1433900096_i18n(inj1790_ReferenceDetailsPage, inj1786_ClientMessages); - _80634777__$1163117323_servicesService(inj1790_ReferenceDetailsPage, inj1788_ServicesRpcService); - _80634777__2030280515_notificationService(inj1790_ReferenceDetailsPage, inj1782_NotificationService); - _80634777__$483175978_reference(inj1790_ReferenceDetailsPage, inj1748_DataBinderProvider.provide(new Class[] { ReferenceBean.class }, null)); - _80634777__$229921779_toDashboardPage(inj1790_ReferenceDetailsPage, inj1758_TransitionAnchorProvider.provide(new Class[] { DashboardPage.class }, null)); - _80634777__$229921779_toServicesPage(inj1790_ReferenceDetailsPage, inj1758_TransitionAnchorProvider.provide(new Class[] { ServicesPage.class }, null)); - _80634777__$229921779_toSituationsPage(inj1790_ReferenceDetailsPage, inj1758_TransitionAnchorProvider.provide(new Class[] { SituationsPage.class }, null)); - _80634777__74478675_referenceName(inj1790_ReferenceDetailsPage, inj1792_InlineLabel_creational.getInstance(context)); - _80634777__74478675_referenceNamespace(inj1790_ReferenceDetailsPage, inj1792_InlineLabel_creational.getInstance(context)); - _80634777__74478675_applicationNamespace(inj1790_ReferenceDetailsPage, inj1792_InlineLabel_creational.getInstance(context)); - _80634777__74478675_applicationName(inj1790_ReferenceDetailsPage, inj1792_InlineLabel_creational.getInstance(context)); - _80634777__74478675_referenceInterface(inj1790_ReferenceDetailsPage, inj1792_InlineLabel_creational.getInstance(context)); - _80634777__38184088_loading(inj1790_ReferenceDetailsPage, inj1793_HtmlSnippet_creational.getInstance(context)); - _$1203922748__879292651_bus(inj1790_ReferenceDetailsPage, inj1738_MessageBusProvider.get()); - context.addInitializationCallback(inj1790_ReferenceDetailsPage, new InitializationCallback() { - public void init(final ReferenceDetailsPage obj) { - org_overlord_rtgov_ui_client_local_pages_ReferenceDetailsPageTemplateResource var6 = GWT.create(org_overlord_rtgov_ui_client_local_pages_ReferenceDetailsPageTemplateResource.class); - Element var7 = TemplateUtil.getRootTemplateElement(var6.getContents().getText(), "page"); - TemplateUtil.translateTemplate("org/overlord/rtgov/ui/client/local/site/referenceDetails.html", var7); - Map var8 = TemplateUtil.getDataFieldElements(var7); - Map var9 = new LinkedHashMap(); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage", "org/overlord/rtgov/ui/client/local/site/referenceDetails.html", _80634777__$229921779_toDashboardPage(inj1790_ReferenceDetailsPage), var8, "back-to-dashboard"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage", "org/overlord/rtgov/ui/client/local/site/referenceDetails.html", _80634777__$229921779_toServicesPage(inj1790_ReferenceDetailsPage), var8, "back-to-services"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage", "org/overlord/rtgov/ui/client/local/site/referenceDetails.html", _80634777__$229921779_toSituationsPage(inj1790_ReferenceDetailsPage), var8, "to-situations"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage", "org/overlord/rtgov/ui/client/local/site/referenceDetails.html", _80634777__74478675_referenceName(inj1790_ReferenceDetailsPage), var8, "referenceName"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage", "org/overlord/rtgov/ui/client/local/site/referenceDetails.html", _80634777__74478675_referenceNamespace(inj1790_ReferenceDetailsPage), var8, "referenceNamespace"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage", "org/overlord/rtgov/ui/client/local/site/referenceDetails.html", _80634777__74478675_applicationNamespace(inj1790_ReferenceDetailsPage), var8, "applicationNamespace"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage", "org/overlord/rtgov/ui/client/local/site/referenceDetails.html", _80634777__74478675_applicationName(inj1790_ReferenceDetailsPage), var8, "applicationName"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage", "org/overlord/rtgov/ui/client/local/site/referenceDetails.html", _80634777__74478675_referenceInterface(inj1790_ReferenceDetailsPage), var8, "referenceInterface"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage", "org/overlord/rtgov/ui/client/local/site/referenceDetails.html", _80634777__38184088_loading(inj1790_ReferenceDetailsPage), var8, "reference-details-loading-spinner"); - var9.put("back-to-dashboard", _80634777__$229921779_toDashboardPage(inj1790_ReferenceDetailsPage)); - var9.put("back-to-services", _80634777__$229921779_toServicesPage(inj1790_ReferenceDetailsPage)); - var9.put("to-situations", _80634777__$229921779_toSituationsPage(inj1790_ReferenceDetailsPage)); - var9.put("referenceName", _80634777__74478675_referenceName(inj1790_ReferenceDetailsPage)); - var9.put("referenceNamespace", _80634777__74478675_referenceNamespace(inj1790_ReferenceDetailsPage)); - var9.put("applicationNamespace", _80634777__74478675_applicationNamespace(inj1790_ReferenceDetailsPage)); - var9.put("applicationName", _80634777__74478675_applicationName(inj1790_ReferenceDetailsPage)); - var9.put("referenceInterface", _80634777__74478675_referenceInterface(inj1790_ReferenceDetailsPage)); - var9.put("reference-details-loading-spinner", _80634777__38184088_loading(inj1790_ReferenceDetailsPage)); - TemplateUtil.initWidget(inj1790_ReferenceDetailsPage, var7, var9.values()); - } - }); - context.addInitializationCallback(inj1790_ReferenceDetailsPage, init_inj1790_ReferenceDetailsPage); - context.addInitializationCallback(inj1790_ReferenceDetailsPage, new InitializationCallback() { - public void init(final ReferenceDetailsPage obj) { - DataBinder binder = _80634777__$483175978_reference(inj1790_ReferenceDetailsPage); - if (binder == null) { - throw new RuntimeException("@AutoBound data binder for class org.overlord.rtgov.ui.client.local.pages.ReferenceDetailsPage has not been initialized. Either initialize or add @Inject!"); - } - binder.bind(_80634777__74478675_referenceName(inj1790_ReferenceDetailsPage), "name", new DataBindingQNameLocalPartConverter()); - binder.bind(_80634777__74478675_referenceNamespace(inj1790_ReferenceDetailsPage), "name", new DataBindingQNameNamespaceConverter()); - binder.bind(_80634777__74478675_applicationNamespace(inj1790_ReferenceDetailsPage), "application", new DataBindingQNameNamespaceConverter()); - binder.bind(_80634777__74478675_applicationName(inj1790_ReferenceDetailsPage), "application", new DataBindingQNameLocalPartConverter()); - binder.bind(_80634777__74478675_referenceInterface(inj1790_ReferenceDetailsPage), "referenceInterface", null); - } - }); - context.addDestructionCallback(inj1790_ReferenceDetailsPage, new DestructionCallback() { - public void destroy(final ReferenceDetailsPage obj) { - _80634777__$483175978_reference(inj1790_ReferenceDetailsPage).unbind(); - } - }); - return inj1790_ReferenceDetailsPage; - } - }; - private final BeanProvider inj1794_TransitionAnchorFactoryProvider_creational = new BeanProvider() { - public TransitionAnchorFactoryProvider getInstance(final CreationalContext context) { - final TransitionAnchorFactoryProvider inj1764_TransitionAnchorFactoryProvider = new TransitionAnchorFactoryProvider(); - context.addBean(context.getBeanReference(TransitionAnchorFactoryProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1764_TransitionAnchorFactoryProvider); - _1496760654__136504311_navigation(inj1764_TransitionAnchorFactoryProvider, inj1767_Navigation); - return inj1764_TransitionAnchorFactoryProvider; - } - }; - private final TransitionAnchorFactoryProvider inj1764_TransitionAnchorFactoryProvider = inj1794_TransitionAnchorFactoryProvider_creational.getInstance(context); - private final BeanProvider inj1796_SituationWatcherEvent_creational = new BeanProvider() { - public SituationWatcherEvent getInstance(final CreationalContext context) { - final SituationWatcherEvent inj1795_SituationWatcherEvent = new SituationWatcherEvent(); - context.addBean(context.getBeanReference(SituationWatcherEvent.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1795_SituationWatcherEvent); - _$1516327018__$1509039043_toDetailsPageLinkFactory(inj1795_SituationWatcherEvent, inj1764_TransitionAnchorFactoryProvider.provide(new Class[] { SituationDetailsPage.class }, null)); - return inj1795_SituationWatcherEvent; - } - }; - private InitializationCallback init_inj1797_ReferenceTable = new InitializationCallback() { - public void init(final ReferenceTable obj) { - _$1581558918_postContruct(obj); - } - }; - private final BeanProvider inj1798_ReferenceTable_creational = new BeanProvider() { - public ReferenceTable getInstance(final CreationalContext context) { - final ReferenceTable inj1797_ReferenceTable = new ReferenceTable(); - context.addBean(context.getBeanReference(ReferenceTable.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1797_ReferenceTable); - _$1106092480__$1433900096_i18n(inj1797_ReferenceTable, inj1786_ClientMessages); - _$1106092480__$1509039043_toDetailsPageLinkFactory(inj1797_ReferenceTable, inj1764_TransitionAnchorFactoryProvider.provide(new Class[] { ReferenceDetailsPage.class }, null)); - context.addInitializationCallback(inj1797_ReferenceTable, init_inj1797_ReferenceTable); - return inj1797_ReferenceTable; - } - }; - private InitializationCallback init_inj1799_DashboardPage = new InitializationCallback() { - public void init(final DashboardPage obj) { - _$1203922748__onPostConstruct(obj); - } - }; - private final BeanProvider inj1800_DashboardPage_creational = new BeanProvider() { - public DashboardPage getInstance(final CreationalContext context) { - final DashboardPage inj1799_DashboardPage = new DashboardPage(); - context.addBean(context.getBeanReference(DashboardPage.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1799_DashboardPage); - _$1648295248__$229921779_toServicesPage(inj1799_DashboardPage, inj1758_TransitionAnchorProvider.provide(new Class[] { ServicesPage.class }, null)); - _$1648295248__$229921779_toSituationsPage(inj1799_DashboardPage, inj1758_TransitionAnchorProvider.provide(new Class[] { SituationsPage.class }, null)); - _$1203922748__879292651_bus(inj1799_DashboardPage, inj1738_MessageBusProvider.get()); - context.addInitializationCallback(inj1799_DashboardPage, new InitializationCallback() { - public void init(final DashboardPage obj) { - org_overlord_rtgov_ui_client_local_pages_DashboardPageTemplateResource var10 = GWT.create(org_overlord_rtgov_ui_client_local_pages_DashboardPageTemplateResource.class); - Element var11 = TemplateUtil.getRootTemplateElement(var10.getContents().getText(), "page"); - TemplateUtil.translateTemplate("org/overlord/rtgov/ui/client/local/site/dashboard.html", var11); - Map var12 = TemplateUtil.getDataFieldElements(var11); - Map var13 = new LinkedHashMap(); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.DashboardPage", "org/overlord/rtgov/ui/client/local/site/dashboard.html", _$1648295248__$229921779_toServicesPage(inj1799_DashboardPage), var12, "to-services-page"); - TemplateUtil.compositeComponentReplace("org.overlord.rtgov.ui.client.local.pages.DashboardPage", "org/overlord/rtgov/ui/client/local/site/dashboard.html", _$1648295248__$229921779_toSituationsPage(inj1799_DashboardPage), var12, "to-situations-page"); - var13.put("to-services-page", _$1648295248__$229921779_toServicesPage(inj1799_DashboardPage)); - var13.put("to-situations-page", _$1648295248__$229921779_toSituationsPage(inj1799_DashboardPage)); - TemplateUtil.initWidget(inj1799_DashboardPage, var11, var13.values()); - } - }); - context.addInitializationCallback(inj1799_DashboardPage, init_inj1799_DashboardPage); - return inj1799_DashboardPage; - } - }; - private final BeanProvider inj1801_ListWidgetProvider_creational = new BeanProvider() { - public ListWidgetProvider getInstance(final CreationalContext context) { - final ListWidgetProvider inj1734_ListWidgetProvider = new ListWidgetProvider(); - context.addBean(context.getBeanReference(ListWidgetProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1734_ListWidgetProvider); - return inj1734_ListWidgetProvider; - } - }; - private final ListWidgetProvider inj1734_ListWidgetProvider = inj1801_ListWidgetProvider_creational.getInstance(context); - private InitializationCallback init_inj1802_ServiceTable = new InitializationCallback() { - public void init(final ServiceTable obj) { - _$1581558918_postContruct(obj); - } - }; - private final BeanProvider inj1803_ServiceTable_creational = new BeanProvider() { - public ServiceTable getInstance(final CreationalContext context) { - final ServiceTable inj1802_ServiceTable = new ServiceTable(); - context.addBean(context.getBeanReference(ServiceTable.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1802_ServiceTable); - _$990608298__$1433900096_i18n(inj1802_ServiceTable, inj1786_ClientMessages); - _$990608298__$1509039043_toDetailsPageLinkFactory(inj1802_ServiceTable, inj1764_TransitionAnchorFactoryProvider.provide(new Class[] { ServiceDetailsPage.class }, null)); - context.addInitializationCallback(inj1802_ServiceTable, init_inj1802_ServiceTable); - return inj1802_ServiceTable; - } - }; - private final BeanProvider inj1805_LocaleSelector_creational = new BeanProvider() { - public LocaleSelector getInstance(final CreationalContext context) { - final LocaleSelector inj1804_LocaleSelector = new LocaleSelector(); - context.addBean(context.getBeanReference(LocaleSelector.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1804_LocaleSelector); - return inj1804_LocaleSelector; - } - }; - private final LocaleSelector inj1804_LocaleSelector = inj1805_LocaleSelector_creational.getInstance(context); - private final BeanProvider inj1807_LocaleListBox_creational = new BeanProvider() { - public LocaleListBox getInstance(final CreationalContext context) { - final LocaleListBox inj1806_LocaleListBox = new LocaleListBox(); - context.addBean(context.getBeanReference(LocaleListBox.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1806_LocaleListBox); - _1350680564__$1232121576_selector(inj1806_LocaleListBox, inj1804_LocaleSelector); - InitVotes.registerOneTimeInitCallback(new Runnable() { - public void run() { - inj1806_LocaleListBox.init(); - } - }); - return inj1806_LocaleListBox; - } - }; - private InitializationCallback init_inj1808_App = new InitializationCallback() { - public void init(final App obj) { - obj.buildUI(); - } - }; - private final BeanProvider inj1809_App_creational = new BeanProvider() { - public App getInstance(final CreationalContext context) { - final App inj1808_App = new App(); - context.addBean(context.getBeanReference(App.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1808_App); - _$184711112__$124296006_rootPanel(inj1808_App, inj1744_RootPanelProvider.get()); - _$184711112__136504311_navigation(inj1808_App, inj1767_Navigation); - context.addInitializationCallback(inj1808_App, init_inj1808_App); - return inj1808_App; - } - }; - private final App inj1808_App = inj1809_App_creational.getInstance(context); - private final BeanProvider inj1810_DisposerProvider_creational = new BeanProvider() { - public DisposerProvider getInstance(final CreationalContext context) { - final DisposerProvider inj1762_DisposerProvider = new DisposerProvider(); - context.addBean(context.getBeanReference(DisposerProvider.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1762_DisposerProvider); - _$1300398733__$652658075_beanManager(inj1762_DisposerProvider, inj1746_IOCBeanManagerProvider.get()); - return inj1762_DisposerProvider; - } - }; - private final DisposerProvider inj1762_DisposerProvider = inj1810_DisposerProvider_creational.getInstance(context); - private InitializationCallback init_inj1811_SituationPropertiesTable = new InitializationCallback() { - public void init(final SituationPropertiesTable obj) { - _$1581558918_postContruct(obj); - } - }; - private final BeanProvider inj1812_SituationPropertiesTable_creational = new BeanProvider() { - public SituationPropertiesTable getInstance(final CreationalContext context) { - final SituationPropertiesTable inj1811_SituationPropertiesTable = new SituationPropertiesTable(); - context.addBean(context.getBeanReference(SituationPropertiesTable.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1811_SituationPropertiesTable); - _$1542973949__$1433900096_i18n(inj1811_SituationPropertiesTable, inj1786_ClientMessages); - context.addInitializationCallback(inj1811_SituationPropertiesTable, init_inj1811_SituationPropertiesTable); - return inj1811_SituationPropertiesTable; - } - }; - private InitializationCallback init_inj1813_SituationTable = new InitializationCallback() { - public void init(final SituationTable obj) { - _$1581558918_postContruct(obj); - } - }; - private final BeanProvider inj1814_SituationTable_creational = new BeanProvider() { - public SituationTable getInstance(final CreationalContext context) { - final SituationTable inj1813_SituationTable = new SituationTable(); - context.addBean(context.getBeanReference(SituationTable.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1813_SituationTable); - _$1600569994__$1433900096_i18n(inj1813_SituationTable, inj1786_ClientMessages); - _$1600569994__$1509039043_toDetailsPageLinkFactory(inj1813_SituationTable, inj1764_TransitionAnchorFactoryProvider.provide(new Class[] { SituationDetailsPage.class }, null)); - context.addInitializationCallback(inj1813_SituationTable, init_inj1813_SituationTable); - return inj1813_SituationTable; - } - }; - private final BeanProvider inj1816_SituationsRpcService_creational = new BeanProvider() { - public SituationsRpcService getInstance(final CreationalContext context) { - final SituationsRpcService inj1815_SituationsRpcService = new SituationsRpcService(); - context.addBean(context.getBeanReference(SituationsRpcService.class, QualifierUtil.DEFAULT_QUALIFIERS), inj1815_SituationsRpcService); - _$1124051892__120980481_remoteSituationsService(inj1815_SituationsRpcService, inj1760_CallerProvider.provide(new Class[] { ISituationsService.class }, null)); - return inj1815_SituationsRpcService; - } - }; - private final SituationsRpcService inj1815_SituationsRpcService = inj1816_SituationsRpcService_creational.getInstance(context); - private InitializationCallback init_inj156_ToggleSwitch = new InitializationCallback() { - public void init(final ToggleSwitch obj) { - _1401717584_postConstruct(obj); - } - }; - private final BeanProvider inj1819_ToggleSwitch_creational = new BeanProvider() { - public ToggleSwitch getInstance(final CreationalContext context) { - final ToggleSwitch inj156_ToggleSwitch = new ToggleSwitch(); - context.addBean(context.getBeanReference(ToggleSwitch.class, QualifierUtil.DEFAULT_QUALIFIERS), inj156_ToggleSwitch); - context.addInitializationCallback(inj156_ToggleSwitch, init_inj156_ToggleSwitch); - return inj156_ToggleSwitch; - } - }; - private final BeanProvider