Author: chris.laprun(a)jboss.com
Date: 2009-08-27 07:53:22 -0400 (Thu, 27 Aug 2009)
New Revision: 13794
Added:
jbossexo/modules/wsrp/trunk/admin-gui/
jbossexo/modules/wsrp/trunk/admin-gui/pom.xml
jbossexo/modules/wsrp/trunk/admin-gui/src/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/BeanContext.java
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ConsumerBean.java
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ConsumerManagerBean.java
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/JSFBeanContext.java
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/LocalizedStringConverter.java
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ManagedBean.java
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ProducerBean.java
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/RedirectOnNoConsumerNavigationHandler.java
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/StatusConverter.java
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource.properties
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_fr.properties
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_it.properties
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_ja.properties
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_pt_BR.properties
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/faces-config.xml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/jboss-portlet.xml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/portlet-instances.xml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/portlet.xml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/web.xml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/wsrp-object.xml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/basestyles.css
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Activate.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Configure.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Deactivate.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Delete.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Deregister.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Refresh.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Register.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/border-dotted-blue.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/border-dotted-vert.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/accept.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/activate.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/add.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/coordination.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/deactivate.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/default.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/delete.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/delete2.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/deregister.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/display_names.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/generic_icon.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/layout.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/make_default.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/refresh.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/register.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/rename.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/security.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/settings.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/theme.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_add.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_copy.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_edit.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_error.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_remove.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/msgIcon_Warning.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/pathBackground.png
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/pathSeparator.png
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/section-header-bg.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/section-subHeader-bg.gif
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/common/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/common/template.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/confirmDeleteConsumer.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/confirmEraseRegistration.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/consumerTemplate.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/consumers.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/editConsumer.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/management/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/management/management.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/management/managementTemplate.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/confirmPropDeletion.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/producer.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/producerTemplate.xhtml
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/style.css
jbossexo/modules/wsrp/trunk/admin-gui/src/test/
jbossexo/modules/wsrp/trunk/admin-gui/src/test/java/
jbossexo/modules/wsrp/trunk/admin-gui/src/test/java/org/
jbossexo/modules/wsrp/trunk/admin-gui/src/test/java/org/jboss/
jbossexo/modules/wsrp/trunk/admin-gui/src/test/java/org/jboss/portal/
jbossexo/modules/wsrp/trunk/admin-gui/src/test/java/org/jboss/portal/wsrp/
jbossexo/modules/wsrp/trunk/admin-gui/src/test/java/org/jboss/portal/wsrp/other/
jbossexo/modules/wsrp/trunk/admin-gui/src/test/java/org/jboss/portal/wsrp/other/ConsumerBeanTestCase.java
Modified:
jbossexo/modules/wsrp/trunk/pom.xml
Log:
- Updated admin GUI so that it compiles and packages with Maven. NOT tested yet.
Added: jbossexo/modules/wsrp/trunk/admin-gui/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/pom.xml (rev 0)
+++ jbossexo/modules/wsrp/trunk/admin-gui/pom.xml 2009-08-27 11:53:22 UTC (rev 13794)
@@ -0,0 +1,89 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal.wsrp</groupId>
+ <artifactId>module-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>admin-gui</artifactId>
+ <packaging>war</packaging>
+ <name>JBoss Portal WSRP Admin GUI</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.portal.wsrp</groupId>
+ <artifactId>common</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.wsrp</groupId>
+ <artifactId>consumer</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.wsrp</groupId>
+ <artifactId>producer</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.2_12</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.common</groupId>
+ <artifactId>common-common</artifactId>
+ <version>${version.common}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.portlet</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>${version.portlet}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/BeanContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/BeanContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/BeanContext.java 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,287 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.jboss.portal.wsrp.admin.ui;
+
+import org.apache.log4j.Logger;
+import org.jboss.portal.common.util.ParameterValidation;
+
+import java.text.MessageFormat;
+import java.util.Locale;
+import java.util.Map;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 13374 $
+ * @since 2.6
+ */
+public abstract class BeanContext
+{
+ protected final static Logger log = Logger.getLogger(BeanContext.class);
+
+ public static final String STATUS = "status";
+ private static final String DEFAULT_RESOURCE_NAME = "Resource";
+ private static final String UNEXPECTED_ERROR =
"bean_support_unexpected_error";
+ private static final String CAUSE = "bean_support_cause";
+ private static final String CURRENT_PLACEHOLDER = "###";
+
+ private String resourceName = DEFAULT_RESOURCE_NAME;
+
+ public void setResourceName(String resourceName)
+ {
+ this.resourceName = resourceName;
+ }
+
+ public String getResourceName()
+ {
+ return resourceName;
+ }
+
+ /**
+ * Retrieves the value of the parameter which name is given from the JSF request.
+ *
+ * @param key name of the parameter which value we want to retrieve
+ * @return
+ */
+ public abstract String getParameter(String key);
+
+ /**
+ * @param target
+ * @param message
+ * @param severity
+ */
+ protected abstract void createMessage(String target, String message, Object
severity);
+
+ protected abstract Object getErrorSeverity();
+
+ protected abstract Object getInfoSeverity();
+
+ protected abstract Locale getLocale();
+
+ public void createErrorMessage(String localizedMessageId, Object... params)
+ {
+ createLocalizedMessage(STATUS, localizedMessageId, getErrorSeverity(), params);
+ }
+
+ public void createTargetedErrorMessage(String target, String localizedMessageId,
Object... params)
+ {
+ createLocalizedMessage(target, localizedMessageId, getErrorSeverity(), params);
+ }
+
+ /**
+ * Adds a localized message using the appropriate severity to the identified target in
the context. This method
+ * accepts an arbitrary number of arguments to be passed as parameters of localized
strings.
+ *
+ * @param target the target in this context that will receive the new
message
+ * @param localizedMessageId a resource bundle identifier identifying which the
localized string to use as a message
+ * @param severity an object representing the severity of the message
(typically FacesMessage.Severity)
+ * @param params additional parameters to be passed to replace tokens in
localized strings
+ */
+ protected void createLocalizedMessage(String target, String localizedMessageId, Object
severity, Object... params)
+ {
+ createMessage(target, getMessageFromBundle(localizedMessageId, params), severity);
+ }
+
+ public String getMessageFromBundle(String localizedMessageId, Object... params)
+ {
+ return getLocalizedMessage(localizedMessageId, getLocale(), resourceName, params);
+ }
+
+ public static String getLocalizedMessage(String localizationKey, Locale locale,
Object... params)
+ {
+ return getLocalizedMessage(localizationKey, locale, DEFAULT_RESOURCE_NAME,
params);
+ }
+
+ public static String getLocalizedMessage(String localizationKey, Locale locale, String
resourceName, Object... params)
+ {
+ ResourceBundle rb = ResourceBundle.getBundle(resourceName, locale);
+
+ String message;
+ try
+ {
+ message = rb.getString(localizationKey);
+ }
+ catch (MissingResourceException e)
+ {
+ // if the key doesn't exist, return it instead of failing
+ log.info("Couldn't find localization message for key '" +
localizationKey + "' in bundle " + resourceName
+ + " for locale " + locale.getDisplayName());
+ return localizationKey;
+ }
+
+ return MessageFormat.format(message, params);
+ }
+
+ public void createErrorMessageFrom(Exception e)
+ {
+ createErrorMessageFrom(STATUS, e);
+ }
+
+ /**
+ * Creates a localized error message targeting the specified object in the context and
using the specified error
+ * information. This method looks for two specific resource bundle entries to localize
the message, {@link
+ * #UNEXPECTED_ERROR} and {@link #CAUSE}, using the following format for the message:
<code>result of {@link
+ * #getLocalizedMessageOrExceptionName(Throwable)} for the exception\n[localized value
associated with {@link
+ * #CAUSE}result of {@link #getLocalizedMessageOrExceptionName(Throwable)} for the
exception's cause if the cause
+ * exists]
+ *
+ * @param target the contextual object target by the message to be created
+ * @param e the exception that we want to display as an error message
+ */
+ public void createErrorMessageFrom(String target, Exception e)
+ {
+ Throwable cause = e.getCause();
+ String localizedMessage = getLocalizedMessageOrExceptionName(e);
+ String message = localizedMessage + (cause != null ? "\n" +
getMessageFromBundle(CAUSE) + getLocalizedMessageOrExceptionName(cause) : "");
+ createMessage(target, message, getErrorSeverity());
+ }
+
+ /**
+ * Retrieves a localized message associated with the specified Throwable.
+ *
+ * @param e the Throwable for which a localized message is to be retrieved
+ * @return the localized message associated with the specified Throwable if it exists
or the localized value
+ * associated with the {@link #UNEXPECTED_ERROR} resource bundle entry to
which is appended the Throwable
+ * class name.
+ */
+ private String getLocalizedMessageOrExceptionName(Throwable e)
+ {
+ String localizedMessage = e.getLocalizedMessage();
+ if (localizedMessage == null)
+ {
+ localizedMessage = getMessageFromBundle(UNEXPECTED_ERROR) +
e.getClass().getName();
+ }
+ return localizedMessage;
+ }
+
+ protected void createInfoMessage(String target, String localizedMessageId)
+ {
+ createLocalizedMessage(target, localizedMessageId, getInfoSeverity());
+ }
+
+ public void createInfoMessage(String localizedMessageId)
+ {
+ createInfoMessage(STATUS, localizedMessageId);
+ }
+
+ /**
+ * Removes the object identified by the specified name(s) from the session. For a JSF
backed implementation, this
+ * will allow for the object/bean (defined as session-scoped in
<code>faces-config.xml</code>) to be recreated by JSF
+ * when needed.
+ *
+ * @param name name of the object to be removed
+ * @param otherNames additional names of objects to be removed
+ */
+ public void removeFromSession(String name, String... otherNames)
+ {
+ Map<String, Object> sessionMap = getSessionMap();
+ sessionMap.remove(name);
+ if (otherNames != null)
+ {
+ for (String other : otherNames)
+ {
+ sessionMap.remove(other);
+ }
+ }
+ }
+
+ /**
+ * Retrieves the session map where "session" is a concept left up to
implementations (for JSF, the session
+ * corresponds quite logically to the HTTP session)
+ *
+ * @return the session map
+ */
+ public abstract Map<String, Object> getSessionMap();
+
+ /**
+ * Replaces the session object identified by the given name by the specified new one.
Passing <code>null</code> for
+ * the new value will remove the object reference from the session. If an object was
previously assigned to this
+ * name, then only an object of the same type (as defined by {@link
Class#isAssignableFrom(Class)}) can be assigned
+ * to this name.
+ *
+ * @param name the name identifying the object to be replaced
+ * @param newValue the new value for the object to be replaced or
<code>null</code> if the object is to be removed
+ * @param <T> the type of the object to be replaced
+ * @return the new value for the object or <code>null</code> if the remove
semantics is used
+ * @throws IllegalArgumentException if the new value for the identified object is not
compatible with the currently
+ * stored value
+ */
+ public <T> T replaceInSession(String name, T newValue)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(name, "name",
"replaceInSession");
+ Map<String, Object> sessionMap = getSessionMap();
+
+ // if we passed null, use the remove semantics
+ if (newValue == null)
+ {
+ sessionMap.remove(name);
+ return null;
+ }
+
+ getFromSession(name, newValue.getClass(), sessionMap, "Provided object: "
+ newValue
+ + " is not compatible with previously assigned '" + name +
"' object: " + CURRENT_PLACEHOLDER);
+ sessionMap.put(name, newValue);
+ return newValue;
+ }
+
+ /**
+ * Retrieves the session object associated with the specified name and the expected
type.
+ *
+ * @param name name of the session object to be retrieved
+ * @param expectedClass expected class of the object
+ * @param <T> type of the object to be retrieved
+ * @return the session object associated with the specified name
+ * @throws IllegalArgumentException if the value associated with the specified name is
not <code>null</code> and does
+ * not match the specified expected class
+ */
+ public <T> T getFromSession(String name, Class<T> expectedClass)
+ {
+ return getFromSession(name, expectedClass, getSessionMap(), "Current
object:" + CURRENT_PLACEHOLDER
+ + " is not compatible with expected class " + expectedClass + "
for '" + name + "'");
+ }
+
+ /**
+ * @param name name of the session attribute to retrieve
+ * @param expectedClass expected class of the attribute
+ * @param sessionMap the session map to retrieve the attribute from
+ * @param errorMessage the error message that will be used if the attribute value is
not of the expected class, in
+ * which {@link #CURRENT_PLACEHOLDER} will be substituted by the
current value of the attribute
+ * at runtime
+ * @param <T> the type of the object to be retrieved
+ * @return the value associated with the specified name
+ * @throws IllegalArgumentException if the value associated with the specified name is
not <code>null</code> and does
+ * not match the specified expected class
+ */
+ private <T> T getFromSession(String name, Class<T> expectedClass,
Map<String, Object> sessionMap, String errorMessage)
+ {
+ Object result = sessionMap.get(name);
+ if (result != null && !expectedClass.isAssignableFrom(result.getClass()))
+ {
+ throw new IllegalArgumentException(errorMessage.replace(CURRENT_PLACEHOLDER,
result.toString()));
+ }
+
+ return expectedClass.cast(result);
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ConsumerBean.java
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ConsumerBean.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ConsumerBean.java 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,579 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.jboss.portal.wsrp.admin.ui;
+
+import org.jboss.portal.wsrp.WSRPConsumer;
+import org.jboss.portal.wsrp.consumer.ConsumerRegistry;
+import org.jboss.portal.wsrp.consumer.EndpointConfigurationInfo;
+import org.jboss.portal.wsrp.consumer.ProducerInfo;
+import org.jboss.portal.wsrp.consumer.RegistrationInfo;
+import org.jboss.portal.wsrp.consumer.RegistrationProperty;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ValueChangeEvent;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Collections;
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12865 $
+ * @since 2.6
+ */
+public class ConsumerBean extends ManagedBean
+{
+ private WSRPConsumer consumer;
+ private ConsumerRegistry registry;
+ private Boolean useWSDL = null;
+ private ConsumerManagerBean manager;
+ private boolean modified;
+ private boolean registrationLocallyModified;
+
+ private String serviceDescription;
+ private String markup;
+ private String portletManagement;
+ private String registration;
+ private String wsdl;
+
+ private transient RegistrationInfo expectedRegistrationInfo;
+ private static final String CANNOT_FIND_CONSUMER =
"bean_consumer_cannot_find_consumer";
+ private static final String CANNOT_UPDATE_CONSUMER =
"bean_consumer_cannot_update_consumer";
+ private static final String CANNOT_REFRESH_CONSUMER =
"bean_consumer_cannot_refresh_consumer";
+ private static final String MODIFY_REG_SUCCESS =
"bean_consumer_modify_reg_success";
+ private static final String INVALID_MODIFY =
"bean_consumer_invalid_modify";
+ private static final String CANNOT_MODIFY_REG =
"bean_consumer_cannot_modify_reg";
+ private static final String CANNOT_ERASE_REG =
"bean_consumer_cannot_erase_reg";
+ private static final String MALFORMED_URL = "bean_consumer_malformed_url";
+ private static final String UPDATE_SUCCESS =
"bean_consumer_update_success";
+ private static final String CONSUMER_TYPE = "CONSUMER_TYPE";
+
+ public ConsumerBean()
+ {
+ useWSDL = Boolean.TRUE; // use WSDL by default
+ }
+
+ public void setRegistry(ConsumerRegistry registry)
+ {
+ this.registry = registry;
+ }
+
+ public void setManager(ConsumerManagerBean manager)
+ {
+ this.manager = manager;
+ }
+
+ public boolean isModified()
+ {
+ return modified || getProducerInfo().isModifyRegistrationRequired() ||
isRegistrationLocallyModified();
+ }
+
+ public boolean isUseWSDL()
+ {
+ if (useWSDL != null)
+ {
+ return useWSDL.booleanValue();
+ }
+
+ return getProducerInfo().getEndpointConfigurationInfo().usesWSDL();
+ }
+
+ public void setUseWSDL(boolean useWSDL)
+ {
+ this.useWSDL = useWSDL ? Boolean.TRUE : Boolean.FALSE;
+ }
+
+ public boolean isRefreshNeeded()
+ {
+ return consumer.isRefreshNeeded();
+ }
+
+ public String getId()
+ {
+ return consumer.getProducerId();
+ }
+
+ public void setId(String id)
+ {
+ if (consumer != null)
+ {
+ // renaming scenario
+ ProducerInfo info = getProducerInfo();
+ String oldId = info.getId();
+
+ // need to check that the new id is valid
+ if (isOldAndNewDifferent(oldId, id))
+ {
+ id = checkNameValidity(id, "edit-cons-form:id");
+ if (id != null)
+ {
+ info.setId(id);
+
+ // properly update the registry after change of id
+ registry.updateProducerInfo(info);
+
+ // we're not using modifyIfNeeded here to avoid double equality check,
so we need to set modified manually
+ modified = true;
+ }
+ }
+ }
+ else
+ {
+ // initialization scenario
+ consumer = registry.getConsumer(id);
+ if (consumer != null)
+ {
+ EndpointConfigurationInfo endpoint =
getProducerInfo().getEndpointConfigurationInfo();
+ serviceDescription = endpoint.getServiceDescriptionURL();
+ markup = endpoint.getMarkupURL();
+ portletManagement = endpoint.getPortletManagementURL();
+ registration = endpoint.getRegistrationURL();
+ wsdl = endpoint.getWsdlDefinitionURL();
+ useWSDL = endpoint.usesWSDL();
+ }
+ else
+ {
+ beanContext.createErrorMessage(CANNOT_FIND_CONSUMER, id);
+ }
+ }
+ }
+
+ public Integer getCache()
+ {
+ return getProducerInfo().getExpirationCacheSeconds();
+ }
+
+ public void setCache(Integer cache)
+ {
+ getProducerInfo().setExpirationCacheSeconds((Integer)modifyIfNeeded(getCache(),
cache, "cache", false));
+ }
+
+ public String getServiceDescription()
+ {
+ return serviceDescription;
+ }
+
+ public void setServiceDescription(String sdURL)
+ {
+ serviceDescription = (String)modifyIfNeeded(serviceDescription, sdURL,
"sd", true);
+ }
+
+ public String getMarkup()
+ {
+ return markup;
+ }
+
+ public void setMarkup(String markupURL)
+ {
+ markup = (String)modifyIfNeeded(markup, markupURL, "m", true);
+ }
+
+ public String getPortletManagement()
+ {
+ return portletManagement;
+ }
+
+ public void setPortletManagement(String pmURL)
+ {
+ portletManagement = (String)modifyIfNeeded(portletManagement, pmURL,
"pm", true);
+ }
+
+ public String getRegistration()
+ {
+ return registration;
+ }
+
+ public void setRegistration(String rURL)
+ {
+ registration = (String)modifyIfNeeded(registration, rURL, "r", true);
+ }
+
+ public String getWsdl()
+ {
+ return wsdl;
+ }
+
+ public void setWsdl(String wsdlURL)
+ {
+ wsdl = (String)modifyIfNeeded(wsdl, wsdlURL, "wsdl", true);
+ }
+
+ private void internalSetWsdl(String wsdlURL)
+ {
+ try
+ {
+ getProducerInfo().getEndpointConfigurationInfo().setWsdlDefinitionURL(wsdlURL);
+ }
+ catch (Exception e)
+ {
+ registry.deactivateConsumerWith(getId());
+ beanContext.createErrorMessageFrom("wsdl", e);
+ }
+ }
+
+ public boolean isActive()
+ {
+ return consumer.isActive();
+ }
+
+ public boolean isRegistered()
+ {
+ return getProducerInfo().isRegistered();
+ }
+
+ public boolean isRegistrationRequired()
+ {
+ return getProducerInfo().isRegistrationRequired();
+ }
+
+ public boolean isRegistrationCheckNeeded()
+ {
+ ProducerInfo info = getProducerInfo();
+ if (info.isRefreshNeeded(true))
+ {
+ RegistrationInfo regInfo = info.getRegistrationInfo();
+ if (regInfo == null)
+ {
+ return true;
+ }
+ else
+ {
+ Boolean consistent = regInfo.isConsistentWithProducerExpectations();
+ return consistent == null || !consistent.booleanValue();
+ }
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ public boolean isRegistrationModified()
+ {
+ return getProducerInfo().isModifyRegistrationRequired();
+ }
+
+ public boolean isRegistrationLocallyModified()
+ {
+ return isRegistered() && registrationLocallyModified;
+ }
+
+ public boolean isRegistrationChecked()
+ {
+ return getProducerInfo().isRegistrationChecked();
+ }
+
+ public boolean isRegistrationValid()
+ {
+ if (isRegistrationChecked())
+ {
+ return
getProducerInfo().getRegistrationInfo().isRegistrationValid().booleanValue();
+ }
+ throw new IllegalStateException("Need to check the registration before
determining if it's valid!");
+ }
+
+ public ProducerInfo getProducerInfo()
+ {
+ return consumer.getProducerInfo();
+ }
+
+ public boolean isLocalInfoPresent()
+ {
+ return getProducerInfo().hasLocalRegistrationInfo();
+ }
+
+ public boolean isRegistrationPropertiesEmpty()
+ {
+ RegistrationInfo regInfo = getProducerInfo().getRegistrationInfo();
+ return regInfo == null || regInfo.isRegistrationPropertiesEmpty();
+ }
+
+ public boolean isExpectedRegistrationPropertiesEmpty()
+ {
+ RegistrationInfo info = getExpectedRegistrationInfo();
+ if (info != null)
+ {
+ return info.isRegistrationPropertiesEmpty();
+ }
+ else
+ {
+ return true;
+ }
+ }
+
+ private RegistrationInfo getExpectedRegistrationInfo()
+ {
+ if (expectedRegistrationInfo == null)
+ {
+ expectedRegistrationInfo =
beanContext.getFromSession(ConsumerManagerBean.EXPECTED_REG_INFO_KEY,
RegistrationInfo.class);
+ }
+
+ return expectedRegistrationInfo;
+ }
+
+ public List<RegistrationProperty> getRegistrationProperties()
+ {
+ return getSortedProperties(getProducerInfo().getRegistrationInfo());
+ }
+
+ public List<RegistrationProperty> getExpectedRegistrationProperties()
+ {
+ return getSortedProperties(getExpectedRegistrationInfo());
+ }
+
+ private List<RegistrationProperty> getSortedProperties(RegistrationInfo
registrationInfo)
+ {
+ if (registrationInfo != null)
+ {
+ LinkedList<RegistrationProperty> list = new
LinkedList<RegistrationProperty>(registrationInfo.getRegistrationProperties().values());
+ Collections.sort(list);
+ return list;
+ }
+ else
+ {
+ return Collections.emptyList();
+ }
+ }
+
+ // Actions
+
+ public String update()
+ {
+ return internalUpdate(true);
+ }
+
+ private String internalUpdate(boolean showMessage)
+ {
+ if (consumer != null)
+ {
+ if (isModified())
+ {
+ try
+ {
+ // update values
+ ProducerInfo prodInfo = getProducerInfo();
+ EndpointConfigurationInfo endpointInfo =
prodInfo.getEndpointConfigurationInfo();
+ endpointInfo.setMarkupURL(markup);
+ endpointInfo.setServiceDescriptionURL(serviceDescription);
+ endpointInfo.setPortletManagementURL(portletManagement);
+ endpointInfo.setRegistrationURL(registration);
+ if (isUseWSDL())
+ {
+ internalSetWsdl(wsdl);
+ }
+
+ saveToRegistry(prodInfo);
+ }
+ catch (Exception e)
+ {
+ beanContext.createErrorMessageFrom(e);
+ return null;
+ }
+ }
+
+ if (showMessage)
+ {
+ beanContext.createInfoMessage(UPDATE_SUCCESS);
+ }
+ return ConsumerManagerBean.CONFIGURE_CONSUMER;
+ }
+
+ beanContext.createErrorMessage(CANNOT_UPDATE_CONSUMER);
+ return null;
+ }
+
+ private void saveToRegistry(ProducerInfo prodInfo)
+ {
+ registry.updateProducerInfo(prodInfo);
+ modified = false;
+ }
+
+ public String refreshConsumer()
+ {
+ if (consumer != null)
+ {
+ if (isModified())
+ {
+ String updateResult = internalUpdate(false);
+ if (updateResult == null)
+ {
+ return null;
+ }
+ }
+
+ // if the registration is locally modified, bypass the refresh as it will not
yield a proper result
+ if (!isRegistrationLocallyModified())
+ {
+ manager.refresh(consumer);
+ }
+ else
+ {
+ beanContext.createInfoMessage(ConsumerManagerBean.REFRESH_MODIFY);
+ }
+
+ return ConsumerManagerBean.CONFIGURE_CONSUMER;
+ }
+
+ beanContext.createErrorMessage(CANNOT_REFRESH_CONSUMER);
+ return null;
+ }
+
+ public String modifyRegistration()
+ {
+ if (consumer != null)
+ {
+ ProducerInfo info = getProducerInfo();
+ if (isModified())
+ {
+ // get updated registration info
+ RegistrationInfo newReg = getExpectedRegistrationInfo();
+
+ // make sure we save any modified registration properties
+ saveToRegistry(info);
+
+ // save old info in case something goes wrong
+ RegistrationInfo oldReg = getProducerInfo().getRegistrationInfo();
+
+ // check that we have the proper state
+ if (newReg == null)
+ {
+ // if we want to change an existing registration property (for example, to
upgrade service) then there are
+ // no expected information, we're just using the modified local
version
+ newReg = new RegistrationInfo(oldReg);
+
+ if (!isRegistrationLocallyModified())
+ {
+ IllegalStateException e =
+ new IllegalStateException("Registration not locally modified:
there should be expected registration from producer!");
+ log.debug(e);
+ throw e;
+ }
+ }
+
+ try
+ {
+ // todo: this should be done better cf regPropListener
+ newReg.setModifiedSinceLastRefresh(true); // mark as modified to force
refresh of RegistrationData
+ // attempt to modify the registration using new registration info
+ info.setRegistrationInfo(newReg);
+ info.modifyRegistration();
+ newReg.setModifiedSinceLastRefresh(false);
+
+ registrationLocallyModified = false;
+
+ beanContext.createInfoMessage(MODIFY_REG_SUCCESS);
+ }
+ catch (Exception e)
+ {
+ // restore old info
+ info.setRegistrationInfo(oldReg);
+
+ beanContext.createErrorMessageFrom(e);
+ return null;
+ }
+
+ refreshConsumer();
+ return null;
+ }
+ else
+ {
+ beanContext.createErrorMessage(INVALID_MODIFY);
+ }
+ }
+
+ beanContext.createErrorMessage(CANNOT_MODIFY_REG);
+ return null;
+ }
+
+ public String eraseLocalRegistration()
+ {
+ if (consumer != null)
+ {
+ getProducerInfo().eraseRegistrationInfo();
+ return ConsumerManagerBean.CONFIGURE_CONSUMER;
+ }
+
+ beanContext.createErrorMessage(CANNOT_ERASE_REG);
+ return null;
+ }
+
+ private Object modifyIfNeeded(Object oldValue, Object newValue, String target, boolean
checkURL)
+ {
+ if (isOldAndNewDifferent(oldValue, newValue))
+ {
+ if (checkURL)
+ {
+ try
+ {
+ // check that the new value is a valid URL
+ new URL(newValue.toString());
+ }
+ catch (MalformedURLException e)
+ {
+ beanContext.createTargetedErrorMessage(target, MALFORMED_URL, newValue,
e.getLocalizedMessage());
+ }
+ }
+
+ oldValue = newValue;
+ modified = true;
+ }
+
+ return oldValue;
+ }
+
+ // Listeners
+
+ public void useWSDLListener(ValueChangeEvent event)
+ {
+ useWSDL = (Boolean)modifyIfNeeded(useWSDL, event.getNewValue(), "wsdl",
false);
+
+ // bypass the rest of the life cycle and re-display page
+ FacesContext.getCurrentInstance().renderResponse();
+ }
+
+ // todo: valueChangeListener not needed anymore when events on RegistrationProperties
work
+ public void regPropListener(ValueChangeEvent event)
+ {
+ if (!registrationLocallyModified)
+ {
+ // only mark as locally modified if we had a previous value
+ Object oldValue = normalizeStringIfNeeded(event.getOldValue());
+ if (oldValue != null)
+ {
+ registrationLocallyModified = isOldAndNewDifferent(oldValue,
event.getNewValue());
+ }
+ }
+ }
+
+ protected String getObjectTypeName()
+ {
+ return CONSUMER_TYPE;
+ }
+
+ public boolean isAlreadyExisting(String objectName)
+ {
+ return registry.getConsumer(objectName) != null;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ConsumerManagerBean.java
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ConsumerManagerBean.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ConsumerManagerBean.java 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,379 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.jboss.portal.wsrp.admin.ui;
+
+import org.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.portlet.api.PortletInvokerException;
+import org.jboss.portal.wsrp.WSRPConsumer;
+import org.jboss.portal.wsrp.consumer.ConsumerRegistry;
+import org.jboss.portal.wsrp.consumer.RefreshResult;
+import org.jboss.portal.wsrp.consumer.RegistrationInfo;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12865 $
+ * @since 2.6
+ */
+public class ConsumerManagerBean extends ManagedBean
+{
+ private ConsumerRegistry registry;
+ private String selectedId;
+
+ private static final String NO_CONSUMER =
"bean_consumermanager_no_consumer";
+ private static final String INVALID_NEW_CONSUMER_NAME =
"bean_consumermanager_invalid_new_consumer_name";
+ private static final String REFRESH_BYPASSED =
"bean_consumermanager_refresh_bypassed";
+ private static final String REFRESH_SUCCESS =
"bean_consumermanager_refresh_success";
+ private static final String REFRESH_FAILURE =
"bean_consumermanager_refresh_failure";
+ private static final String REFRESH_EXCEPTION =
"bean_consumermanager_refresh_exception";
+ static final String CONFIGURE_CONSUMER = "configureConsumer";
+
+ static final String CONSUMERS = "consumers";
+ static final String EXPECTED_REG_INFO_KEY = "expectedRegistrationInfo";
+ static final String REFRESH_MODIFY = "bean_consumermanager_refresh_modify";
+ static final String REQUESTED_CONSUMER_ID = "id";
+ static final String SESSION_CONSUMER_ID = "consumerId";
+ private static final String MESSAGE_TARGET = "createConsumer:consumerName";
+
+ public ConsumerRegistry getRegistry()
+ {
+ return registry;
+ }
+
+ public void setRegistry(ConsumerRegistry registry)
+ {
+ this.registry = registry;
+ }
+
+ public void setSelectedId(String consumerId)
+ {
+ this.selectedId = consumerId;
+ }
+
+ public String getSelectedId()
+ {
+ return selectedId;
+ }
+
+ public WSRPConsumer getSelectedConsumer()
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(selectedId,
"consumer id", null);
+ return registry.getConsumer(selectedId);
+ }
+
+ public boolean isConsumersEmpty()
+ {
+ return registry.getConfiguredConsumers().isEmpty();
+ }
+
+ public List<WSRPConsumer> getConsumers()
+ {
+ return registry.getConfiguredConsumers();
+ }
+
+ public String reload()
+ {
+ registry.reloadConsumers();
+ return CONSUMERS;
+ }
+
+ public String activateConsumer()
+ {
+ if (refreshConsumerId() != null)
+ {
+ boolean activate =
Boolean.valueOf(beanContext.getParameter("activate"));
+ try
+ {
+ if (activate)
+ {
+ WSRPConsumer consumer = getSelectedConsumer();
+ if (consumer.isRefreshNeeded())
+ {
+ RefreshResult result = internalRefresh(consumer);
+ if (result != null && !result.hasIssues())
+ {
+ registry.activateConsumerWith(selectedId);
+ }
+ }
+ else
+ {
+ registry.activateConsumerWith(selectedId);
+ }
+ }
+ else
+ {
+ registry.deactivateConsumerWith(selectedId);
+ }
+ }
+ catch (Exception e)
+ {
+ beanContext.createErrorMessageFrom(e);
+ }
+
+ return listConsumers();
+ }
+ else
+ {
+ noSelectedConsumerError();
+ return listConsumers();
+ }
+ }
+
+ public String registerConsumer()
+ {
+ if (refreshConsumerId() != null)
+ {
+ boolean register =
Boolean.valueOf(beanContext.getParameter("register"));
+
+ try
+ {
+ registry.registerOrDeregisterConsumerWith(selectedId, register);
+ // show consumer configuration
+ setConsumerIdInSession(false);
+ return CONFIGURE_CONSUMER;
+ }
+ catch (Exception e)
+ {
+ beanContext.createErrorMessageFrom(e);
+ return null;
+ }
+ }
+ else
+ {
+ noSelectedConsumerError();
+ return null;
+ }
+ }
+
+ public String createConsumer()
+ {
+ selectedId = checkNameValidity(selectedId, MESSAGE_TARGET);
+ if (selectedId != null)
+ {
+ try
+ {
+ registry.createConsumer(selectedId, null);
+ setConsumerIdInSession(false);
+ return CONFIGURE_CONSUMER;
+ }
+ catch (Exception e)
+ {
+ beanContext.createErrorMessageFrom(MESSAGE_TARGET, e);
+ return null;
+ }
+ }
+
+ return null;
+ }
+
+ public String destroyConsumer()
+ {
+ if (refreshConsumerId() != null)
+ {
+ try
+ {
+ registry.destroyConsumer(selectedId);
+ return listConsumers();
+ }
+ catch (Exception e)
+ {
+ beanContext.createErrorMessageFrom(e);
+ return null;
+ }
+ }
+ else
+ {
+ noSelectedConsumerError();
+ return null;
+ }
+ }
+
+ public String configureConsumer()
+ {
+ if (refreshConsumerId() != null)
+ {
+ setConsumerIdInSession(false);
+ return CONFIGURE_CONSUMER;
+ }
+ else
+ {
+ noSelectedConsumerError();
+ return null;
+ }
+ }
+
+ public String refreshConsumer()
+ {
+ if (refreshConsumerId() != null)
+ {
+ internalRefresh(getSelectedConsumer());
+
+ return configureConsumer();
+ }
+ else
+ {
+ noSelectedConsumerError();
+ return null;
+ }
+ }
+
+ private RefreshResult internalRefresh(WSRPConsumer consumer)
+ {
+ try
+ {
+ RefreshResult result = consumer.refresh(true);
+
+ String statusMessage = getLocalizationKeyFrom(result);
+ if (result.hasIssues())
+ {
+ // create the expected registration info and make it available
+ RegistrationInfo expected = new
RegistrationInfo(consumer.getProducerInfo().getRegistrationInfo());
+ expected.refresh(result.getServiceDescription(), consumer.getProducerId(),
true, true, true);
+ setExpectedRegistrationInfo(expected);
+
+ beanContext.createErrorMessage(statusMessage);
+
+ // refresh had issues, we should deactivate this consumer
+ registry.deactivateConsumerWith(consumer.getProducerId());
+ }
+ else
+ {
+ // activate the consumer if it's supposed to be active
+ if (consumer.isActive())
+ {
+ registry.activateConsumerWith(consumer.getProducerId());
+ }
+ else
+ {
+ registry.deactivateConsumerWith(consumer.getProducerId());
+ }
+
+ beanContext.createInfoMessage(statusMessage);
+ }
+ return result;
+ }
+ catch (PortletInvokerException e)
+ {
+ beanContext.createErrorMessageFrom(e);
+ return null;
+ }
+ }
+
+ private String getLocalizationKeyFrom(RefreshResult result)
+ {
+ RefreshResult.Status status = result.getStatus();
+ if (RefreshResult.Status.BYPASSED.equals(status))
+ {
+ return REFRESH_BYPASSED;
+ }
+ else if (RefreshResult.Status.SUCCESS.equals(status))
+ {
+ return REFRESH_SUCCESS;
+ }
+ else if (RefreshResult.Status.FAILURE.equals(status))
+ {
+ // todo: extract information from registration result to be more precise
+ return REFRESH_FAILURE;
+ }
+ else if (RefreshResult.Status.MODIFY_REGISTRATION_REQUIRED.equals(status))
+ {
+ return REFRESH_MODIFY;
+ }
+ else
+ {
+ return REFRESH_EXCEPTION;
+ }
+ }
+
+ RefreshResult refresh(WSRPConsumer consumer)
+ {
+ RefreshResult result = internalRefresh(consumer);
+
+ selectedId = consumer.getProducerId();
+ setConsumerIdInSession(false);
+ return result;
+ }
+
+ private void setExpectedRegistrationInfo(RegistrationInfo expected)
+ {
+ Map<String, Object> sessionMap =
FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
+ sessionMap.put(EXPECTED_REG_INFO_KEY, expected);
+ }
+
+ public String listConsumers()
+ {
+ setConsumerIdInSession(true);
+ selectedId = null;
+ return CONSUMERS;
+ }
+
+ public void selectConsumer(ActionEvent actionEvent)
+ {
+ refreshConsumerId();
+ setConsumerIdInSession(false);
+ }
+
+ private String refreshConsumerId()
+ {
+ selectedId = beanContext.getParameter(REQUESTED_CONSUMER_ID);
+ return selectedId;
+ }
+
+ private void setConsumerIdInSession(boolean remove)
+ {
+ Map<String, Object> sessionMap = beanContext.getSessionMap();
+ String consumerBeanName = "consumer"; // must match ConsumerBean name in
faces-config.xml
+
+ // force recreation of ConsumerBean otherwise switching to the consumer view might
not show the proper consumer
+ sessionMap.remove(consumerBeanName);
+
+ if (!remove)
+ {
+ sessionMap.put(SESSION_CONSUMER_ID, selectedId);
+ }
+ else
+ {
+ sessionMap.remove(SESSION_CONSUMER_ID);
+ }
+ }
+
+ private void noSelectedConsumerError()
+ {
+ beanContext.createErrorMessage(NO_CONSUMER);
+ }
+
+ protected String getObjectTypeName()
+ {
+ return "CONSUMER_TYPE";
+ }
+
+ public boolean isAlreadyExisting(String objectName)
+ {
+ return registry.getConsumer(objectName) != null;
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/JSFBeanContext.java
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/JSFBeanContext.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/JSFBeanContext.java 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,132 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.jboss.portal.wsrp.admin.ui;
+
+import org.jboss.portal.common.util.ParameterValidation;
+
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIViewRoot;
+import javax.faces.context.FacesContext;
+import java.util.Locale;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 13413 $
+ * @since 2.6
+ */
+public class JSFBeanContext extends BeanContext
+{
+ public String getParameter(String key)
+ {
+ return getParameter(key, FacesContext.getCurrentInstance());
+ }
+
+ public static String getParameter(String key, FacesContext facesContext)
+ {
+ Map pmap = facesContext.getExternalContext().getRequestParameterMap();
+ return (String)pmap.get(key);
+ }
+
+ public Map<String, Object> getSessionMap()
+ {
+ return JSFBeanContext.getSessionMap(FacesContext.getCurrentInstance());
+ }
+
+ public static Map<String, Object> getSessionMap(FacesContext facesContext)
+ {
+ return facesContext.getExternalContext().getSessionMap();
+ }
+
+ protected void createMessage(String target, String message, Object severity)
+ {
+ outputMessage(target, message, severity);
+ }
+
+ public static void outputMessage(String target, String message, Object severity)
+ {
+ if (ParameterValidation.isNullOrEmpty(target))
+ {
+ target = STATUS;
+ }
+
+ FacesMessage.Severity jsfSeverity;
+ if (severity instanceof FacesMessage.Severity)
+ {
+ jsfSeverity = (FacesMessage.Severity)severity;
+ }
+ else
+ {
+ jsfSeverity = FacesMessage.SEVERITY_ERROR;
+ }
+
+ // Get the component id from the target
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ UIViewRoot viewRoot = facesContext.getViewRoot();
+ UIComponent component = viewRoot.findComponent(target);
+ if (component != null)
+ {
+ target = component.getClientId(facesContext);
+ }
+ else
+ {
+ // todo: do something better here
+ log.info("Couldn't resolve component target: " + target);
+ }
+
+ FacesMessage msg = new FacesMessage(jsfSeverity, message, message);
+ facesContext.addMessage(target, msg);
+ }
+
+ public static void outputLocalizedMessage(String target, String localizationKey,
Object severity, String resourceName, Object... params)
+ {
+ if (severity == null)
+ {
+ severity = FacesMessage.SEVERITY_ERROR;
+ }
+
+ outputMessage(target, getLocalizedMessage(localizationKey, getRequestLocale(),
resourceName, params), severity);
+ }
+
+ protected Object getErrorSeverity()
+ {
+ return FacesMessage.SEVERITY_ERROR;
+ }
+
+ protected Object getInfoSeverity()
+ {
+ return FacesMessage.SEVERITY_INFO;
+ }
+
+ protected Locale getLocale()
+ {
+ return getRequestLocale();
+ }
+
+ public static Locale getRequestLocale()
+ {
+ return FacesContext.getCurrentInstance().getExternalContext().getRequestLocale();
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/LocalizedStringConverter.java
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/LocalizedStringConverter.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/LocalizedStringConverter.java 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.jboss.portal.wsrp.admin.ui;
+
+import org.jboss.portal.wsrp.registration.LocalizedString;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 9153 $
+ * @since 2.6.3
+ */
+public class LocalizedStringConverter implements Converter
+{
+ public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String
s)
+ {
+ return (s == null || s.length() == 0) ? null : new LocalizedString(s);
+ }
+
+ public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object
o)
+ {
+ return o == null ? null : ((LocalizedString)o).getValue();
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ManagedBean.java
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ManagedBean.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ManagedBean.java 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,240 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.jboss.portal.wsrp.admin.ui;
+
+import org.apache.log4j.Logger;
+import org.jboss.portal.common.util.ParameterValidation;
+
+import java.util.regex.Pattern;
+
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 13413 $
+ * @since 2.6
+ */
+public abstract class ManagedBean
+{
+ protected Logger log = Logger.getLogger(getClass());
+
+ protected BeanContext beanContext;
+ public static final String INVALID_NAME = "INVALID_NAME_ERROR";
+ public static final String INVALID_PATH = "INVALID_PATH_ERROR";
+ public static final String DUPLICATE = "DUPLICATE_ERROR";
+
+ public static interface PropertyValidator
+ {
+ boolean checkForDuplicates();
+
+ String getObjectTypeName();
+
+ boolean isAlreadyExisting(String propertyName);
+
+ String doSimpleChecks(String name);
+
+ ParameterValidation.ValidationErrorHandler getValidationErrorHandler(String name,
String targetForErrorMessage);
+
+ Pattern getValidationPattern();
+ }
+
+ private PropertyValidator validator = new DefaultPropertyValidator();
+
+ protected void setValidator(PropertyValidator validator)
+ {
+ this.validator = validator;
+ }
+
+ public void setBeanContext(BeanContext beanContext)
+ {
+ this.beanContext = beanContext;
+ }
+
+ public String checkNameValidity(String name, String targetForErrorMessage)
+ {
+ return checkNameValidity(name, targetForErrorMessage, validator);
+ }
+
+ public String checkNameValidity(String name, String targetForErrorMessage,
PropertyValidator validator)
+ {
+ ParameterValidation.throwIllegalArgExceptionIfNull(validator,
"PropertyValidator");
+
+ String objectTypeName = validator.getObjectTypeName();
+ if (ParameterValidation.isNullOrEmpty(name))
+ {
+ beanContext.createTargetedErrorMessage(targetForErrorMessage, INVALID_NAME,
name, getLocalizedType(objectTypeName));
+ return null;
+ }
+ else
+ {
+ String original = name;
+ name = validator.doSimpleChecks(name);
+
+ // we got an invalid name after simple checks, fail!
+ if (name == null)
+ {
+ beanContext.createTargetedErrorMessage(targetForErrorMessage, INVALID_NAME,
original, getLocalizedType(objectTypeName));
+ return null;
+ }
+
+ // Trim name
+ name = name.trim();
+
+ // "sanitize" name: if it's invalid, return null and output
message
+ name = ParameterValidation.sanitizeFromPatternWithHandler(name,
validator.getValidationPattern(),
+ validator.getValidationErrorHandler(name, targetForErrorMessage));
+
+ // we got an invalid name, fail!
+ if (name == null)
+ {
+ return null;
+ }
+
+ // Check for duplicate
+ if (validator.checkForDuplicates() &&
validator.isAlreadyExisting(name))
+ {
+ getDuplicateErrorMessage(name, targetForErrorMessage, objectTypeName);
+ return null;
+ }
+
+ return name;
+ }
+ }
+
+ protected void getDuplicateErrorMessage(String name, String targetForErrorMessage,
String objectTypeName)
+ {
+ beanContext.createTargetedErrorMessage(targetForErrorMessage, DUPLICATE, name,
getLocalizedType(objectTypeName));
+ }
+
+ private String getLocalizedType(String objectTypeName)
+ {
+ return beanContext.getMessageFromBundle(objectTypeName);
+ }
+
+ protected abstract String getObjectTypeName();
+
+ public abstract boolean isAlreadyExisting(String objectName);
+
+ /**
+ * @param oldValue
+ * @param newValue
+ * @return
+ * @todo public for test cases
+ */
+ public boolean isOldAndNewDifferent(Object oldValue, Object newValue)
+ {
+ oldValue = normalizeStringIfNeeded(oldValue);
+ newValue = normalizeStringIfNeeded(newValue);
+
+ return (oldValue != null && !oldValue.equals(newValue)) || (oldValue ==
null && newValue != null);
+ }
+
+ /**
+ * Normalizes String by considering empty String as null as JSF would give either and
trim non-null Strings.
+ *
+ * @param value
+ * @return
+ * @todo public for test cases
+ */
+ public Object normalizeStringIfNeeded(Object value)
+ {
+ if (value == null)
+ {
+ return null;
+ }
+ else
+ {
+ if (value instanceof String)
+ {
+ String stringValue = (String)value;
+ return stringValue.length() == 0 ? null : stringValue.trim();
+ }
+ else
+ {
+ return value;
+ }
+ }
+ }
+
+ protected class MessageValidationHandler extends
ParameterValidation.ValidationErrorHandler
+ {
+ private String targetForErrorMessage;
+ private String validatedName;
+ private String objectTypeName;
+ private String errorMessageKey;
+
+ public MessageValidationHandler(String defaultValue, String targetForErrorMessage,
String validatedName, String objectTypeName)
+ {
+ this(defaultValue, targetForErrorMessage, validatedName, objectTypeName,
INVALID_NAME);
+ }
+
+ public MessageValidationHandler(String defaultValue, String targetForErrorMessage,
String validatedName, String objectTypeName, String errorMessageKey)
+ {
+ super(defaultValue);
+ this.targetForErrorMessage = targetForErrorMessage;
+ this.validatedName = validatedName;
+ this.objectTypeName = objectTypeName;
+ this.errorMessageKey = errorMessageKey;
+ }
+
+ protected String internalValidationErrorHandling(String s)
+ {
+ beanContext.createTargetedErrorMessage(targetForErrorMessage, errorMessageKey,
validatedName, getLocalizedType(objectTypeName));
+ return null;
+ }
+ }
+
+ protected class DefaultPropertyValidator implements PropertyValidator
+ {
+ public boolean checkForDuplicates()
+ {
+ return true;
+ }
+
+ public String getObjectTypeName()
+ {
+ return ManagedBean.this.getObjectTypeName();
+ }
+
+ public boolean isAlreadyExisting(String propertyName)
+ {
+ return ManagedBean.this.isAlreadyExisting(propertyName);
+ }
+
+ public String doSimpleChecks(String name)
+ {
+ // if name contains . or /, it's invalid for a Portal object
+ return (name.indexOf('.') != -1 || name.indexOf('/') != -1) ?
null : name;
+ }
+
+ public ParameterValidation.ValidationErrorHandler getValidationErrorHandler(String
name, String targetForErrorMessage)
+ {
+ return new MessageValidationHandler(null, targetForErrorMessage, name,
getObjectTypeName());
+ }
+
+ public Pattern getValidationPattern()
+ {
+ return ParameterValidation.XSS_CHECK;
+ }
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ProducerBean.java
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ProducerBean.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/ProducerBean.java 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,238 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.jboss.portal.wsrp.admin.ui;
+
+import org.jboss.portal.registration.RegistrationPolicy;
+import org.jboss.portal.registration.policies.DefaultRegistrationPolicy;
+import org.jboss.portal.wsrp.producer.config.ProducerConfiguration;
+import org.jboss.portal.wsrp.producer.config.ProducerConfigurationService;
+import org.jboss.portal.wsrp.producer.config.ProducerRegistrationRequirements;
+import org.jboss.portal.wsrp.registration.RegistrationPropertyDescription;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ValueChangeEvent;
+import javax.faces.model.SelectItem;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12854 $
+ * @since 2.6.3
+ */
+public class ProducerBean extends ManagedBean
+{
+ private ProducerConfigurationService configurationService;
+ private String policyClassName;
+ private String validatorClassName;
+ private static final String PROPERTY = "property";
+ private static final String PRODUCER = "producer";
+ private String selectedProp;
+
+ public ProducerConfigurationService getConfigurationService()
+ {
+ return configurationService;
+ }
+
+ public void setConfigurationService(ProducerConfigurationService
configurationService)
+ {
+ this.configurationService = configurationService;
+ }
+
+ public ProducerConfiguration getConfiguration()
+ {
+ return configurationService.getConfiguration();
+ }
+
+ public boolean isRegistrationRequiredForFullDescription()
+ {
+ return getRegRequirements().isRegistrationRequiredForFullDescription();
+ }
+
+ private ProducerRegistrationRequirements getRegRequirements()
+ {
+ return getConfiguration().getRegistrationRequirements();
+ }
+
+ public void setRegistrationRequiredForFullDescription(boolean
requireRegForFullDescription)
+ {
+
getRegRequirements().setRegistrationRequiredForFullDescription(requireRegForFullDescription);
+ }
+
+ public boolean isRegistrationRequired()
+ {
+ return getRegRequirements().isRegistrationRequired();
+ }
+
+ public void setRegistrationRequired(boolean requireRegistration)
+ {
+ getRegRequirements().setRegistrationRequired(requireRegistration);
+ }
+
+ public String getRegistrationPolicyClassName()
+ {
+ RegistrationPolicy policy = getRegRequirements().getPolicy();
+ if (policy != null)
+ {
+ return policy.getClass().getName();
+ }
+ else
+ {
+ return
beanContext.getMessageFromBundle("bean_producer_regpolicy_unset");
+ }
+ }
+
+ public void setRegistrationPolicyClassName(String className)
+ {
+ policyClassName = className;
+ }
+
+ public boolean isDefaultRegistrationPolicy()
+ {
+ return
ProducerRegistrationRequirements.DEFAULT_POLICY_CLASS_NAME.equals(getRegistrationPolicyClassName());
+ }
+
+ public String getValidatorClassName()
+ {
+ if (isDefaultRegistrationPolicy())
+ {
+ return
((DefaultRegistrationPolicy)getRegRequirements().getPolicy()).getValidator().getClass().getName();
+ }
+ throw new IllegalStateException("getValidatorClassName shouldn't be called
if we're not using the default registration");
+ }
+
+ public void setValidatorClassName(String className)
+ {
+ validatorClassName = className;
+ }
+
+ public boolean isStrictMode()
+ {
+ return getConfiguration().isUsingStrictMode();
+ }
+
+ public void setStrictMode(boolean strictMode)
+ {
+ getConfiguration().setUsingStrictMode(strictMode);
+ }
+
+ public List<RegistrationPropertyDescription> getRegistrationProperties()
+ {
+ Map descriptions = getRegRequirements().getRegistrationProperties();
+ Comparator<RegistrationPropertyDescription> descComparator = new
Comparator<RegistrationPropertyDescription>()
+ {
+ public int compare(RegistrationPropertyDescription o1,
RegistrationPropertyDescription o2)
+ {
+ return o1.getName().toString().compareTo(o2.getName().toString());
+ }
+ };
+
+ List<RegistrationPropertyDescription> result = new
ArrayList<RegistrationPropertyDescription>(descriptions.values());
+ Collections.sort(result, descComparator);
+ return result;
+ }
+
+ public List<SelectItem> getSupportedPropertyTypes()
+ {
+ return Collections.singletonList(new SelectItem("xsd:string"));
+ }
+
+ public String getSelectedPropertyName()
+ {
+ return selectedProp;
+ }
+
+ public String save()
+ {
+ try
+ {
+ if
(!ProducerRegistrationRequirements.DEFAULT_POLICY_CLASS_NAME.equals(policyClassName))
+ {
+ getRegRequirements().reloadPolicyFrom(policyClassName, validatorClassName);
+ }
+ configurationService.saveConfiguration();
+ beanContext.createInfoMessage("bean_producer_save_success");
+ }
+ catch (Exception e)
+ {
+ log.debug(e);
+ beanContext.createErrorMessage("bean_producer_cannot_save",
e.getLocalizedMessage());
+ }
+ return PRODUCER;
+ }
+
+ public String reloadConfiguration()
+ {
+ try
+ {
+ configurationService.reloadConfiguration();
+ beanContext.createInfoMessage("bean_producer_cancel_success");
+ }
+ catch (Exception e)
+ {
+ log.debug(e);
+ beanContext.createErrorMessage("bean_producer_cannot_reload",
e.getLocalizedMessage());
+ }
+ return PRODUCER;
+ }
+
+ public String addRegistrationProperty()
+ {
+ getRegRequirements().addEmptyRegistrationProperty(PROPERTY +
System.currentTimeMillis());
+ return PRODUCER;
+ }
+
+ public String deleteRegistrationProperty()
+ {
+ getRegRequirements().removeRegistrationProperty(selectedProp);
+ return PRODUCER;
+ }
+
+ public void requireRegistrationListener(ValueChangeEvent event)
+ {
+ setRegistrationRequired((Boolean)event.getNewValue());
+
+ // bypass the rest of the life cycle and re-display page
+ FacesContext.getCurrentInstance().renderResponse();
+ }
+
+ public void selectProperty(ActionEvent event)
+ {
+ selectedProp = beanContext.getParameter("propName");
+ }
+
+ protected String getObjectTypeName()
+ {
+ return null; // default implementation as not used
+ }
+
+ public boolean isAlreadyExisting(String objectName)
+ {
+ return false; // default implementation as not used
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/RedirectOnNoConsumerNavigationHandler.java
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/RedirectOnNoConsumerNavigationHandler.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/RedirectOnNoConsumerNavigationHandler.java 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,67 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.jboss.portal.wsrp.admin.ui;
+
+import javax.faces.application.NavigationHandler;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public class RedirectOnNoConsumerNavigationHandler extends NavigationHandler
+{
+ private NavigationHandler base;
+ private static final String CONFIGURE_CONSUMER = "configureConsumer";
+ private static final String CONSUMERS = "consumers";
+
+ public RedirectOnNoConsumerNavigationHandler(NavigationHandler base)
+ {
+ this.base = base;
+ }
+
+ public void handleNavigation(FacesContext facesContext, String fromAction, String
outcome)
+ {
+ // only check for need to redirect when we're asking for consumer details
+ if (CONFIGURE_CONSUMER.equals(outcome))
+ {
+ // check if we have a currently selected consumer in the request...
+ String currentConsumer =
JSFBeanContext.getParameter(ConsumerManagerBean.REQUESTED_CONSUMER_ID, facesContext);
+
+ // if not, check the session...
+ if (currentConsumer == null)
+ {
+ currentConsumer =
(String)JSFBeanContext.getSessionMap(facesContext).get(ConsumerManagerBean.SESSION_CONSUMER_ID);
+
+ // if we still don't have consumer id, redirect to consumer list view
+ if (currentConsumer == null)
+ {
+ outcome = CONSUMERS;
+ }
+ }
+ }
+
+ base.handleNavigation(facesContext, fromAction, outcome);
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/StatusConverter.java
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/StatusConverter.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/java/org/jboss/portal/wsrp/admin/ui/StatusConverter.java 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,58 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.jboss.portal.wsrp.admin.ui;
+
+import org.jboss.portal.wsrp.consumer.RegistrationProperty;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+import java.util.Locale;
+
+/**
+ * Convert the status key to a localized message.
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision$
+ */
+public class StatusConverter implements Converter
+{
+ public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String
s)
+ {
+ throw new UnsupportedOperationException("Should not be used!");
+ }
+
+ public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object
o)
+ {
+ if (o == null)
+ {
+ return null;
+ }
+
+ Locale locale = facesContext.getExternalContext().getRequestLocale();
+ RegistrationProperty.Status status = (RegistrationProperty.Status)o;
+ String key = status.getLocalizationKey();
+ return BeanContext.getLocalizedMessage(key, locale);
+ }
+}
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource.properties
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource.properties
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource.properties 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,182 @@
+#
+# JBoss, a division of Red Hat
+# Copyright 2009, Red Hat Middleware, LLC, and individual
+# contributors as indicated by the @authors tag. See the
+# copyright.txt in the distribution for a full listing of
+# individual contributors.
+#
+# This is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation; either version 2.1 of
+# the License, or (at your option) any later version.
+#
+# This software is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this software; if not, write to the Free
+# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+#
+
+## WSRP GUI localization
+
+# JBoss Portal display information
+org.jboss.portal.object.name.WSRPConfigurationPortlet = WSRP Configuration
+org.jboss.portal.instance.name.WSRPConfigurationPortletInstance = WSRP Configuration
Portlet
+
+# Tabs
+nav_tabs_consumers = Consumers Configuration
+nav_tabs_producer_config = Producer Configuration
+nav_tabs_producer_management = Producer Management
+
+# Object path in consumer template
+path_consumers_root = Consumers
+path_consumers_consumer = Consumer ''{0}'' configuration
+path_consumers_active = active
+path_consumers_inactive = inactive
+path_consumers_refreshNeeded = (refresh needed)
+
+# Confirm deletion of a consumer screen
+confirm_delete_consumer_title = Delete ''{0}'' consumer?
+confirm_delete_consumer_message = You are about to delete the ''{0}''
consumer!
+confirm_detete_consumer_proceed = Are you sure you want to proceed?
+confirm_delete_consumer_submit = Delete consumer
+confirm_delete_consumer_cancel = Cancel
+
+# Confirm deletion of local registration information screen
+confirm_delete_registration_title = Delete local registration for ''{0}''
consumer?
+confirm_delete_registration_message = You are about to delete the local registration
information for the ''{0}'' consumer! \n\
+This is only needed if this consumer had previously registered with the remote producer
and this producer \n\
+has been modified to not require registration anymore. \n\
+Only erase local registration information if you experience errors with the producer due
to this \n\
+particular situation. Erasing local registration when not required might lead to
inability to work with \n\
+this producer anymore.
+confirm_delete_registration_proceed = Are you sure you want to proceed?
+confirm_delete_registration_submit = Erase local registration
+confirm_delete_registration_cancel = Cancel
+
+# Consumers screen
+consumers_title = Manage Consumers
+consumers_create_title = Create a consumer named:
+consumers_create_submit = Create Consumer
+
+# Consumers list
+consumers_table_column_consumer = Consumer
+consumers_table_column_consumer_status = status:
+consumers_table_column_actions = Actions
+consumers_table_action_configure = Configure
+consumers_table_action_refresh = Refresh
+consumers_table_action_activate = Activate
+consumers_table_action_deactivate = Deactivate
+consumers_table_action_register = Register
+consumers_table_action_deregister = Deregister
+consumers_table_action_delete = Delete
+consumers_table_reload = Reload consumers
+
+# Consumer editing screen
+edit_consumer_producer = Producer id:
+edit_consumer_cache = Cache expiration:
+edit_consumer_cache_seconds = (seconds before expiration)
+edit_consumer_endpoint = Endpoint configuration:
+edit_consumer_endpoint_wsdl = Use WSDL?
+edit_consumer_endpoint_sd = Service Description URL:
+edit_consumer_endpoint_m = Markup URL:
+edit_consumer_endpoint_r = Registration URL:
+edit_consumer_endpoint_pm = Portlet Management URL:
+edit_consumer_registration = Registration information:
+edit_consumer_registration_current = Current registration information:
+edit_consumer_prop_name = Name
+edit_consumer_prop_desc = Description
+edit_consumer_prop_value = Value
+edit_consumer_registration_update_props = Update properties
+edit_consumer_registration_no_props = Registration is indicated as required without
registration properties.
+edit_consumer_registration_modify = Modify registration
+edit_consumer_registration_modify_title = Modify the registration held with this
producer
+edit_consumer_registration_expected = Expected registration information:
+edit_consumer_no_registration = Producer doesn't require registration.
+edit_consumer_registration_context = Registration context:
+edit_consumer_registration_context_handle = Handle:
+edit_consumer_registration_context_erase = Erase local registration
+edit_consumer_registration_context_erase_title = Erase local registration information
(potentially dangerous!)
+edit_consumer_refresh = Refresh & Save
+edit_consumer_refresh_title = Save changes and refresh information from producer
+edit_consumer_cancel = Cancel
+
+# Confirm registration property deletion screen
+confirm_delete_reg_property_title = Delete ''{0}'' registration property
description?
+confirm_delete_reg_property_message = You are about to delete the ''{0}''
registration property description! \n\
+This will trigger invalidation of consumer registrations which will have to modify their
registration \n\
+information.
+confirm_delete_reg_property_proceed = Are you sure you want to proceed?
+confirm_delete_reg_property_submit = Delete property
+confirm_delete_reg_property_cancel = Cancel
+
+# Producer configuration screen
+producer_config_title = Producer configuration
+producer_config_sd_requires_reg = Access to full service description requires consumers
to be registered.
+producer_config_strict = Use strict WSRP compliance.
+producer_config_requires_reg = Requires registration. Modifying this information will
trigger invalidation of consumer registrations.
+producer_config_reg_policy = Registration policy class name:
+producer_config_reg_prop_validator = Registration property validator class name:
+producer_config_reg_props = Registration properties
+producer_config_reg_prop_name = Name
+producer_config_reg_prop_type = Type
+producer_config_reg_prop_label = Label
+producer_config_reg_prop_hint = Hint
+producer_config_reg_prop_action = Action
+producer_config_reg_prop_remove = Remove
+producer_config_no_reg_props = No specified required registration properties.
+producer_config_add_reg_prop = Add property
+producer_config_save = Save
+producer_config_cancel = Cancel
+
+## Localized messages in JSF beans
+
+bean_support_unexpected_error = An unexpected error occured:
+bean_support_cause = Cause:
+CONSUMER_TYPE = Consumer
+
+# ConsumerBean
+bean_consumer_cannot_find_consumer = Couldn''t find consumer
''{0}''!
+bean_consumer_cannot_update_consumer = Couldn't update consumer!
+bean_consumer_cannot_refresh_consumer = Couldn't refresh consumer!
+bean_consumer_modify_reg_success = Successfully modified registration!
+bean_consumer_invalid_modify = Invalid attempt to modify a registration that hasn't
been locally modified!
+bean_consumer_cannot_modify_reg = Couldn't modify registration!
+bean_consumer_cannot_erase_reg = Couldn't erase local registration!
+bean_consumer_malformed_url = ''{0}'' is not a valid URL: {1}
+bean_consumer_update_success = Successfully updated consumer!
+
+# ConsumerManagerBean
+bean_consumermanager_invalid_new_consumer_name = Need a non-null, non-empty name for the
new consumer!
+bean_consumermanager_no_consumer = No consumer was selected!
+bean_consumermanager_refresh_bypassed = Refresh was not necessary.
+bean_consumermanager_refresh_success = Refresh was successful.
+bean_consumermanager_refresh_failure = Refresh failed (probably because the registration
information was not valid).
+bean_consumermanager_refresh_exception = An unexpected error occurred.
+bean_consumermanager_refresh_modify = Either local or remote information has been
changed, you should modify your registration with the remote producer.\n\
+The new local information will be saved but your current registration data will be used
until you successfully \
+modify the registration with the producer.
+
+# ProducerBean
+bean_producer_regpolicy_unset = RegistrationPolicy unset
+bean_producer_cannot_save = Couldn''t save producer configuration. Cause: {0}
+bean_producer_cannot_reload = Couldn''t reload producer configuration. Cause:
{0}
+bean_producer_save_success = Producer configuration successfully saved!
+bean_producer_cancel_success = All modifications made to the producer configuration have
been cancelled!
+
+## RegistrationProperty Status localization
+registration_property_status_inexistent = Inexistent on producer
+registration_property_status_missing = Missing
+registration_property_status_missing_value = Missing value
+registration_property_status_unchecked_value = Undetermined status
+registration_property_status_invalid_value = Invalid value
+registration_property_status_valid = Valid
+
+org.jboss.portal.object.name.admin.WSRP=WSRP
+
+INVALID_NAME_ERROR=''{0}'' is an invalid {1} name: Cannot be null, empty
or contain '/', '.', '\\', '<', '>',
'(', ')', '=' or '%5c'
+DUPLICATE_ERROR=A {1} named ''{0}'' already exists!
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_fr.properties
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_fr.properties
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_fr.properties 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,151 @@
+#
+# JBoss, a division of Red Hat
+# Copyright 2009, Red Hat Middleware, LLC, and individual
+# contributors as indicated by the @authors tag. See the
+# copyright.txt in the distribution for a full listing of
+# individual contributors.
+#
+# This is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation; either version 2.1 of
+# the License, or (at your option) any later version.
+#
+# This software is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this software; if not, write to the Free
+# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+#
+
+# JBoss Portal display information
+org.jboss.portal.object.name.WSRPConfigurationPortlet = Configuration WSRP
+org.jboss.portal.instance.name.WSRPConfigurationPortletInstance = Portlet de
Configuration pour WSRP
+
+nav_tabs_consumers = Configuration Consommateurs
+nav_tabs_producer_config = Configuration Producteur
+nav_tabs_producer_management = Gestion Producteur
+
+path_consumers_root = Consommateurs
+path_consumers_consumer = Configuration du consommateur ''{0}''
+path_consumers_active = actif
+path_consumers_inactive = inactif
+path_consumers_refreshNeeded = (rafra\u00eechissement requis)
+confirm_delete_consumer_cancel=Annuler
+confirm_delete_consumer_message=Vous \u00eates sur le point d''effacer le
concommateur ''{0}''!
+confirm_delete_consumer_submit=Effacer consommateur
+confirm_delete_consumer_title=Voulez-vous r\u00e9ellement effacer le consommateur
''{0}''?
+confirm_detete_consumer_proceed=\u00cates-vous certains de vouloir proc\u00e9der?
+confirm_delete_registration_cancel=Annuler
+confirm_delete_registration_message=Vous \u00eates sur le point d''effacer les
informations locales d''enregistrement pour le consommateur
''{0}''! \n\
+Ceci n''est uniquement requis dans le cas o\u00f9 ce consommateur se serait
enregistr\u00e9 aupr\u00e8s d''un producteur distant \n\
+qui aurait ensuite \u00e9t\u00e9 modifi\u00e9 pour ne plus requerir
d''enregistrement. \n\
+N''effacez les informations locales d''enregistrement que si vous
rencontrez des probl\u00e8mes, sp\u00e9cifiques \u00e0 cette \n\
+situation, avec le producteur distant. Effacer les donn\u00e9es d''enregistrement
quand ce n''est pas requis peut entra\u00eener \n\
+l''incapacit\u00e9 future d''acc\u00e9der \u00e0 ce producteur.
+confirm_delete_registration_proceed=\u00cates-vous certains de vouloir proc\u00e9der?
+confirm_delete_registration_submit=Effacer enregistrement
+confirm_delete_registration_title=Voulez-vous r\u00e9ellement effacer
l''enregistrement du consommateur ''{0}''?
+consumers_create_submit=Cr\u00e9er Consommateur
+consumers_create_title=Cr\u00e9er un consommateur nomm\u00e9:
+consumers_table_action_activate=Activer
+consumers_table_action_configure=Configurer
+consumers_table_action_deactivate=D\u00e9sactiver
+consumers_table_action_delete=Effacer
+consumers_table_action_deregister=D\u00e9senregistrer
+consumers_table_action_refresh=Rafra\u00eechir
+consumers_table_action_register=Enregister
+consumers_table_column_actions=Actions
+consumers_table_column_consumer=Consommateur
+consumers_table_column_consumer_status=status:
+consumers_title=Gestion des Consommateurs
+edit_consumer_cache=Expiration du cache:
+edit_consumer_cache_seconds=(secondes avant expiration)
+edit_consumer_cancel=Annuler
+edit_consumer_endpoint=Configuration du endpoint:
+edit_consumer_endpoint_m=URL Markup:
+edit_consumer_endpoint_pm=URL Portlet Management:
+edit_consumer_endpoint_r=URL Registration:
+edit_consumer_endpoint_sd=URL Service Description:
+edit_consumer_endpoint_wsdl=Utiliser WSDL?
+edit_consumer_no_registration=Enregistrement non-requis par le producteur.
+edit_consumer_producer=Identifiant du producteur:
+edit_consumer_prop_desc=Description
+edit_consumer_prop_name=Nom
+edit_consumer_prop_value=Valeur
+edit_consumer_refresh=Rafra\u00eechir & Sauvegarder
+edit_consumer_refresh_title=Sauvegarde des changements et rafra\u00eechissement \u00e0
partir du producteur
+edit_consumer_registration=Information d'enregistrement:
+edit_consumer_registration_context=Contexte d'enregistrement:
+edit_consumer_registration_context_erase=Effacer enregistrement local
+edit_consumer_registration_context_erase_title=Effacer l'information locale
d'enregistrement (potentiellement dangereux!)
+edit_consumer_registration_context_handle=Identifiant:
+edit_consumer_registration_current=Information actuelle d'enregistrement:
+edit_consumer_registration_expected=Information attendue d'enregistrement:
+edit_consumer_registration_modify=Modifier l'enregistrement
+edit_consumer_registration_modify_title=Modifier l'enregistrement avec ce producteur
+edit_consumer_registration_no_props=Enregistrement indiqu\u00e9 sans besoin de
propri\u00e9t\u00e9s d'enregistrement
+edit_consumer_registration_update_props=Mettre les propri\u00e9t\u00e9s \u00e0 jour
+bean_consumer_cannot_erase_reg=L'effacement de l'enregistrement n'a pu
\u00eatre effectu\u00e9!
+bean_consumer_cannot_find_consumer=Le consommateur ''{0}'' n''a
pu \u00eatre trouv\u00e9!
+bean_consumer_cannot_modify_reg=La modification de l'enregistrement n'a pu
\u00eatre effectu\u00e9e!
+bean_consumer_cannot_refresh_consumer=Le rafra\u00eechissement du consommateur n'a pu
\u00eatre effectu\u00e9!
+bean_consumer_cannot_update_consumer=La mise \u00e0 jour du consommateur n'a pu
\u00eatre effectu\u00e9e!
+bean_consumer_invalid_modify=Tentative invalide de modification d'enregistrement sans
modifications locales.
+bean_consumer_malformed_url=''{0}'' n''est pas une URL valide:
{1}
+bean_consumer_modify_reg_success=Enregistrement modifi\u00e9!
+bean_support_cause=Cause:
+bean_support_unexpected_error=Une erreur inattendue s'est produite:
+bean_consumermanager_invalid_new_consumer_name=Un consommateur requiert un nom non-nul et
non-vide!
+bean_consumermanager_no_consumer=Aucun consommateur n'a \u00e9t\u00e9
s\u00e9lectionn\u00e9!
+bean_producer_cannot_reload=Le rechargement de la configuration du producteur a
\u00e9chou\u00e9. Cause: {0}
+bean_producer_cannot_save=La sauvegarde de la configuration du producteur a
\u00e9chou\u00e9. Cause: {0}
+bean_producer_regpolicy_unset=RegistrationPolicy non sp\u00e9cifi\u00e9e
+confirm_delete_reg_property_cancel=Annuler
+confirm_delete_reg_property_message=Vous \u00eates sur le point d''effacer la
description de la propri\u00e9t\u00e9 d''enregistrement ''{0}''!
\n\
+Cel\u00e0 va entra\u00eener l''invalidation des enregistrements des consommateurs
qui devront alors modifier \n\
+leur information d'enregistrement.
+confirm_delete_reg_property_submit=Effacer la propri\u00e9t\u00e9
+confirm_delete_reg_property_title=Voulez-vous r\u00e9ellement effacer la description de
la propri\u00e9t\u00e9 d'enregistrement ''{0}''?
+confirm_delete_reg_property_proceed=\u00cates-vous certains de vouloir proc\u00e9der?
+producer_config_add_reg_prop=Ajouter une propri\u00e9t\u00e9
+producer_config_cancel=Annuler
+producer_config_no_reg_props=Aucune propri\u00e9t\u00e9 d'enregistrement
sp\u00e9cifi\u00e9e.
+producer_config_reg_policy=Nom de la classe de la politique d'enregistrement:
+producer_config_reg_prop_action=Action
+producer_config_reg_prop_hint=Indice
+producer_config_reg_prop_label=\u00c9tiquette
+producer_config_reg_prop_name=Nom
+producer_config_reg_prop_remove=Enlever
+producer_config_reg_prop_type=Type
+producer_config_reg_prop_validator=Nom de la classe de validation des
propri\u00e9t\u00e9s d'enregistrement:
+producer_config_reg_props=Propri\u00e9t\u00e9s d'enregistrement
+producer_config_requires_reg=N\u00e9cessite l'enregistrement. Modifier cette
information entra\u00eene l'invalidation des enregistrements consommateurs.
+producer_config_save=Sauvegarder
+producer_config_sd_requires_reg=L'acc\u00e8s \u00e0 la description compl\u00e8te des
services requiert l'enregistrement.
+producer_config_strict=Utiliser la validation WSRP stricte.
+producer_config_title=Configuration producteur
+bean_consumermanager_refresh_bypassed=Le rafra\u00eechissement n'\u00e9tait pas
requis.
+bean_consumermanager_refresh_exception=Une erreur inattendue s'est produite.
+bean_consumermanager_refresh_failure=Le rafra\u00eechissement a \u00e9chou\u00e9
(probablement \u00e0 cause d'informations d'enregistrement non valides)
+bean_consumermanager_refresh_success=Le rafra\u00eechissement a r\u00e9ussi.
+bean_producer_cancel_success=Toutes les modifications faites \u00e0 la configuration du
producteur ont \u00e9t\u00e9 annull\u00e9es!
+bean_producer_save_success=La configuration du producteur a bien \u00e9t\u00e9
sauvegard\u00e9e!
+bean_consumermanager_refresh_modify=Les informations locales ou distantes ont
chang\u00e9, vous devriez modifier votre enregistrement avec le producteur.\n\
+Les nouvelles informations locales sont enregistr\u00e9es mais les donn\u00e9es
d'enregistrement courantes seront utilis\u00e9es\
+tant que vous n'aurez pas mis \u00e0 jour votre enregistrement aupr\u00e8s du
producteur.
+bean_consumer_update_success=Consommateur mis \u00e0 jour!
+registration_property_status_inexistent=Inexistant sur le producteur
+registration_property_status_invalid_value=Invalide valeur
+registration_property_status_missing=Manquant
+registration_property_status_missing_value=Valeur manquante
+registration_property_status_unchecked_value=Status ind\u00e9termin\u00e9
+registration_property_status_valid=Valide
+org.jboss.portal.object.name.admin.WSRP=WSRP
+consumers_table_reload=Recharger consommateurs
+CONSUMER_TYPE=Consommateur
+DUPLICATE_ERROR=Un {1} nomm\u00e9 ''{0}'' existe d\u00e9j\u00e0!
+INVALID_NAME_ERROR=''{0}'' est un nom invalide pour un {1} : Ne peut pas
\u00eatre null, vide ou contenir '/', '.', '\\', '<',
'>', '(', ')', '=' ou '%5c'
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_it.properties
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_it.properties
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_it.properties 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,182 @@
+#
+# JBoss, a division of Red Hat
+# Copyright 2009, Red Hat Middleware, LLC, and individual
+# contributors as indicated by the @authors tag. See the
+# copyright.txt in the distribution for a full listing of
+# individual contributors.
+#
+# This is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation; either version 2.1 of
+# the License, or (at your option) any later version.
+#
+# This software is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this software; if not, write to the Free
+# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+#
+
+## WSRP GUI localization
+
+# JBoss Portal display information
+org.jboss.portal.object.name.WSRPConfigurationPortlet = Configurazione WSRP
+org.jboss.portal.instance.name.WSRPConfigurationPortletInstance = Portlet di
configurazione WSRP
+
+# Tabs
+nav_tabs_consumers = Configurazione dei Consumer
+nav_tabs_producer_config = Configurazione del Producer
+nav_tabs_producer_management = Gestione del Producer
+
+# Object path in consumer template
+path_consumers_root = Consumer
+path_consumers_consumer = Configurazione del Consumer ''{0}''
+path_consumers_active = attivo
+path_consumers_inactive = inattivo
+path_consumers_refreshNeeded = (\u00e8 necessario il refresh)
+
+# Confirm deletion of a consumer screen
+confirm_delete_consumer_title = Elimino il consumer ''{0}''?
+confirm_delete_consumer_message = Stai per eliminare il consumer
''{0}''!
+confirm_detete_consumer_proceed = Sicuro di voler continuare?
+confirm_delete_consumer_submit = Elimina il consumer
+confirm_delete_consumer_cancel = Annulla
+
+# Confirm deletion of local registration information screen
+confirm_delete_registration_title = Elimino la registrazione locale per il consumer
''{0}''?
+confirm_delete_registration_message = Stai per eliminare le informazioni della
registrazione locale del consumer ''{0}''! \n\
+E' necessario soltanto se il consumer si \u00e8 prima registrato con il producer
remoto e il producer \u00e8 \n\
+stato configurato in modo da non richiedere pi\u00f9 la registrazione. \n\
+Elimina le informazioni della registrazione locale soltanto se riscontri degli errori per
\n\
+questa particolare situazione. Se si cancella la registrazione in alcune situazioni
c'\ufffd il rischio di non poter pi\u00f9 lavorare \n\
+con quel producer.
+confirm_delete_registration_proceed = Sicuro di voler procedere?
+confirm_delete_registration_submit = Elimina la registrazione locale
+confirm_delete_registration_cancel = Annulla
+
+# Consumers screen
+consumers_title = Gestione dei Consumer
+consumers_create_title = Crea un Consumer chiamato:
+consumers_create_submit = Crea un Consumer
+
+# Consumers list
+consumers_table_column_consumer = Consumer
+consumers_table_column_consumer_status = stato:
+consumers_table_column_actions = Azioni
+consumers_table_action_configure = Configura
+consumers_table_action_refresh = Aggiorna
+consumers_table_action_activate = Attiva
+consumers_table_action_deactivate = Disattiva
+consumers_table_action_register = Registra
+consumers_table_action_deregister = Togli dalla registrazione
+consumers_table_action_delete = Elimina
+consumers_table_reload = Ricarica i consumer
+
+# Consumer editing screen
+edit_consumer_producer = Id del Producer:
+edit_consumer_cache = Scadenza della cache:
+edit_consumer_cache_seconds = (secondi prima della scadenza)
+edit_consumer_endpoint = Configurazione dell\'Endpoint:
+edit_consumer_endpoint_wsdl = Uso il WSDL?
+edit_consumer_endpoint_sd = Service Description URL:
+edit_consumer_endpoint_m = Markup URL:
+edit_consumer_endpoint_r = Registration URL:
+edit_consumer_endpoint_pm = Portlet Management URL:
+edit_consumer_registration = Informazioni sulla registratione:
+edit_consumer_registration_current = Informazioni sulla registratione corrente:
+edit_consumer_prop_name = Nome
+edit_consumer_prop_desc = Descrizione
+edit_consumer_prop_value = Valore
+edit_consumer_registration_update_props = Propriet\u00e0 dell\'update
+edit_consumer_registration_no_props = E' richiesta una registrazione senza le
propriet\u00e0 di registrazione.
+edit_consumer_registration_modify = Modifica la registrazione
+edit_consumer_registration_modify_title = Modifica la registrazione secondo questo
producer
+edit_consumer_registration_expected = Informazioni richieste dalla registrazione:
+edit_consumer_no_registration = Il Producer non richiede la registrazione.
+edit_consumer_registration_context = Contesto della registrazione:
+edit_consumer_registration_context_handle = Gestore:
+edit_consumer_registration_context_erase = Elimina la registrazione locale
+edit_consumer_registration_context_erase_title = Elimina l\'informazione della
registrazione locale (potenzialmente pericoloso!)
+edit_consumer_refresh = Aggiorna e salva
+edit_consumer_refresh_title = Salva le modifiche e aggiorna le informazioni del producer
+edit_consumer_cancel = Cancel
+
+# Confirm registration property deletion screen
+confirm_delete_reg_property_title = Elimino ''{0}'' descrizioni sulla
propriet\u00e0 di registrazione?
+confirm_delete_reg_property_message = Stai per cancellare ''{0}''
descrizioni sulla propriet\u00e0 di registrazione! \n\
+Render\u00e0 non valide le registrazioni del consumer che dovr\u00e0 modificare la
propria informazione \n\
+sulla registrazione.
+confirm_delete_reg_property_proceed = Sicuro di voler procedere?
+confirm_delete_reg_property_submit = Elimina la propriet\u00e0
+confirm_delete_reg_property_cancel = Annulla
+
+# Producer configuration screen
+producer_config_title = Configurazione del Producer
+producer_config_sd_requires_reg = L'accesso all\'intera descrizione del servizio
richiede la registrazione da parte dei consumer.
+producer_config_strict = Usa per intero le propriet\u00e0 WSRP.
+producer_config_requires_reg = E\' richiesta la registrazione. La modifica di
quest\'informazione render\u00e0 non valide le registrazioni del consumer.
+producer_config_reg_policy = Nome della classe della policy di registrazione:
+producer_config_reg_prop_validator = Nome della classe del validatore delle
propriet\u00e0 di registrazione:
+producer_config_reg_props = Propriet\u00e0 della registratione
+producer_config_reg_prop_name = Nome
+producer_config_reg_prop_type = Tipo
+producer_config_reg_prop_label = Titolo
+producer_config_reg_prop_hint = Hint
+producer_config_reg_prop_action = Azione
+producer_config_reg_prop_remove = Elimina
+producer_config_no_reg_props = Non \u00e8 richiesta alcuna propriet\u00e0 di
registrazione.
+producer_config_add_reg_prop = Aggiungi propriet\u00e0
+producer_config_save = Salva
+producer_config_cancel = Annulla
+
+## Localized messages in JSF beans
+
+bean_support_unexpected_error = Si \u00e8 verificato un errore inaspettato:
+bean_support_cause = Causa:
+CONSUMER_TYPE = Consumer
+
+# ConsumerBean
+bean_consumer_cannot_find_consumer = Non posso trovare il consumer
''{0}''!
+bean_consumer_cannot_update_consumer = Non posso aggiornare il consumer!
+bean_consumer_cannot_refresh_consumer = Non posso eseguire il refresh del consumer!
+bean_consumer_modify_reg_success = Registrazione modificata con successo!
+bean_consumer_invalid_modify = Tentativo non valido di modifica di una registrazione
modificata localmente!
+bean_consumer_cannot_modify_reg = Non posso modificare la registrazione!
+bean_consumer_cannot_erase_reg = Non posso eliminare la registrazione locale!
+bean_consumer_malformed_url = ''{0}'' non \u00e8 un URL valido: {1}
+bean_consumer_update_success = Consumer aggiornato con successo!
+
+# ConsumerManagerBean
+bean_consumermanager_invalid_new_consumer_name = E\' necessario un nome di campo non
null o non vuoto per il nuovo consumer!
+bean_consumermanager_no_consumer = Non \u00e8 stato selezionato nessun consuer!
+bean_consumermanager_refresh_bypassed = Non \u00e8 necessario alcun aggiornamento.
+bean_consumermanager_refresh_success = Aggiornamento eseguito con successo.
+bean_consumermanager_refresh_failure = Aggiornamento fallito (probabilmente perch\u00e8
le informazioni di registrazione non sono valide).
+bean_consumermanager_refresh_exception = Si \u00e8 verificato un errore inaspettato.
+bean_consumermanager_refresh_modify = Le informazioni locali e remote sono cambiate,
dovresti modificare la registrazione al producer remoto.\n\
+Le nuove informazioni locali saranno salvate ma i dati della registrazione corrente non
saranno usati finch\u00e8 non modifichi \
+con successo la registrazione al producer.
+
+# ProducerBean
+bean_producer_regpolicy_unset = RegistrationPolicy non inserita
+bean_producer_cannot_save = Non posso salvare la configurazione del producer. Causa: {0}
+bean_producer_cannot_reload = Non posso ricaricare la configurazione del producer. Causa:
{0}
+bean_producer_save_success = La configurazione del producer \u00e8 stata salvata con
successo!
+bean_producer_cancel_success = Tutte le modifiche fatte al producer sono state
annullate!
+
+## RegistrationProperty Status localization
+registration_property_status_inexistent = Non esiste nel producer
+registration_property_status_missing = Mancante
+registration_property_status_missing_value = Valore mancante
+registration_property_status_unchecked_value = Stato non determinto
+registration_property_status_invalid_value = Valore non valido
+registration_property_status_valid = Valido
+
+org.jboss.portal.object.name.admin.WSRP=WSRP
+
+INVALID_NAME_ERROR=''{0}'' non \u00e8 un nome valido di {1} : Non \u00f2
essere null, vuoto o contenere '/', '.', '\\', '<',
'>', '(', ')', '=' o '%5c'
+DUPLICATE_ERROR=Un valore {1} con nome ''{0}'' esiste gi\u00e0!
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_ja.properties
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_ja.properties
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_ja.properties 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,172 @@
+#
+# JBoss, a division of Red Hat
+# Copyright 2009, Red Hat Middleware, LLC, and individual
+# contributors as indicated by the @authors tag. See the
+# copyright.txt in the distribution for a full listing of
+# individual contributors.
+#
+# This is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation; either version 2.1 of
+# the License, or (at your option) any later version.
+#
+# This software is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this software; if not, write to the Free
+# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+#
+
+## WSRP GUI localization
+
+# JBoss Portal display information
+
+org.jboss.portal.object.name.admin.WSRP =
\u30ea\u30e2\u30fc\u30c8\u30dd\u30fc\u30c8\u30ec\u30c3\u30c8
+org.jboss.portal.object.name.WSRPConfigurationPortlet = WSRP \u8a2d\u5b9a
+org.jboss.portal.instance.name.WSRPConfigurationPortletInstance = WSRP
\u8a2d\u5b9a\u30dd\u30fc\u30c8\u30ec\u30c3\u30c8
+
+# Tabs
+nav_tabs_consumers = \u30b3\u30f3\u30b7\u30e5\u30fc\u30de \u8a2d\u5b9a
+nav_tabs_producer_config = \u30d7\u30ed\u30c7\u30e5\u30fc\u30b5 \u8a2d\u5b9a
+nav_tabs_producer_management = \u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u7ba1\u7406
+
+# Object path in consumer template
+path_consumers_root = \u30b3\u30f3\u30b7\u30e5\u30fc\u30de
+path_consumers_consumer = \u30b3\u30f3\u30b7\u30e5\u30fc\u30de ''{0}''
\u8a2d\u5b9a
+path_consumers_active = \u30a2\u30af\u30c6\u30a3\u30d6
+path_consumers_inactive = \u30a4\u30f3\u30a2\u30af\u30c6\u30a3\u30d6
+path_consumers_refreshNeeded = (\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u304c\u5fc5\u8981)
+
+# Confirm deletion of a consumer screen
+confirm_delete_consumer_title = ''{0}''
\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u3092\u524a\u9664\u3057\u307e\u3059\u304b?
+confirm_delete_consumer_message = \u3042\u306a\u305f\u306f ''{0}''
\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u3092\u524a\u9664\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059!
+confirm_detete_consumer_proceed =
\u672c\u5f53\u306b\u3053\u306e\u4f5c\u696d\u3092\u7d9a\u3051\u307e\u3059\u304b\uff1f
+confirm_delete_consumer_submit = \u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u524a\u9664
+confirm_delete_consumer_cancel = \u30ad\u30e3\u30f3\u30bb\u30eb
+
+# Confirm deletion of local registration information screen
+confirm_delete_registration_title = ''{0}''
\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u306e\u30ed\u30fc\u30ab\u30eb\u767b\u9332\u3092\u524a\u9664\u3057\u307e\u3059\u304b\uff1f
+confirm_delete_registration_message = ''{0}''
\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u306e\u30ed\u30fc\u30ab\u30eb\u767b\u9332\u60c5\u5831\u3092\u524a\u9664\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059!
\n\
+\u3053\u308c\u306f\u3001\u4ee5\u524d\u3001\u3053\u306e\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u304c\u30ea\u30e2\u30fc\u30c8\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u3068\u3044\u3063\u3057\u3087\u306b\u767b\u9332\u3055\u308c\u3001\u305d\u306e\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u304c\u3082\u3046\u767b\u9332\u3092\u5fc5\u8981\u3068\u3057\u306a\u3044\u5834\u5408\u306e\u307f\u5fc5\u8981\u3067\u3059\u3002\n\
+\u3053\u306e\u7279\u5b9a\u306e\u72b6\u6cc1\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306e\u307f\u30ed\u30fc\u30ab\u30eb\u306e\u767b\u9332\u60c5\u5831\u3092\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\
+\u5fc5\u8981\u304c\u306a\u3044\u306e\u306b\u30ed\u30fc\u30ab\u30eb\u767b\u9332\u3092\u524a\u9664\u3059\u308b\u3068\u3001\u305d\u306e\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306f\u52d5\u4f5c\u4e0d\u80fd\u3068\u306a\u308a\u307e\u3059\u3002
+confirm_delete_registration_proceed =
\u672c\u5f53\u306b\u3053\u306e\u4f5c\u696d\u3092\u7d9a\u3051\u307e\u3059\u304b\uff1f
+confirm_delete_registration_submit =
\u30ed\u30fc\u30ab\u30eb\u767b\u9332\u306e\u524a\u9664
+confirm_delete_registration_cancel = \u30ad\u30e3\u30f3\u30bb\u30eb
+
+# Consumers screen
+consumers_title = \u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u7ba1\u7406
+consumers_create_title =
\u547d\u540d\u3055\u308c\u305f\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u306e\u4f5c\u6210:
+consumers_create_submit = \u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u4f5c\u6210
+
+# Consumers list
+consumers_table_column_consumer = \u30b3\u30f3\u30b7\u30e5\u30fc\u30de
+consumers_table_column_consumer_status = \u30b9\u30c6\u30fc\u30bf\u30b9:
+consumers_table_column_actions = \u30a2\u30af\u30b7\u30e7\u30f3
+consumers_table_action_configure = \u8a2d\u5b9a
+consumers_table_action_refresh = \u30ea\u30d5\u30ec\u30c3\u30b7\u30e5
+consumers_table_action_activate = \u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8
+consumers_table_action_deactivate =
\u30c7\u30a3\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8
+consumers_table_action_register = \u767b\u9332
+consumers_table_action_deregister = \u767b\u9332\u62b9\u6d88
+consumers_table_action_delete = \u524a\u9664
+
+# Consumer editing screen
+edit_consumer_producer = \u30d7\u30ed\u30c7\u30e5\u30fc\u30b5ID:
+edit_consumer_cache = \u30ad\u30e3\u30c3\u30b7\u30e5\u6709\u52b9\u671f\u9650:
+edit_consumer_cache_seconds = (\u6709\u52b9\u671f\u9650\u524d\u306e\u79d2\u6570)
+edit_consumer_endpoint = \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u8a2d\u5b9a:
+edit_consumer_endpoint_wsdl = WSDL\u3092\u4f7f\u7528\uff1f
+edit_consumer_endpoint_sd = \u30b5\u30fc\u30d3\u30b9\u8a18\u8ff0URL:
+edit_consumer_endpoint_m = \u30de\u30fc\u30af\u30a2\u30c3\u30d7URL:
+edit_consumer_endpoint_r = \u767b\u9332URL:
+edit_consumer_endpoint_pm = \u30dd\u30fc\u30c8\u30ec\u30c3\u30c8\u7ba1\u7406URL:
+edit_consumer_registration = \u767b\u9332\u60c5\u5831:
+edit_consumer_registration_current = \u73fe\u884c\u306e\u767b\u9332\u60c5\u5831:
+edit_consumer_prop_name = \u540d\u524d
+edit_consumer_prop_desc = \u8aac\u660e
+edit_consumer_prop_value = \u5024
+edit_consumer_registration_update_props =
\u30d7\u30ed\u30d1\u30c6\u30a3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8
+edit_consumer_registration_no_props =
\u767b\u9332\u306f\u767b\u9332\u30d7\u30ed\u30d1\u30c6\u30a3\u7121\u3057\u3067\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002
+edit_consumer_registration_modify = \u767b\u9332\u306e\u5909\u66f4
+edit_consumer_registration_modify_title =
\u3053\u306e\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306e\u6301\u3064\u767b\u9332\u306e\u5909\u66f4
+edit_consumer_registration_expected =
\u671f\u5f85\u3055\u308c\u308b\u767b\u9332\u60c5\u5831:
+edit_consumer_no_registration =
\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306f\u767b\u9332\u5fc5\u9808\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002
+edit_consumer_registration_context = \u767b\u9332\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8:
+edit_consumer_registration_context_handle = \u30cf\u30f3\u30c9\u30eb:
+edit_consumer_registration_context_erase =
\u30ed\u30fc\u30ab\u30eb\u767b\u9332\u306e\u524a\u9664
+edit_consumer_registration_context_erase_title =
\u30ed\u30fc\u30ab\u30eb\u767b\u9332\u60c5\u5831\u306e\u524a\u9664
(\u6f5c\u5728\u7684\u306b\u5371\u967a!)
+edit_consumer_refresh = \u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\uff06\u4fdd\u5b58
+edit_consumer_refresh_title =
\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u3001\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306e\u60c5\u5831\u3092\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u3057\u307e\u3059
+edit_consumer_cancel = \u30ad\u30e3\u30f3\u30bb\u30eb
+
+# Confirm registration property deletion scree
+confirm_delete_reg_property_title = ''{0}''
\u767b\u9332\u30d7\u30ed\u30d1\u30c6\u30a3\u30c7\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3092\u524a\u9664\u3057\u307e\u3059\u304b?
+confirm_delete_reg_property_message = \u3042\u306a\u305f\u306f ''{0}''
\u767b\u9332\u30d7\u30ed\u30d1\u30c6\u30a3\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3092\u524a\u9664\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059!
+confirm_delete_reg_property_proceed =
\u672c\u5f53\u306b\u3053\u306e\u4f5c\u696d\u3092\u3064\u3065\u3051\u305f\u3044\u3067\u3059\u304b\uff1f
+confirm_delete_reg_property_submit = \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u524a\u9664
+confirm_delete_reg_property_cancel = \u30ad\u30e3\u30f3\u30bb\u30eb
+
+# Producer configuration screen
+producer_config_title = \u30d7\u30ed\u30c7\u30e5\u30fc\u30b5 \u8a2d\u5b9a
+producer_config_sd_requires_reg =
\u5b8c\u5168\u306a\u30b5\u30fc\u30d3\u30b9\u8a18\u8ff0\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u767b\u9332\u3055\u308c\u305f\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u304c\u5fc5\u8981\u3002
+producer_config_strict = \u53b3\u683c\u306a WSRP
\u30b3\u30f3\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u3092\u4f7f\u7528\u3002
+producer_config_requires_reg =
\u767b\u9332\u304c\u5fc5\u8981\u3002\u3053\u306e\u60c5\u5831\u306e\u5909\u66f4\u306f\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u767b\u9332\u306e\u7121\u52b9\u5316\u3092\u5f15\u304d\u8d77\u3053\u3059\u3002
+producer_config_reg_policy =
\u767b\u9332\u30dd\u30ea\u30b7\u30fc\u30af\u30e9\u30b9\u540d:
+producer_config_reg_prop_validator =
\u767b\u9332\u30d7\u30ed\u30d1\u30c6\u30a3\u30d0\u30ea\u30c7\u30fc\u30bf\u30af\u30e9\u30b9\u540d:
+producer_config_reg_props = \u767b\u9332\u30d7\u30ed\u30d1\u30c6\u30a3
+producer_config_reg_prop_name = \u540d\u524d
+producer_config_reg_prop_type = \u30bf\u30a4\u30d7
+producer_config_reg_prop_label = \u30e9\u30d9\u30eb
+producer_config_reg_prop_hint = \u30d2\u30f3\u30c8
+producer_config_reg_prop_action = \u30a2\u30af\u30b7\u30e7\u30f3
+producer_config_reg_prop_remove = \u524a\u9664
+producer_config_no_reg_props =
\u5fc5\u8981\u306a\u767b\u9332\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002
+producer_config_add_reg_prop = \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8ffd\u52a0
+producer_config_save = \u4fdd\u5b58
+producer_config_cancel = \u30ad\u30e3\u30f3\u30bb\u30eb
+
+## Localized messages in JSF bean
+
+bean_support_unexpected_error =
\u4e88\u60f3\u5916\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f:
+bean_support_cause = \u539f\u56e0:
+
+# ConsumerBean
+bean_consumer_cannot_find_consumer = \u30b3\u30f3\u30b7\u30e5\u30fc\u30de
''{0}'' \u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093!
+bean_consumer_cannot_update_consumer =
\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u304c\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u51fa\u6765\u307e\u305b\u3093!
+bean_consumer_cannot_refresh_consumer =
\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u304c\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u51fa\u6765\u307e\u305b\u3093!
+bean_consumer_modify_reg_success =
\u767b\u9332\u304c\u6b63\u3057\u304f\u5909\u66f4\u3055\u308c\u307e\u3057\u305f!
+bean_consumer_invalid_modify =
\u30ed\u30fc\u30ab\u30eb\u3067\u5909\u66f4\u3055\u308c\u3066\u3044\u306a\u3044\u767b\u9332\u304c\u4e0d\u6b63\u306b\u5909\u66f4\u3055\u308c\u3088\u3046\u3068\u3057\u307e\u3057\u305f!
+bean_consumer_cannot_modify_reg =
\u767b\u9332\u304c\u5909\u66f4\u51fa\u6765\u307e\u305b\u3093!
+bean_consumer_cannot_erase_reg =
\u30ed\u30fc\u30ab\u30eb\u767b\u9332\u304c\u524a\u9664\u51fa\u6765\u307e\u305b\u3093!
+bean_consumer_malformed_url = ''{0}''
\u306f\u6709\u52b9\u306aURL\u3067\u306f\u3042\u308a\u307e\u305b\u3093: {1}
+bean_consumer_update_success =
\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u6210\u529f\u3057\u307e\u3057\u305f!
+
+# ConsumerManagerBean
+bean_consumermanager_invalid_new_consumer_name =
null\u3084\u7a7a\u767d\u3067\u306a\u3044\u540d\u524d\u304c\u65b0\u3057\u3044\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u306b\u5fc5\u8981\u3067\u3059!
+bean_consumermanager_no_consumer =
\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u304c\u9078\u629e\u51fa\u6765\u307e\u305b\u3093!
+bean_consumermanager_refresh_bypassed =
\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u306f\u5fc5\u8981\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002
+bean_consumermanager_refresh_success =
\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u304c\u6210\u529f\u3057\u307e\u3057\u305f\u3002
+bean_consumermanager_refresh_failure =
\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u304c\u5931\u6557\u3057\u307e\u3057\u305f\u3002(\u767b\u9332\u60c5\u5831\u304c\u6709\u52b9\u3067\u306f\u306a\u304b\u3063\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093)\u3002
+bean_consumermanager_refresh_exception =
\u4e88\u60f3\u5916\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002
+bean_consumermanager_refresh_modify =
\u30ed\u30fc\u30ab\u30eb\u307e\u305f\u306f\u30ea\u30e2\u30fc\u30c8\u306e\u60c5\u5831\u304c\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3001\u30ea\u30e2\u30fc\u30c8\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306e\u767b\u9332\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n\
+\u65b0\u3057\u3044\u30ed\u30fc\u30ab\u30eb\u60c5\u5831\u306f\u4fdd\u5b58\u3055\u308c\u307e\u3059\u304c\u3001\u3042\u306a\u305f\u304c\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306e\u767b\u9332\u3092\u5909\u66f4\u3059\u308b\u307e\u3067\u306f\u73fe\u884c\u306e\u767b\u9332\u30c7\u30fc\u30bf\u304c\u5229\u7528\u3055\u308c\u307e\u3059\u3002
+
+# ProducerBean
+bean_producer_regpolicy_unset = RegistrationPolicy
\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093
+bean_producer_cannot_save =
\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306e\u8a2d\u5b9a\u304c\u4fdd\u5b58\u51fa\u6765\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u539f\u56e0:
{0}
+bean_producer_cannot_reload =
\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306e\u8a2d\u5b9a\u304c\u30ea\u30ed\u30fc\u30c9\u51fa\u6765\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u539f\u56e0:
{0}
+bean_producer_save_success =
\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306e\u8a2d\u5b9a\u304c\u6b63\u3057\u304f\u4fdd\u5b58\u3055\u308c\u307e\u3057\u305f!
+bean_producer_cancel_success =
\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306e\u8a2d\u5b9a\u3067\u884c\u3063\u305f\u5168\u3066\u306e\u5909\u66f4\u306f\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u307e\u3057\u305f!
+
+## RegistrationProperty Status localization
+registration_property_status_inexistent =
\u30d7\u30ed\u30c7\u30e5\u30fc\u30b5\u306b\u5b58\u5728\u3057\u306a\u3044
+registration_property_status_missing = \u6b20\u640d
+registration_property_status_missing_value = \u6b20\u640d\u5024
+registration_property_status_unchecked_value = \u672a\u77e5\u306e\u72b6\u614b
+registration_property_status_invalid_value = \u7121\u52b9\u306a\u5024
+registration_property_status_valid = \u6709\u52b9
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_pt_BR.properties
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_pt_BR.properties
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/classes/Resource_pt_BR.properties 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,173 @@
+#
+# JBoss, a division of Red Hat
+# Copyright 2009, Red Hat Middleware, LLC, and individual
+# contributors as indicated by the @authors tag. See the
+# copyright.txt in the distribution for a full listing of
+# individual contributors.
+#
+# This is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation; either version 2.1 of
+# the License, or (at your option) any later version.
+#
+# This software is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this software; if not, write to the Free
+# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+# 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+#
+
+## WSRP GUI localization
+
+# JBoss Portal display information
+org.jboss.portal.object.name.WSRPConfigurationPortlet = Configura\u00e7\u00e3o
WSRP
+org.jboss.portal.instance.name.WSRPConfigurationPortletInstance = Portlet de
Configura\u00e7\u00e3o WSRP
+
+# Tabs
+nav_tabs_consumers = Configura\u00e7\u00e3o de Consumidores
+nav_tabs_producer_config = Configura\u00e7\u00e3o de Produtores
+nav_tabs_producer_management = Gerenciamento de Produtores
+
+# Object path in consumer template
+path_consumers_root = Consumidores
+path_consumers_consumer = Configura\u00e7\u00e3o do Consumidor ''{0}''
+path_consumers_active = ativo
+path_consumers_inactive = inativo
+path_consumers_refreshNeeded = (atualiza\u00e7\u00e3o necess\u00e1ria)
+
+# Confirm deletion of a consumer screen
+confirm_delete_consumer_title = Excluir o consumidor ''{0}''?
+confirm_delete_consumer_message = Voc\u00ea est\u00e1 prestes a excluir o consumidor
''{0}''\!
+confirm_detete_consumer_proceed = Tem certeza de que deseja continuar?
+confirm_delete_consumer_submit = Excluir consumidor
+confirm_delete_consumer_cancel = Cancelar
+
+# Confirm deletion of local registration information screen
+confirm_delete_registration_title = Excluir registro local para o consumidor
''{0}''?
+confirm_delete_registration_message = Voc\u00ea est\u00e1 prestes a eliminar o registro
local de informa\u00e7\u00f5es para o consumidor ''{0}'\! \nIsso s\u00f3
\u00e9 necess\u00e1rio se esse consumidor tinha anteriormente se registrado com o produtor
remoto, e esse produtor tiver sido modificado para n\u00e3o mais exigir registro. \nApenas
apague informa\u00e7\u00f5es locais de registro, se esse produtor apresentar erros devido
a essa situa\u00e7\u00e3o particular. Apagar o registro local quando n\u00e3o
obrigat\u00f3rio pode conduzir \u00e0 incapacidade de utilizar esse produtor.
+confirm_delete_registration_proceed = Tem certeza de que deseja continuar?
+confirm_delete_registration_submit = Excluir registro local
+confirm_delete_registration_cancel = Cancelar
+
+# Consumers screen
+consumers_title = Gerenciar Consumidores
+consumers_create_title = Criar consumidor denominado\:
+consumers_create_submit = Criar Consumidor
+
+# Consumers list
+consumers_table_column_consumer = Consumidor
+consumers_table_column_consumer_status = status:
+consumers_table_column_actions = A\u00e7\u00f5es
+consumers_table_action_configure = Configurar
+consumers_table_action_refresh = Atualizar
+consumers_table_action_activate = Ativar
+consumers_table_action_deactivate = Desativar
+consumers_table_action_register = Registrar
+consumers_table_action_deregister = Cancelar registro
+consumers_table_action_delete = Deletar
+consumers_table_reload = Regarregar consumidores
+
+# Consumer editing screen
+edit_consumer_producer = Id do produtor\:
+edit_consumer_cache = Expira\u00e7\u00e3o do cache\:
+edit_consumer_cache_seconds = (segundos antes de expirar)
+edit_consumer_endpoint = Configura\u00e7\u00e3o do endpoint\:
+edit_consumer_endpoint_wsdl = Utilizar WSDL?
+edit_consumer_endpoint_sd = URL do Service Description\:
+edit_consumer_endpoint_m = URL do Markup\:
+edit_consumer_endpoint_r = URL do Registro\:
+edit_consumer_endpoint_pm = URL do Portlet de Gerenciamento\:
+edit_consumer_registration = Informa\u00e7\u00f5es do registro\:
+edit_consumer_registration_current = Informa\u00e7\u00f5es do registro atual\:
+edit_consumer_prop_name = Nome
+edit_consumer_prop_desc = Descri\u00e7\u00e3o
+edit_consumer_prop_value = Valor
+edit_consumer_registration_update_props = Atualizar propriedades
+edit_consumer_registration_no_props = O registro \u00e9 indicado como obrigat\u00f3rio
sem as propriedades do registro.
+edit_consumer_registration_modify = Modificar registro
+edit_consumer_registration_modify_title = Modificar o registro realizado com este
produtor
+edit_consumer_registration_expected = Informa\u00e7\u00f5es de registro esperadas\:
+edit_consumer_no_registration = O produtor n\u00e3o requer registro.
+edit_consumer_registration_context = Contexto do registro\:
+edit_consumer_registration_context_handle = Handle:
+edit_consumer_registration_context_erase = Excluir registro local
+edit_consumer_registration_context_erase_title = Excluir informa\u00e7\u00f5es locais de
registro (potencialmente perigoso\!)
+edit_consumer_refresh = Atualizar e Gravar
+edit_consumer_refresh_title = Gravar altera\u00e7\u00f5es e atualizar as
informa\u00e7\u00f5es do produtor
+edit_consumer_cancel = Cancelar
+
+# Confirm registration property deletion screen
+confirm_delete_reg_property_title = Excluir a descri\u00e7\u00e3o da propriedade de
registro ' '(0)''?
+confirm_delete_reg_property_message = Voc\u00ea est\u00e1 prestes a eliminar a
descri\u00e7\u00e3o da propriedade de registro ''{0}''\!\n Isso
acionar\u00e1 a invalida\u00e7\u00e3o dos registros dos consumidores que ter\u00e3o de
modificar suas informa\u00e7\u00e3o de registro.
+confirm_delete_reg_property_proceed = Tem certeza de que deseja continuar?
+confirm_delete_reg_property_submit = Excluir propriedade
+confirm_delete_reg_property_cancel = Cancelar
+
+# Producer configuration screen
+producer_config_title = Configura\u00e7\u00e3o do Produtor
+producer_config_sd_requires_reg = O acesso \u00e0 descri\u00e7\u00e3o completa do
servi\u00e7o exige que os consumidores estejam registrados.
+producer_config_strict = Utilizar compatibilidade estrita ao WSRP.
+producer_config_requires_reg = Registro obrigat\u00f3rio. Modificar essa
informa\u00e7\u00e3o invalidar\u00e1 os registros dos consumidores.
+producer_config_reg_policy = Nome da classe de pol\u00edtica do registro\:
+producer_config_reg_prop_validator = Nome da classe de valida\u00e7\u00e3o da propriedade
do registro\:
+producer_config_reg_props = Propriedades do registro
+producer_config_reg_prop_name = Nome
+producer_config_reg_prop_type = Tipo
+producer_config_reg_prop_label = R\u00f3tulo
+producer_config_reg_prop_hint = Dica
+producer_config_reg_prop_action = A\u00e7\u00e3o
+producer_config_reg_prop_remove = Excluir
+producer_config_no_reg_props = Propriedades obrigat\u00f3rias do registro n\u00e3o
especificadas.
+producer_config_add_reg_prop = Adicionar propriedade
+producer_config_save = Gravar
+producer_config_cancel = Cancelar
+
+## Localized messages in JSF beans
+
+bean_support_unexpected_error = Ocorreu um erro inesperado\:
+bean_support_cause = Motivo\:
+CONSUMER_TYPE = Consumidor
+
+# ConsumerBean
+bean_consumer_cannot_find_consumer = N\u00e3o foi poss\u00edvel encontrar o consumidor
''{0}''\!
+bean_consumer_cannot_update_consumer = N\u00e3o foi poss\u00edvel atualizar o
consumidor\!
+bean_consumer_cannot_refresh_consumer = N\u00e3o foi poss\u00edvel atualizar o
consumidor\!
+bean_consumer_modify_reg_success = Registro modificado com sucesso\!
+bean_consumer_invalid_modify = Tentativa inv\u00e1lida de modificar um registro que
n\u00e3o foi modificado localmente\!
+bean_consumer_cannot_modify_reg = N\u00e3o foi poss\u00edvel modificar o registro\!
+bean_consumer_cannot_erase_reg = N\u00e3o foi poss\u00edvel excluir o registro local\!
+bean_consumer_malformed_url = ''{0}'' n\u00e3o \u00e9 uma URL
v\u00e1lida\: {1}
+bean_consumer_update_success = Atualiza\u00e7\u00e3o do consumidor realizada com
sucesso\!
+
+# ConsumerManagerBean
+bean_consumermanager_invalid_new_consumer_name = Necessita de um nome n\u00e3o nulo,
n\u00e3o vazio para o novo consumidor\!
+bean_consumermanager_no_consumer = Nenhum consumidor foi selecionado\!
+bean_consumermanager_refresh_bypassed = N\u00e3o \u00e9 necess\u00e1rio atualizar.
+bean_consumermanager_refresh_success = Atualiza\u00e7\u00e3o bem sucedida.
+bean_consumermanager_refresh_failure = A atualiza\u00e7\u00e3o falhou (provavelmente
porque a informa\u00e7\u00e3o de registro n\u00e3o era v\u00e1lida).
+bean_consumermanager_refresh_exception = Ocorreu um erro inesperado.
+bean_consumermanager_refresh_modify = Informa\u00e7\u00e3o local ou remota foi alterada.
Voc\u00ea deve modificar o registro com o produtor remoto. \\n Os novos locais de
informa\u00e7\u00e3o ser\u00e3o salvos, mas o seu atual registro de dados ser\u00e1 usado
at\u00e9 que voc\u00ea modifique o registro com o produtor com sucesso.
+
+# ProducerBean
+bean_producer_regpolicy_unset = RegistrationPolicy n\u00e3o definida
+bean_producer_cannot_save = N\u00e3o foi poss\u00edvel salvar a configura\u00e7\u00e3o do
produtor. Motivo\: (0)
+bean_producer_cannot_reload = N\u00e3o foi poss\u00edvel recarregar a
configura\u00e7\u00e3o do produtor. Motivo\: {0}
+bean_producer_save_success = Configura\u00e7\u00e3o do producer gravada com sucesso\!
+bean_producer_cancel_success = Todas as modifica\u00e7\u00f5es feitas na
configura\u00e7\u00e3o do produtor foram canceladas\!
+
+## RegistrationProperty Status localization
+registration_property_status_inexistent = Produtor inexistente
+registration_property_status_missing = N\u00e3o est\u00e1 presente
+registration_property_status_missing_value = Valor n\u00e3o est\u00e1 presente
+registration_property_status_unchecked_value = Status indeterminado
+registration_property_status_invalid_value = Valor inv\u00e1lido
+registration_property_status_valid = V\u00e1lido
+
+org.jboss.portal.object.name.admin.WSRP=WSRP
+
+INVALID_NAME_ERROR=''{0}'' \u00e9 um nome inv\u00e1lido para {1}\:
n\u00e3o deve ser nulo, vazio ou conter os caracteres '/', '.',
'\\', '<', '>', '(', ')', '=' ou
'%5c'
+DUPLICATE_ERROR=Um {1} denominado ''{0}'' j\u00e1 existe\!
\ No newline at end of file
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/faces-config.xml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/faces-config.xml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,144 @@
+<?xml version="1.0"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+
+<faces-config>
+
+ <!-- Facelet portlet view handler-->
+
+ <application>
+ <view-handler>
+ org.jboss.portletbridge.application.PortletViewHandler
+ </view-handler>
+
<navigation-handler>org.jboss.portal.wsrp.admin.ui.RedirectOnNoConsumerNavigationHandler</navigation-handler>
+
<state-manager>org.jboss.portletbridge.application.PortletStateManager</state-manager>
+ <locale-config>
+ <default-locale>en</default-locale>
+ <supported-locale>fr</supported-locale>
+ <supported-locale>ja</supported-locale>
+ </locale-config>
+ </application>
+
+ <converter>
+
<converter-for-class>org.jboss.portal.wsrp.registration.LocalizedString</converter-for-class>
+
<converter-class>org.jboss.portal.wsrp.admin.ui.LocalizedStringConverter</converter-class>
+ </converter>
+ <converter>
+ <converter-id>faces.convert.RegistrationProperty.Status</converter-id>
+
<converter-class>org.jboss.portal.wsrp.admin.ui.StatusConverter</converter-class>
+ </converter>
+
+
+ <managed-bean>
+ <managed-bean-name>beanContext</managed-bean-name>
+
<managed-bean-class>org.jboss.portal.faces.gui.JSFBeanContext</managed-bean-class>
+ <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>consumersMgr</managed-bean-name>
+
<managed-bean-class>org.jboss.portal.wsrp.admin.ui.ConsumerManagerBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>registry</property-name>
+
<property-class>org.jboss.portal.wsrp.consumer.ConsumerRegistry</property-class>
+ <value>#{applicationScope.ConsumerRegistry}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>beanContext</property-name>
+
<property-class>org.jboss.portal.faces.gui.BeanContext</property-class>
+ <value>#{beanContext}</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>consumer</managed-bean-name>
+
<managed-bean-class>org.jboss.portal.wsrp.admin.ui.ConsumerBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>beanContext</property-name>
+
<property-class>org.jboss.portal.faces.gui.BeanContext</property-class>
+ <value>#{beanContext}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>registry</property-name>
+
<property-class>org.jboss.portal.wsrp.consumer.ConsumerRegistry</property-class>
+ <value>#{applicationScope.ConsumerRegistry}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>id</property-name>
+ <value>#{sessionScope.consumerId}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>manager</property-name>
+ <value>#{consumersMgr}</value>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>producer</managed-bean-name>
+
<managed-bean-class>org.jboss.portal.wsrp.admin.ui.ProducerBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>configurationService</property-name>
+
<property-class>org.jboss.portal.wsrp.producer.config.ProducerConfigurationService</property-class>
+ <value>#{applicationScope.ProducerConfigurationService}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>beanContext</property-name>
+
<property-class>org.jboss.portal.faces.gui.BeanContext</property-class>
+ <value>#{beanContext}</value>
+ </managed-property>
+ </managed-bean>
+
+ <navigation-rule>
+ <navigation-case>
+ <from-outcome>consumers</from-outcome>
+ <to-view-id>/jsf/consumers/consumers.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>configureConsumer</from-outcome>
+ <to-view-id>/jsf/consumers/editConsumer.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>producer</from-outcome>
+ <to-view-id>/jsf/producer/producer.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>confirmPropDeletion</from-outcome>
+ <to-view-id>/jsf/producer/confirmPropDeletion.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>confirmEraseRegistration</from-outcome>
+
<to-view-id>/jsf/consumers/confirmEraseRegistration.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>confirmDeleteConsumer</from-outcome>
+ <to-view-id>/jsf/consumers/confirmDeleteConsumer.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>management</from-outcome>
+ <to-view-id>/jsf/management/management.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+</faces-config>
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/jboss-portlet.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/jboss-portlet.xml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/jboss-portlet.xml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,46 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+<!DOCTYPE portlet-app PUBLIC "-//JBoss Portal//DTD JBoss Portlet 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd">
+<portlet-app>
+ <portlet>
+ <portlet-name>WSRPConfigurationPortlet</portlet-name>
+ <transaction>
+ <trans-attribute>Required</trans-attribute>
+ </transaction>
+ <header-content>
+ <link rel="stylesheet" type="text/css"
href="/style.css" media="screen"/>
+ </header-content>
+ </portlet>
+ <service>
+ <service-name>ConsumerRegistry</service-name>
+
<service-class>org.jboss.portal.wsrp.consumer.ConsumerRegistry</service-class>
+ <service-ref>portal.wsrp:service=ConsumerRegistry</service-ref>
+ </service>
+ <service>
+ <service-name>ProducerConfigurationService</service-name>
+
<service-class>org.jboss.portal.wsrp.producer.config.ProducerConfigurationService</service-class>
+ <service-ref>portal.wsrp:service=ProducerConfiguration</service-ref>
+ </service>
+</portlet-app>
+
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/portlet-instances.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/portlet-instances.xml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/portlet-instances.xml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<deployments>
+ <deployment>
+ <instance>
+ <display-name xml:lang="en">WSRP admin
portlet</display-name>
+ <display-name xml:lang="fr">Portlet d'administration
WSRP</display-name>
+ <display-name xml:lang="pt_BR">Portlet de administração
WSRP</display-name>
+ <instance-id>WSRPConfigurationPortletInstance</instance-id>
+ <portlet-ref>WSRPConfigurationPortlet</portlet-ref>
+ <security-constraint>
+ <policy-permission>
+ <role-name>Admin</role-name>
+ <action-name>view</action-name>
+ </policy-permission>
+ </security-constraint>
+ </instance>
+ </deployment>
+</deployments>
\ No newline at end of file
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/portlet.xml
(rev 0)
+++ jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/portlet.xml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,54 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+<portlet-app
+
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1...
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+ version="1.0">
+ <portlet>
+ <description>Configuration portlet for WSRP.</description>
+ <portlet-name>WSRPConfigurationPortlet</portlet-name>
+ <display-name>WSRP Configuration</display-name>
+ <portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
+ <init-param>
+ <name>javax.portlet.faces.defaultViewId.view</name>
+ <value>/jsf/consumers/consumers.xhtml</value>
+ </init-param>
+ <init-param>
+ <name>javax.portlet.faces.preserveActionParams</name>
+ <value>true</value>
+ </init-param>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <supported-locale>fr</supported-locale>
+ <supported-locale>pt_BR</supported-locale>
+ <resource-bundle>WSRPConfigurationResource</resource-bundle>
+ <portlet-info>
+ <title>WSRP Configuration</title>
+ <keywords>management,admin,wsrp</keywords>
+ </portlet-info>
+ </portlet>
+</portlet-app>
\ No newline at end of file
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/web.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++ jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/web.xml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <context-param>
+ <param-name>javax.portlet.faces.renderPolicy</param-name>
+ <param-value>ALWAYS_DELEGATE</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>javax.portlet.faces.preserveActionParams</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <!-- Facelet configuration -->
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.SKIP_COMMENTS</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <!-- JSF configuration -->
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+
+ <servlet>
+ <servlet-name>FacesServlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>FacesServlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+
+
+</web-app>
+
+
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/wsrp-object.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/wsrp-object.xml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/wsrp-object.xml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<!DOCTYPE deployments PUBLIC "-//JBoss Portal//DTD Portal Object 2.6//EN"
+ "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
+
+<deployments>
+ <deployment>
+ <parent-ref>admin</parent-ref>
+ <if-exists>overwrite</if-exists>
+ <page>
+ <page-name>WSRP</page-name>
+ <supported-locale>ja</supported-locale>
+ <resource-bundle>Resource</resource-bundle>
+ <properties>
+ <property>
+ <name>layout.id</name>
+ <value>1column</value>
+ </property>
+ </properties>
+ <security-constraint>
+ <policy-permission>
+ <action-name>viewrecursive</action-name>
+ <role-name>Admin</role-name>
+ </policy-permission>
+ </security-constraint>
+ <window>
+ <window-name>WSRPConfigurationPortletWindow</window-name>
+ <instance-ref>WSRPConfigurationPortletInstance</instance-ref>
+ <region>center</region>
+ <height>0</height>
+ <properties>
+ <property>
+ <name>theme.renderSetId</name>
+ <value>emptyRenderer</value>
+ </property>
+ </properties>
+ </window>
+ </page>
+ </deployment>
+</deployments>
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/basestyles.css
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/basestyles.css
(rev 0)
+++ jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/basestyles.css 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,102 @@
+.zero {
+ margin: 0;
+ padding: 0;
+}
+
+.align-center {
+ text-align: center;
+}
+
+.align-center-margin {
+ margin: 0 auto 0 auto;
+}
+
+.float-left {
+ float: left;
+}
+
+.float-right {
+ float: right;
+}
+
+.align-left {
+ text-align: left;
+}
+
+.align-right {
+ text-align: right;
+}
+
+.align-top {
+ vertical-align: top;
+}
+
+.half-width {
+ width: 49%;
+}
+
+.quarter-width {
+ width: 24.9%;
+}
+
+.three-quarter-width {
+ width: 74.9%;
+}
+
+.full-width {
+ width: 100%;
+}
+
+.third-width {
+ width: 32.9%;
+}
+
+.two-third-width {
+ width: 65.9%;
+}
+
+.third-width-pad5 {
+ width: 32.5%;
+ padding: 5px;
+}
+
+.two-third-width-pad5 {
+ width: 65.5%;
+ padding: 5px;
+}
+
+.tenpx-top-bottom {
+ margin: 10px 0 10px 0;
+}
+
+.clear {
+ clear: both;
+}
+
+.pad5 {
+ padding: 5px;
+}
+
+.pad10 {
+ padding: 10px
+}
+
+.grey-border {
+ border: 1px solid #B3C0C7;
+}
+
+.dotted-blue-border {
+ font-weight: bold;
+ color: #315896;
+ font-size: 11px;
+ padding: 3px 0 3px 3px;
+ background-image: url(img/section-subHeader-bg.gif);
+ background-position: left top;
+ background-repeat: repeat-x;
+ border: 1px solid #b9c6d7;
+}
+
+.dotted-blue-vert-rt {
+
+}
+
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Activate.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Activate.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Configure.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Configure.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Deactivate.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Deactivate.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Delete.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Delete.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Deregister.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Deregister.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Refresh.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Refresh.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Register.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/actionIcon_Register.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/border-dotted-blue.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/border-dotted-blue.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/border-dotted-vert.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/border-dotted-vert.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/accept.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/accept.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/activate.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/activate.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/add.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/add.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/coordination.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/coordination.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/deactivate.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/deactivate.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/default.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/default.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/delete.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/delete.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/delete2.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/delete2.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/deregister.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/deregister.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/display_names.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/display_names.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/generic_icon.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/generic_icon.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/layout.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/layout.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/make_default.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/make_default.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/refresh.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/refresh.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/register.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/register.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/rename.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/rename.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/security.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/security.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/settings.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/settings.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/theme.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/theme.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_add.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_add.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_copy.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_copy.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_edit.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_edit.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_error.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_error.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_remove.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/jbp-icon-set/window_remove.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/msgIcon_Warning.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/msgIcon_Warning.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/pathBackground.png
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/pathBackground.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/pathSeparator.png
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/pathSeparator.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/section-header-bg.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/section-header-bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/section-subHeader-bg.gif
===================================================================
(Binary files differ)
Property changes on:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/img/section-subHeader-bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/common/template.xhtml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/common/template.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/common/template.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,52 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets">
+ <f:loadBundle basename="Resource" var="i18n"/>
+
+ <div class="wsrp-consumers-ui">
+ <ui:insert name="topnav">Top navigation</ui:insert>
+
+ <div class="tab-container">
+
+
+ <ui:insert name="objectpath">Object path if
needed</ui:insert>
+
+ <div class="wsrp-content-container">
+ <c:if test="#{!empty title}">
+ <h3 class="sectionTitle">${title}</h3>
+ </c:if>
+
+ <!-- Status message -->
+ <h:messages id="status" for="status"
infoClass="portlet-msg-success" errorClass="portlet-msg-error"
+ fatalClass="portlet-msg-error"
warnClass="portlet-msg-alert"/>
+
+ <!-- Content -->
+ <ui:insert name="content">Content</ui:insert>
+ </div>
+
+ </div>
+ </div>
+</ui:composition>
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/confirmDeleteConsumer.xhtml
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/confirmDeleteConsumer.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/confirmDeleteConsumer.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,68 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:decorate template="consumerTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:jbp="http://www.jboss.org/portal"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+ <ui:param name="title" value=""/>
+ <ui:define name="content">
+
+ <div class="portlet-msg">
+ <div class="portlet-msg-icon">
+ <h:graphicImage url="/img/msgIcon_Warning.gif"
alt="/!\"/>
+ </div>
+ <div class="portlet-msg-body">
+ <h3>
+ <h:outputFormat
value="#{i18n.confirm_delete_consumer_title}">
+ <f:param
value="#{consumersMgr.selectedConsumer.producerId}"/>
+ </h:outputFormat>
+ </h3>
+
+ <p class="portlet-msg-alert">
+ <h:outputFormat
value="#{i18n.confirm_delete_consumer_message}">
+ <f:param
value="#{consumersMgr.selectedConsumer.producerId}"/>
+ </h:outputFormat>
+ </p>
+
+ <p
class="portlet-class">#{i18n.confirm_detete_consumer_proceed}</p>
+
+ <h:form id="confirm-delete-form">
+ <h:commandLink id="destroy-link"
value="#{i18n.confirm_delete_consumer_submit}"
+ action="#{consumersMgr.destroyConsumer}"
+ styleClass="portlet-form-button
portlet-section-buttonrow">
+ <f:param name="id"
value="#{consumersMgr.selectedConsumer.producerId}"/>
+ </h:commandLink>
+ <h:commandButton id="cancel-link"
value="#{i18n.confirm_delete_consumer_cancel}"
+ action="#{consumersMgr.listConsumers}"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ </h:form>
+ </div>
+ </div>
+
+ </ui:define>
+
+</ui:decorate>
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/confirmEraseRegistration.xhtml
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/confirmEraseRegistration.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/confirmEraseRegistration.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,66 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:decorate template="consumerTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:jbp="http://www.jboss.org/portal"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+ <ui:param name="title" value=""/>
+ <ui:define name="content">
+
+ <div class="portlet-msg">
+ <div class="portlet-msg-icon">
+ <h:graphicImage url="/img/msgIcon_Warning.gif"
alt="/!\"/>
+ </div>
+ <div class="portlet-msg-body">
+ <h3>
+ <h:outputFormat
value="#{i18n.confirm_delete_registration_title}">
+ <f:param value="#{consumer.id}"/>
+ </h:outputFormat>
+ </h3>
+
+ <p class="portlet-msg-alert">
+ <h:outputFormat
value="#{i18n.confirm_delete_registration_message}">
+ <f:param value="#{consumer.id}"/>
+ </h:outputFormat>
+ </p>
+
+ <p
class="portlet-class">#{i18n.confirm_delete_registration_proceed}</p>
+
+ <h:form id="confirm-erase-form">
+ <h:commandButton id="submit"
value="#{i18n.confirm_delete_registration_submit}"
+ action="#{consumer.eraseLocalRegistration}"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ <h:commandButton id="cancel"
value="#{i18n.confirm_delete_registration_cancel}"
+ action="configureConsumer"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ </h:form>
+ </div>
+ </div>
+
+ </ui:define>
+
+</ui:decorate>
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/consumerTemplate.xhtml
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/consumerTemplate.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/consumerTemplate.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,70 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:decorate template="../common/template.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+ <ui:define name="topnav">
+ <h:form id="cons-temp-form">
+ <ul class="topnav">
+ <li id="currentTab">#{i18n.nav_tabs_consumers}</li>
+ <li>
+ <h:commandLink id="producer-link"
value="#{i18n.nav_tabs_producer_config}" action="producer"/>
+ </li>
+ <ui:remove>
+ <li>
+ <h:commandLink id="management-link"
value="#{i18n.nav_tabs_producer_management}"
+ action="management"/>
+ </li>
+ </ui:remove>
+ </ul>
+ </h:form>
+ </ui:define>
+
+ <ui:define name="objectpath">
+ <h:form id="cons-temp-form1">
+ <ul class="objectpath">
+ <li class="#{!empty title ? 'selected' :
'pathItem'}">
+ <h:commandLink id="list-cons-link"
action="#{consumersMgr.listConsumers}"
+ value="#{i18n.path_consumers_root}"/>
+ </li>
+ <c:if test="#{empty title}">
+ <li class="pathSeparator">
+ <h:graphicImage url="/img/pathSeparator.png"
alt=">"/>
+ </li>
+ <li
+ class="#{consumer.active ? 'active' : 'inactive'}
#{consumer.refreshNeeded ? 'needsRefresh' : ''}">
+ <h:outputFormat
value="#{i18n.path_consumers_consumer}">
+ <f:param value="#{consumer.id}"/>
+ </h:outputFormat>
+ (#{consumer.active ? i18n.path_consumers_active :
i18n.path_consumers_inactive})
+ #{consumer.refreshNeeded ? i18n.path_consumers_refreshNeeded :
''}
+ </li>
+ </c:if>
+ </ul>
+ </h:form>
+ </ui:define>
+</ui:decorate>
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/consumers.xhtml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/consumers.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/consumers.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,113 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:decorate template="consumerTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+ <ui:param name="title" value="#{i18n.consumers_title}"/>
+
+ <ui:define name="content">
+
+ <!-- Consumer creation -->
+ <h:form id="createConsumer"
styleClass="createObjectForm">
+ <span
class="portlet-font">#{i18n.consumers_create_title}</span>
+ <h:inputText value="#{consumersMgr.selectedId}"
id="consumerName" styleClass="portlet-form-input-field"
+ required="true"/>
+ <h:commandButton id="createConsumerButton"
action="#{consumersMgr.createConsumer}"
+ value="#{i18n.consumers_create_submit}"
styleClass="portlet-form-button"/>
+ <h:message for="consumerName"
errorClass="portlet-msg-error"/>
+ </h:form>
+
+ <br/>
+
+ <!-- Consumers list -->
+ <h:form id="consumer-list-form">
+ <h:dataTable id="consumersList"
value="#{consumersMgr.consumers}" var="cons"
+ rendered="#{!consumersMgr.consumersEmpty}"
+
rowClasses="portlet-section-body,portlet-section-alternate"
headerClass="portlet-section-header"
+ styleClass="datatable objectList"
width="100%">
+ <h:column>
+ <f:facet name="header">
+ #{i18n.consumers_table_column_consumer}
+ <div style="font-size: 90%; display:inline; font-weight:
normal;">
+ [#{i18n.consumers_table_column_consumer_status} <span
+
class="active">#{i18n.path_consumers_active}</span>,
+ <span
class="inactive">#{i18n.path_consumers_inactive}</span>,
+ <span
class="needsRefresh">#{i18n.path_consumers_refreshNeeded}</span>]
+ </div>
+ </f:facet>
+
+ <h:outputText style="display:block; width:100%;"
+ styleClass="#{cons.active ? 'active' :
'inactive'} #{cons.refreshNeeded ? 'needsRefresh' : ''}"
+ value="#{cons.producerId} (#{cons.active ?
i18n.path_consumers_active : i18n.path_consumers_inactive})
+ #{cons.refreshNeeded ? i18n.path_consumers_refreshNeeded :
''}"/>
+ </h:column>
+
+ <h:column>
+ <f:facet
name="header">#{i18n.consumers_table_column_actions}</f:facet>
+
+ <h:commandLink action="#{consumersMgr.configureConsumer}"
styleClass="actionConfigure" id="configure">
+ <f:param name="id"
value="#{cons.producerId}"/>
+ #{i18n.consumers_table_action_configure}
+ </h:commandLink>
+ |
+ <h:commandLink action="#{consumersMgr.refreshConsumer}"
styleClass="actionRefresh" id="refresh">
+ <f:param name="id"
value="#{cons.producerId}"/>
+ #{i18n.consumers_table_action_refresh}
+ </h:commandLink>
+ |
+ <h:commandLink action="#{consumersMgr.activateConsumer}"
id="activate"
+ styleClass="#{cons.active ? 'actionDeactivate'
: 'actionActivate'}">
+ <f:param name="id"
value="#{cons.producerId}"/>
+ <f:param name="activate"
value="#{!cons.active}"/>
+ #{cons.active ? i18n.consumers_table_action_deactivate :
i18n.consumers_table_action_activate}
+ </h:commandLink>
+ <h:panelGroup
+ rendered="#{!cons.refreshNeeded and cons.active and
cons.producerInfo.registrationRequired}">
+ |
+ <h:commandLink action="#{consumersMgr.registerConsumer}"
id="register"
+ styleClass="action#{cons.producerInfo.registered ?
'Deregister' : 'Register'}">
+ <f:param name="id"
value="#{cons.producerId}"/>
+ <f:param name="register"
value="#{!cons.producerInfo.registered}"/>
+ #{cons.producerInfo.registered ?
i18n.consumers_table_action_deregister : i18n.consumers_table_action_register}
+ </h:commandLink>
+ </h:panelGroup>
+ |
+ <h:commandLink action="confirmDeleteConsumer"
styleClass="actionDelete" id="delete"
+
actionListener="#{consumersMgr.selectConsumer}">
+ <f:param name="id"
value="#{cons.producerId}"/>
+ #{i18n.consumers_table_action_delete}
+ </h:commandLink>
+ </h:column>
+ </h:dataTable>
+ </h:form>
+
+ <h:form>
+ <h:commandButton id="createConsumerButton"
action="#{consumersMgr.reload}"
+ value="#{i18n.consumers_table_reload}"
styleClass="portlet-form-button"/>
+ </h:form>
+ </ui:define>
+</ui:decorate>
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/editConsumer.xhtml
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/editConsumer.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/consumers/editConsumer.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,238 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:decorate template="consumerTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:c="http://java.sun.com/jstl/core">
+<ui:param name="title" value=""/>
+
+<ui:define name="content">
+
+ <hr/>
+
+ <h:form id="edit-cons-form">
+ <table width="100%" class="portlet-table-body #{consumer.active ?
'active' : 'inactive'}">
+ <tr>
+ <th>#{i18n.edit_consumer_producer}</th>
+ <td>
+ <h:inputText id="id" value="#{consumer.id}"/>
+ <h:message styleClass="portlet-msg-error"
for="id"/>
+ </td>
+ </tr>
+ <tr>
+ <th>#{i18n.edit_consumer_cache}</th>
+ <td>
+ <h:inputText id="cache"
value="#{consumer.cache}"/>
+ #{i18n.edit_consumer_cache_seconds}
+ <h:message styleClass="portlet-msg-error"
for="cache"/>
+ </td>
+ </tr>
+ <tr>
+ <th>#{i18n.edit_consumer_endpoint}</th>
+ <td>
+ <h:selectBooleanCheckbox id="useWSDL"
value="#{consumer.useWSDL}" onclick="this.form.submit()"
+
valueChangeListener="#{consumer.useWSDLListener}"
+ immediate="true"/>
+ #{i18n.edit_consumer_endpoint_wsdl}
+ <h:message styleClass="portlet-msg-error"
for="useWSDL"/>
+
+ <h:panelGroup rendered="#{consumer.useWSDL}">
+ <h:inputText id="wsdl" size="70"
value="#{consumer.wsdl}"/>
+ <h:message styleClass="portlet-msg-error"
+ for="wsdl"/>
+ </h:panelGroup>
+
+ <h:panelGroup rendered="#{!consumer.useWSDL}">
+ <table border="0" class='portlet-table-body'>
+ <tr>
+ <th>#{i18n.edit_consumer_endpoint_sd}</th>
+ <td>
+ <h:inputText id="sd" size="70"
value="#{consumer.serviceDescription}"/>
+ <h:message
+ styleClass="portlet-msg-error"
for="sd"/>
+ </td>
+ </tr>
+ <tr>
+ <th>#{i18n.edit_consumer_endpoint_m}</th>
+ <td>
+ <h:inputText id="m" size="70"
value="#{consumer.markup}"/>
+ <h:message
+ styleClass="portlet-msg-error"
for="m"/>
+ </td>
+ </tr>
+ <tr>
+ <th>#{i18n.edit_consumer_endpoint_r}</th>
+ <td>
+ <h:inputText id="r" size="70"
value="#{consumer.registration}"/>
+ <h:message
+ styleClass="portlet-msg-error"
+ for="r"/>
+ </td>
+ </tr>
+ <tr>
+ <th>#{i18n.edit_consumer_endpoint_pm}</th>
+ <td>
+ <h:inputText id="pm" size="70"
value="#{consumer.portletManagement}"/>
+ <h:message
+ styleClass="portlet-msg-error"
for="pm"/>
+ </td>
+ </tr>
+ </table>
+ </h:panelGroup>
+ </td>
+ </tr>
+ <c:if test="#{consumer.localInfoPresent}">
+ <tr>
+ <th>#{i18n.edit_consumer_registration}</th>
+ <td>
+ <c:choose>
+ <c:when test="#{consumer.localInfoPresent}">
+ <h3
class="portlet-area-header">#{i18n.edit_consumer_registration_current}</h3>
+ <h:panelGroup styleClass="portlet-area-body">
+ <c:choose>
+ <c:when
test="#{consumer.registrationPropertiesEmpty}">
+ <h:dataTable id="existingProps"
+
value="#{consumer.registrationProperties}" var="prop"
+
rowClasses="portlet-section-body,portlet-section-alternate"
+
columnClasses="nameColumn,descColumn,"
+ headerClass="portlet-section-header
#{consumer.active ? 'active' : 'inactive'}"
+ styleClass="registration-prop-table
#{consumer.active ? 'active' : 'inactive'}"
+ width="100%">
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_name}</f:facet>
+ #{prop.name}
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_desc}</f:facet>
+ #{prop.description.label.value}
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_value}</f:facet>
+ <!-- todo: valueChangeListener not needed
anymore when events on RegistrationProperties work -->
+ <h:inputText id="prop-value-input"
value="#{prop.value}" size="50"
+
valueChangeListener="#{consumer.regPropListener}"
+
disabled="#{consumer.registrationModified}"/>
+ <h:outputText
styleClass="portlet-msg-error" value="#{prop.status}"
+
rendered="#{prop.determinedInvalid}"
+
converter="faces.convert.RegistrationProperty.Status"/>
+ </h:column>
+ </h:dataTable>
+ <h:commandLink id="cons-update-link"
action="#{consumer.update}"
+
value="#{i18n.edit_consumer_registration_update_props}"
+
rendered="#{consumer.registered}"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ </c:when>
+ <c:otherwise>
+ #{i18n.edit_consumer_registration_no_props}
+ </c:otherwise>
+ </c:choose>
+ <h:commandLink id="modify-reg-link"
action="#{consumer.modifyRegistration}"
+
value="#{i18n.edit_consumer_registration_modify}"
+
rendered="#{consumer.registrationLocallyModified}"
+
title="#{i18n.edit_consumer_registration_modify_title}"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ <br style="clear:both;"/>
+ </h:panelGroup>
+
+ <br/>
+
+ <c:if test="#{consumer.registrationModified}">
+ <h3
class="portlet-area-header">#{i18n.edit_consumer_registration_expected}</h3>
+ <h:panelGroup styleClass="portlet-area-body">
+ <c:choose>
+ <c:when
test="#{consumer.expectedRegistrationPropertiesEmpty}">
+ <h:dataTable id="expectedProps"
+
value="#{consumer.expectedRegistrationProperties}" var="prop"
+
rowClasses="portlet-section-body,portlet-section-alternate"
+
columnClasses="nameColumn,descColumn,"
+ headerClass="portlet-section-header
#{consumer.active ? 'active' : 'inactive'}"
+ styleClass="registration-prop-table
#{consumer.active ? 'active' : 'inactive'}"
+ width="100%">
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_name}</f:facet>
+ #{prop.name}
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_desc}</f:facet>
+ #{prop.description.label.value}
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_value}</f:facet>
+ <h:inputText id="prop-value-input"
value="#{prop.value}" size="50"/>
+ <h:outputText
styleClass="portlet-msg-error" value="#{prop.status}"
+
rendered="#{prop.determinedInvalid}"
+
converter="faces.convert.RegistrationProperty.Status"/>
+ </h:column>
+ </h:dataTable>
+ </c:when>
+ <c:otherwise>
+ #{i18n.edit_consumer_registration_no_props}
+ </c:otherwise>
+ </c:choose>
+ <h:commandLink id="edit-reg-link"
action="#{consumer.modifyRegistration}"
+
value="#{i18n.edit_consumer_registration_modify}"
+
title="#{i18n.edit_consumer_registration_modify_title}"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ <br style="clear:both;"/>
+ </h:panelGroup>
+ </c:if>
+ </c:when>
+ <c:when test="#{consumer.registrationChecked and
!consumer.registrationRequired}">
+ #{i18n.edit_consumer_no_registration}
+ </c:when>
+ </c:choose>
+ </td>
+ </tr>
+ <c:if test="#{!empty
consumer.producerInfo.registrationInfo.registrationHandle}">
+ <tr>
+ <th>#{i18n.edit_consumer_registration_context}</th>
+ <td id="handle">
+ #{i18n.edit_consumer_registration_context_handle}
+ <h:outputText
+
value="#{consumer.producerInfo.registrationInfo.registrationHandle}"/>
+ <h:commandLink id="erase-cons-link"
action="confirmEraseRegistration"
+
value="#{i18n.edit_consumer_registration_context_erase}"
+
title="#{i18n.edit_consumer_registration_context_erase_title}"
+ styleClass="portlet-form-button"/>
+ </td>
+ </tr>
+ </c:if>
+ </c:if>
+ <tr>
+ <th/>
+ <td class="portlet-section-buttonrow">
+ <h:commandButton id="refresh-cons-link"
action="#{consumer.refreshConsumer}"
+ value="#{i18n.edit_consumer_refresh}"
+ title="#{i18n.edit_consumer_refresh_title}"
+ styleClass="portlet-form-button"/>
+ <h:commandLink id="list-cons-link"
action="#{consumersMgr.listConsumers}"
+ value="#{i18n.edit_consumer_cancel}"
immediate="true"
+ styleClass="portlet-form-button"/>
+ </td>
+ </tr>
+ </table>
+ </h:form>
+</ui:define>
+</ui:decorate>
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/management/management.xhtml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/management/management.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/management/management.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,35 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:decorate template="managementTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+ <ui:param name="title" value="Producer Management"/>
+
+ <ui:define name="content">
+ <p>Feature not quite ready yet! Check again in future versions of
Portal.</p>
+ </ui:define>
+</ui:decorate>
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/management/managementTemplate.xhtml
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/management/managementTemplate.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/management/managementTemplate.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,45 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:decorate template="../common/template.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+ <ui:define name="topnav">
+ <h:form id="management-temp-link">
+ <ul class="topnav">
+ <li>
+ <h:commandLink id="consumers" action="consumers"
value="#{i18n.nav_tabs_consumers}"/>
+ </li>
+ <li>
+ <h:commandLink id="producer" action="producer"
value="#{i18n.nav_tabs_producer_config}"/>
+ </li>
+ <li
id="currentTab">#{i18n.nav_tabs_producer_management}</li>
+ </ul>
+ </h:form>
+ </ui:define>
+
+ <ui:define name="objectpath"/>
+</ui:decorate>
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/confirmPropDeletion.xhtml
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/confirmPropDeletion.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/confirmPropDeletion.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,65 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:decorate template="producerTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:jbp="http://www.jboss.org/portal"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+ <ui:param name="title" value=""/>
+ <ui:define name="content">
+
+ <div class="portlet-msg">
+ <div class="portlet-msg-icon">
+ <h:graphicImage url="/img/msgIcon_Warning.gif"
alt="/!\"/>
+ </div>
+ <div class="portlet-msg-body">
+ <h3>
+ <h:outputFormat
value="#{i18n.confirm_delete_reg_property_title}">
+ <f:param value="#{producer.selectedPropertyName}"/>
+ </h:outputFormat>
+ </h3>
+
+ <p class="portlet-msg-alert">
+ <h:outputFormat
value="#{i18n.confirm_delete_reg_property_message}">
+ <f:param value="#{producer.selectedPropertyName}"/>
+ </h:outputFormat>
+ </p>
+
+ <p
class="portlet-class">#{i18n.confirm_delete_reg_property_proceed}</p>
+
+ <h:form id="confirm-prop-del-form">
+ <h:commandButton id="confirm-delete"
value="#{i18n.confirm_delete_reg_property_submit}"
+
action="#{producer.deleteRegistrationProperty}"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ <h:commandButton id="cancel-delete"
value="#{i18n.confirm_delete_reg_property_cancel}" action="producer"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ </h:form>
+ </div>
+ </div>
+
+ </ui:define>
+
+</ui:decorate>
\ No newline at end of file
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/producer.xhtml
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/producer.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/producer.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,122 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:decorate template="producerTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+ <ui:param name="title"
value="#{i18n.producer_config_title}"/>
+
+ <ui:define name="content">
+ <h:form id="producer-form">
+ <h:panelGrid columns="2" width="100%">
+ <h:selectBooleanCheckbox id="cons-reg-req-check"
+
value="#{producer.registrationRequiredForFullDescription}"/>
+ <h:outputText
value="#{i18n.producer_config_sd_requires_reg}"/>
+ <h:selectBooleanCheckbox value="#{producer.strictMode}"/>
+ <h:outputText value="#{i18n.producer_config_strict}"/>
+
+ <h:selectBooleanCheckbox id="req-reg-check"
value="#{producer.registrationRequired}" immediate="true"
+ onclick="this.form.submit()"
+
valueChangeListener="#{producer.requireRegistrationListener}"/>
+ <h:outputText value="#{i18n.producer_config_requires_reg}"/>
+
+ <h:outputText value=" "
rendered="#{producer.registrationRequired}"/>
+ <h:panelGroup rendered="#{producer.registrationRequired}">
+ <h:panelGrid columns="2" width="100%">
+ <h:outputLabel value="#{i18n.producer_config_reg_policy}"
for="registrationPolicy"/>
+ <h:inputText id="registrationPolicy"
value="#{producer.registrationPolicyClassName}" size="80"/>
+
+ <h:outputLabel
value="#{i18n.producer_config_reg_prop_validator}" for="validator"
+
rendered="#{producer.defaultRegistrationPolicy}"/>
+ <h:inputText id="validator"
value="#{producer.validatorClassName}" size="80"
+
rendered="#{producer.defaultRegistrationPolicy}"/>
+
+ </h:panelGrid>
+ </h:panelGroup>
+
+ <h:outputText value=" "
rendered="#{producer.registrationRequired}"/>
+ <h:panelGroup rendered="#{producer.registrationRequired}">
+ <h:outputText styleClass="portlet-area-header"
value="#{i18n.producer_config_reg_props}"/>
+ <h:panelGroup styleClass="portlet-area-body">
+ <c:choose>
+ <c:when test="#{!empty
producer.registrationProperties}">
+ <h:dataTable id="reg-properties"
var="property" width="100%"
+
value="#{producer.registrationProperties}"
+
rendered="#{producer.registrationRequired}"
+ headerClass="portlet-section-header">
+ <h:column>
+ <f:facet
name="header">#{i18n.producer_config_reg_prop_name}</f:facet>
+ <h:inputText id="name"
value="#{property.nameAsString}" size="30"/>
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.producer_config_reg_prop_type}</f:facet>
+ <h:selectOneListbox id="producer-list"
disabled="true">
+ <f:selectItems
value="#{producer.supportedPropertyTypes}"/>
+ </h:selectOneListbox>
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.producer_config_reg_prop_label}</f:facet>
+ <h:inputText id="label"
value="#{property.label}" size="50"/>
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.producer_config_reg_prop_hint}</f:facet>
+ <h:inputText id="hint"
value="#{property.hint}" size="50"/>
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.producer_config_reg_prop_action}</f:facet>
+ <h:commandLink id="confirm-delete"
action="confirmPropDeletion"
+
value="#{i18n.producer_config_reg_prop_remove}"
+ styleClass="portlet-form-button"
+
actionListener="#{producer.selectProperty}">
+ <f:param name="propName"
value="#{property.nameAsString}"/>
+ </h:commandLink>
+ </h:column>
+ </h:dataTable>
+ </c:when>
+ <c:otherwise>
+ <h:outputText
value="#{i18n.producer_config_no_reg_props}"/>
+ </c:otherwise>
+ </c:choose>
+
+ <h:commandLink id="add-reg-prop"
action="#{producer.addRegistrationProperty}"
+ value="#{i18n.producer_config_add_reg_prop}"
+ styleClass="portlet-form-button"/>
+ </h:panelGroup>
+ </h:panelGroup>
+
+ <h:outputText value=" "/>
+ <h:panelGroup styleClass="portlet-section-buttonrow">
+ <h:commandButton id="save-producer"
action="#{producer.save}" value="#{i18n.producer_config_save}"
+ styleClass="portlet-form-button"/>
+ <h:commandButton id="reload-producer"
action="#{producer.reloadConfiguration}"
+ value="#{i18n.producer_config_cancel}"
+ styleClass="portlet-form-button"/>
+ </h:panelGroup>
+ </h:panelGrid>
+ </h:form>
+
+ </ui:define>
+</ui:decorate>
\ No newline at end of file
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/producerTemplate.xhtml
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/producerTemplate.xhtml
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/jsf/producer/producerTemplate.xhtml 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,48 @@
+<!--
+ ~ JBoss, a division of Red Hat
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:decorate template="../common/template.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+ <ui:define name="topnav">
+ <h:form id="producer-temp-form">
+ <ul class="topnav">
+ <li>
+ <h:commandLink id="consumersTab" action="consumers"
value="#{i18n.nav_tabs_consumers}"/>
+ </li>
+ <li
id="currentTab">#{i18n.nav_tabs_producer_config}</li>
+ <ui:remove>
+ <li>
+ <h:commandLink id="prod-manag-link"
value="#{i18n.nav_tabs_producer_management}"
+ action="management"/>
+ </li>
+ </ui:remove>
+ </ul>
+ </h:form>
+ </ui:define>
+
+ <ui:define name="objectpath"/>
+</ui:decorate>
\ No newline at end of file
Added: jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/style.css
===================================================================
--- jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/style.css
(rev 0)
+++ jbossexo/modules/wsrp/trunk/admin-gui/src/main/webapp/style.css 2009-08-27 11:53:22
UTC (rev 13794)
@@ -0,0 +1,350 @@
+@import url(basestyles.css);
+
+.wsrp-consumers-ui table {
+ border: 0;
+ border-collapse: separate;
+}
+
+.wsrp-consumers-ui form {
+ margin: 0;
+ border: 0;
+}
+
+.wsrp-consumers-ui hr {
+ border-top-style: solid;
+}
+
+/* Top nav. */
+
+.wsrp-consumers-ui ul.topnav {
+ padding: 4px 0 3px;
+ border-bottom: 1px solid #b3c0c7;
+ margin: 0;
+}
+
+.wsrp-consumers-ui ul.topnav li {
+ list-style-type: none;
+ display: inline;
+ margin: 0 0 0 5px;
+ padding: 3px 0.5em;
+ border: 1px solid #b3c0c7;
+ border-bottom: none;
+ background-color: #f2f4f5;
+}
+
+.wsrp-consumers-ui ul.topnav li:hover {
+ background-color: #fff;
+}
+
+.wsrp-consumers-ui ul.topnav li#currentTab {
+ background-color: white;
+ border-bottom: 1px solid white;
+}
+
+.wsrp-consumers-ui ul.topnav li#currentTab a:hover {
+}
+
+.wsrp-consumers-ui div.tab-container {
+ border-bottom: 1px solid #B3C0C7;
+ border-right: 1px solid #B3C0C7;
+ border-left: 1px solid #B3C0C7;
+ padding: 15px 0 10px 0;
+}
+
+/* Object path. */
+
+.wsrp-consumers-ui ul.objectpath {
+ list-style-type: none;
+ font-size: 11px;
+ border: solid 1px #bbb;
+ border-left: solid 1px #eee;
+ border-right: solid 1px #eee;
+ background: url(img/pathBackground.png) repeat-x left;
+ height: 21px;
+ margin: 0;
+ padding: 0 0 0 2px;
+}
+
+.wsrp-consumers-ui ul.objectpath li {
+ list-style-type: none;
+ display: block;
+ float: left;
+}
+
+.wsrp-consumers-ui ul li.pathItem {
+ padding-top: 4px;
+ padding-left: 3px;
+ padding-right: 2px;
+}
+
+.wsrp-consumers-ui ul.objectpath li.selected {
+ font-weight: bold;
+ padding-top: 4px;
+ padding-left: 3px;
+ padding-right: 2px;
+}
+
+.wsrp-consumers-ui ul.objectpath a {
+ color: #333333;
+ text-decoration: none;
+}
+
+.wsrp-consumers-ui ul.objectpath a:hover {
+ color: #5078aa;
+ text-decoration: none;
+}
+
+/* Override theme styles */
+.wsrp-consumers-ui h3.sectionTitle {
+ font-weight: bold;
+ color: #315896;
+ font-size: 11px;
+ padding: 3px 0 3px 3px;
+ background: url(img/section-subHeader-bg.gif) repeat-x left top;
+ border: 1px solid #b9c6d7;
+}
+
+.wsrp-consumers-ui .portlet-section-header {
+ background: url(img/pathBackground.png) repeat-x left;
+ font-weight: bold;
+ color: #656565;
+ font-size: 10px;
+ border-top: 1px solid #ddd;
+ border-bottom: 1px solid #999;
+ padding-left: 4px;
+}
+
+.wsrp-consumers-ui .portlet-section-header th {
+ background: url(img/pathBackground.png) repeat-x left;
+ font-weight: bold;
+ color: #656565;
+ font-size: 10px;
+ border-top: 1px solid #ddd;
+ border-bottom: 1px solid #999;
+ padding-left: 4px;
+}
+
+.wsrp-consumers-ui .actionConfigure {
+ padding: 5px 5px 5px 20px;
+ background: url(img/jbp-icon-set/settings.gif) no-repeat left;
+ line-height: 18px;
+ white-space: nowrap;
+}
+
+.wsrp-consumers-ui .actionRefresh {
+ padding: 5px 5px 5px 20px;
+ background: url(img/jbp-icon-set/refresh.gif) no-repeat left;
+ line-height: 18px;
+ white-space: nowrap;
+}
+
+.wsrp-consumers-ui .actionRegister {
+ padding: 5px 5px 5px 24px;
+ background: url(img/jbp-icon-set/register.gif) no-repeat left;
+ line-height: 18px;
+ white-space: nowrap;
+}
+
+.wsrp-consumers-ui .actionDeregister {
+ padding: 5px 5px 5px 24px;
+ background: url(img/jbp-icon-set/deregister.gif) no-repeat left;
+ line-height: 18px;
+ white-space: nowrap;
+}
+
+.wsrp-consumers-ui .actionDelete {
+ padding: 5px 5px 5px 20px;
+ background: url(img/jbp-icon-set/delete2.gif) no-repeat left;
+ line-height: 18px;
+ white-space: nowrap;
+}
+
+.wsrp-consumers-ui .actionActivate {
+ padding: 5px 5px 5px 23px;
+ background: url(img/jbp-icon-set/activate.gif) no-repeat left;
+ line-height: 18px;
+ white-space: nowrap;
+}
+
+.wsrp-consumers-ui .actionDeactivate {
+ padding: 5px 5px 5px 20px;
+ background: url(img/jbp-icon-set/deactivate.gif) no-repeat left;
+ line-height: 18px;
+ white-space: nowrap;
+}
+
+.wsrp-consumers-ui td {
+ border: 0;
+ padding-bottom: 2px;
+ padding-top: 2px;
+ vertical-align: top;
+}
+
+.wsrp-consumers-ui th {
+ text-align: left;
+ border: 0;
+ vertical-align: top;
+}
+
+.wsrp-consumers-ui .active {
+ background-color: #C7DDB7;
+ font-weight: bold;
+}
+
+.wsrp-consumers-ui table.active {
+ border-bottom: 4px solid #C7DDB7;
+ border-top: 4px solid #C7DDB7;
+ background: inherit;
+ font-weight: normal;
+}
+
+.wsrp-consumers-ui li.active {
+ font-weight: normal;
+ padding-top: 4px;
+ padding-left: 3px;
+ padding-right: 2px;
+ background: inherit;
+}
+
+.wsrp-consumers-ui li.active:before {
+ content: "__";
+ padding: 1px;
+ background-color: #C7DDB7;
+ color: #C7DDB7;
+ border: 1px solid #999;
+}
+
+.wsrp-consumers-ui .inactive {
+ background-color: #EBD1B8;
+}
+
+.wsrp-consumers-ui table.inactive {
+ border-bottom: 4px solid #EBD1B8;
+ border-top: 4px solid #EBD1B8;
+ background: inherit;
+}
+
+.wsrp-consumers-ui li.inactive {
+ font-weight: normal;
+ padding-top: 4px;
+ padding-left: 3px;
+ padding-right: 2px;
+ background: inherit;
+}
+
+.wsrp-consumers-ui li.inactive:before {
+ content: "__";
+ padding: 1px;
+ background-color: #EBD1B8;
+ color: #EBD1B8;
+ border: 1px solid #999;
+}
+
+.wsrp-consumers-ui .needsRefresh {
+ font-style: italic;
+}
+
+.wsrp-consumers-ui .registration-prop-table {
+ text-align: left;
+ width: 100%;
+ margin-bottom: .3em;
+}
+
+.wsrp-consumers-ui .registration-prop-table.active {
+ border: 1px solid #C7DDB7;
+}
+
+.wsrp-consumers-ui .registration-prop-table.active th {
+ background: #C7DDB7 none;
+}
+
+.wsrp-consumers-ui .registration-prop-table.active .portlet-section-alternate {
+ background: #dcf0d0;
+}
+
+.wsrp-consumers-ui .registration-prop-table.inactive, .wsrp-consumers-ui span.inactive {
+ border: 1px solid #EBD1B8;
+}
+
+.wsrp-consumers-ui .registration-prop-table.inactive th {
+ background: #EBD1B8 none;
+}
+
+.wsrp-consumers-ui .registration-prop-table.inactive .portlet-section-alternate {
+ background: #f0f0dd;
+}
+
+.wsrp-consumers-ui .registration-prop-table .nameColumn {
+ width: 20%;
+}
+
+.wsrp-consumers-ui .registration-prop-table .descColumn {
+ width: 20%;
+}
+
+.wsrp-consumers-ui .portlet-section-buttonrow {
+ margin-top: 6px;
+ margin-bottom: 6px;
+ float: right;
+}
+
+.wsrp-consumers-ui #handle a.portlet-form-button {
+ padding: .2em;
+ margin-left: 3em;
+}
+
+.wsrp-consumers-ui .portlet-form-button {
+ padding: .2em;
+ margin: 0 .3em;
+}
+
+.portlet-msg-status:before {
+ content: "Info: "
+}
+
+.portlet-msg-error:before {
+ content: "Error: "
+}
+
+.portlet-msg-alert:before {
+ content: "Warning: "
+}
+
+.wsrp-consumers-ui .portlet-area-header {
+ border: 1px solid #54708c;
+ font-weight: bold;
+ color: #fff;
+ font-size: 11px;
+ background-color: #5986b3;
+ padding: 2px 2px 2px 4px;
+ margin: 0;
+ display: block;
+}
+
+.wsrp-consumers-ui .portlet-area-body {
+ border: 1px solid #d5d5d5;
+ border-top: 0;
+ background-color: #fff;
+ padding: 4px;
+ margin: 0;
+ display: block;
+}
+
+.wsrp-consumers-ui .portlet-msg {
+ border: 1px solid #bbb;
+ margin: 2em auto;
+ padding: 1em;
+ width: 60%;
+}
+
+.wsrp-consumers-ui .portlet-msg-body {
+ position: relative;
+ top: -3em;
+ left: 3em;
+ width: 95%;
+}
+
+.wsrp-consumers-ui .wsrp-content-container {
+ margin: 0 auto 0 auto;
+ width: 98%;
+}
Added:
jbossexo/modules/wsrp/trunk/admin-gui/src/test/java/org/jboss/portal/wsrp/other/ConsumerBeanTestCase.java
===================================================================
---
jbossexo/modules/wsrp/trunk/admin-gui/src/test/java/org/jboss/portal/wsrp/other/ConsumerBeanTestCase.java
(rev 0)
+++
jbossexo/modules/wsrp/trunk/admin-gui/src/test/java/org/jboss/portal/wsrp/other/ConsumerBeanTestCase.java 2009-08-27
11:53:22 UTC (rev 13794)
@@ -0,0 +1,110 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.jboss.portal.wsrp.other;
+
+import junit.framework.TestCase;
+import org.jboss.portal.wsrp.admin.ui.ConsumerBean;
+
+/**
+ * TODO: re-activate tests once test-support module is updated.
+ *
+ * @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
+ * @version $Revision: 12612 $
+ * @since 2.6
+ */
+public class ConsumerBeanTestCase extends TestCase
+{
+ private ConsumerBean bean;
+
+ protected void setUp() throws Exception
+ {
+ bean = new ConsumerBean();
+// bean.setRegistry(new MockConsumerRegistry());
+
+ // consumer associated with bean is null at this point so it should be loaded from
the registry
+// bean.setId(MockConsumerRegistry.CONSUMER2);
+ }
+
+ // todo: remove when tests are re-activated
+ public void testNothing()
+ {
+ assertTrue(true);
+ }
+
+ /*public void testInitialState()
+ {
+// assertEquals(MockConsumerRegistry.CONSUMER2, bean.getId());
+// assertEquals(MockConsumerRegistry.MOCK_MARKUP, bean.getMarkup());
+// assertEquals(MockConsumerRegistry.MOCK_SERVICE_DESCRIPTION,
bean.getServiceDescription());
+ assertFalse(bean.isModified());
+ }
+
+ public void testSetId()
+ {
+ String newId = "newId";
+ bean.setId(newId);
+ assertEquals(newId, bean.getId());
+ assertTrue(bean.isModified());
+ }
+
+ public void testSetCache()
+ {
+ bean.setCache(300);
+ assertEquals(300, bean.getCache().intValue());
+ assertTrue(bean.isModified());
+ }
+
+ private static class TestBeanContext extends BeanContext
+ {
+ public String getParameter(String key)
+ {
+ throw new NotYetImplemented();
+ }
+
+ protected void createMessage(String target, String message, Object severity)
+ {
+ // ignore for tests
+ }
+
+ protected Object getErrorSeverity()
+ {
+ return null;
+ }
+
+ protected Object getInfoSeverity()
+ {
+ return null;
+ }
+
+ protected Locale getLocale()
+ {
+ return Locale.getDefault();
+ }
+
+ public Map<String, Object> getSessionMap()
+ {
+ throw new NotYetImplemented();
+ }
+ }*/
+}
Modified: jbossexo/modules/wsrp/trunk/pom.xml
===================================================================
--- jbossexo/modules/wsrp/trunk/pom.xml 2009-08-27 08:52:48 UTC (rev 13793)
+++ jbossexo/modules/wsrp/trunk/pom.xml 2009-08-27 11:53:22 UTC (rev 13794)
@@ -50,14 +50,11 @@
<modules>
<module>build</module>
<module>api</module>
- <!--<module>wsrp1-rpc</module>-->
<module>wsrp1-ws</module>
<module>common</module>
- <!--<module>test-support</module>-->
+ <module>test-support</module>
<module>producer</module>
<module>consumer</module>
- <!--<module>admin-gui</module>-->
- <!--<module>service</module>-->
- <!--<module>package</module>-->
+ <module>admin-gui</module>
</modules>
</project>
\ No newline at end of file