[jboss-svn-commits] JBoss Portal SVN: r5588 - trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Nov 5 12:48:43 EST 2006
Author: julien at jboss.com
Date: 2006-11-05 12:48:39 -0500 (Sun, 05 Nov 2006)
New Revision: 5588
Added:
trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/RegistrationStatus.java
Modified:
trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/Consumer.java
trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/ConsumerRegistration.java
Log:
added notion of registration status for consumer and their registrations
Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/Consumer.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/Consumer.java 2006-11-05 17:09:48 UTC (rev 5587)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/Consumer.java 2006-11-05 17:48:39 UTC (rev 5588)
@@ -40,6 +40,13 @@
String getName();
/**
+ * Return the registration status of the consumer entity.
+ *
+ * @return the registration stats.
+ */
+ RegistrationStatus getState();
+
+ /**
* Return all the registrations for the specified consumer.
*
* @return the consumer registrations
Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/ConsumerRegistration.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/ConsumerRegistration.java 2006-11-05 17:09:48 UTC (rev 5587)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/ConsumerRegistration.java 2006-11-05 17:48:39 UTC (rev 5588)
@@ -23,7 +23,7 @@
package org.jboss.portal.wsrp.registration.producer;
/**
- * A registration.
+ * A registration for a specific consumer.
*
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
* @version $Revision: 1.1 $
@@ -36,4 +36,18 @@
* @return the registration id
*/
String getId();
+
+ /**
+ * Return the consumer owning this registration.
+ *
+ * @return the owning consumer
+ */
+ Consumer getConsumer();
+
+ /**
+ * Return the status of this specific registration.
+ *
+ * @return the status
+ */
+ RegistrationStatus getStatus();
}
Added: trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/RegistrationStatus.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/RegistrationStatus.java 2006-11-05 17:09:48 UTC (rev 5587)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/registration/producer/RegistrationStatus.java 2006-11-05 17:48:39 UTC (rev 5588)
@@ -0,0 +1,45 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, 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.registration.producer;
+
+/**
+ * Type safe enumeration that describes the status of a registration.
+ *
+ * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public class RegistrationStatus
+{
+ /** The registration is valid. */
+ public static final RegistrationStatus VALID = new RegistrationStatus();
+
+ /** The registration is waiting for validation. */
+ public static final RegistrationStatus PENDING = new RegistrationStatus();
+
+ /** The registration is not valid. */
+ public static final RegistrationStatus INVALID = new RegistrationStatus();
+
+ private RegistrationStatus()
+ {
+ }
+}
More information about the jboss-svn-commits
mailing list