You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by sv...@apache.org on 2006/06/28 17:01:22 UTC
svn commit: r417776 -
/webservices/juddi/trunk/src/java/org/apache/juddi/datatype/publisher/Publisher.java
Author: sviens
Date: Wed Jun 28 08:01:22 2006
New Revision: 417776
URL: http://svn.apache.org/viewvc?rev=417776&view=rev
Log:
Added instance variables to hold max business, service, binding and tmodel values INSERTED/SELECTED from the PUBLISHER TABLE.
Modified:
webservices/juddi/trunk/src/java/org/apache/juddi/datatype/publisher/Publisher.java
Modified: webservices/juddi/trunk/src/java/org/apache/juddi/datatype/publisher/Publisher.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/src/java/org/apache/juddi/datatype/publisher/Publisher.java?rev=417776&r1=417775&r2=417776&view=diff
==============================================================================
--- webservices/juddi/trunk/src/java/org/apache/juddi/datatype/publisher/Publisher.java (original)
+++ webservices/juddi/trunk/src/java/org/apache/juddi/datatype/publisher/Publisher.java Wed Jun 28 08:01:22 2006
@@ -23,165 +23,221 @@
*/
public class Publisher implements RegistryObject
{
- private String publisherID;
- private String nameValue;
- private String emailAddress;
- private boolean admin;
- private boolean enabled;
-
- /**
- *
- */
- public Publisher()
- {
- }
-
- /**
- *
- */
- public Publisher(String pubID,String name)
- {
- this.publisherID = pubID;
- this.nameValue = name;
- }
-
- /**
- *
- */
- public Publisher(String pubID,String name,boolean adminValue)
- {
- this(pubID,name);
- this.admin = adminValue;
- }
-
- /**
- *
- */
- public void setPublisherID(String pubID)
- {
- this.publisherID = pubID;
- }
-
- /**
- *
- */
- public String getPublisherID()
- {
- return this.publisherID;
- }
-
- /**
- * Sets the name of this Publisher to the given name.
- *
- * @param name The new name of this Publisher.
- */
- public void setName(String name)
- {
- this.nameValue = name;
- }
-
- /**
- * Returns the name of this Publisher as a String.
- *
- * @return The name of this Publisher.
- */
- public String getName()
- {
- return this.nameValue;
- }
-
- /**
- * Sets the name of this Publisher to the given name.
- *
- * @param name The new name of this Publisher.
- */
- public void setName(Name name)
- {
- if (name != null)
- this.nameValue = name.getValue();
- else
- this.nameValue = null;
- }
-
- /**
- *
- */
- public void setEmailAddress(String email)
- {
- this.emailAddress = email;
- }
-
- /**
- *
- */
- public String getEmailAddress()
- {
- return this.emailAddress;
- }
-
- /**
- *
- */
- public void setAdmin(boolean adminValue)
- {
- this.admin = adminValue;
- }
-
- /**
- *
- */
- public void setAdminValue(String adminValue)
- {
- if (adminValue == null)
- this.admin = false;
- else
- this.admin = (adminValue.equalsIgnoreCase("true"));
- }
-
- /**
- *
- */
- public boolean isAdmin()
- {
- return this.admin;
- }
-
-
- /**
- *
- */
- public void setEnabled(boolean enabledValue)
- {
- this.enabled = enabledValue;
- }
-
- /**
- *
- */
- public void setEnabledValue(String enabledValue)
- {
- if (enabledValue == null)
- this.enabled = false;
- else
- this.enabled = (enabledValue.equalsIgnoreCase("true"));
- }
-
- /**
- *
- */
- public boolean isEnabled()
- {
- return this.enabled;
- }
-
-
- /***************************************************************************/
- /***************************** TEST DRIVER *********************************/
- /***************************************************************************/
-
-
- // test-driver
- public static void main(String[] args)
- {
- }
+ private String publisherID;
+ private String nameValue;
+ private String emailAddress;
+ private boolean admin;
+ private boolean enabled;
+ private int maxBusinesses;
+ private int maxServices;
+ private int maxBindings;
+ private int maxTModels;
+
+ /**
+ *
+ */
+ public Publisher()
+ {
+ }
+
+ /**
+ *
+ */
+ public Publisher(String pubID,String name)
+ {
+ this.publisherID = pubID;
+ this.nameValue = name;
+ }
+
+ /**
+ *
+ */
+ public Publisher(String pubID,String name,boolean adminValue)
+ {
+ this(pubID,name);
+ this.admin = adminValue;
+ }
+
+ /**
+ *
+ */
+ public void setPublisherID(String pubID)
+ {
+ this.publisherID = pubID;
+ }
+
+ /**
+ *
+ */
+ public String getPublisherID()
+ {
+ return this.publisherID;
+ }
+
+ /**
+ * Sets the name of this Publisher to the given name.
+ *
+ * @param name The new name of this Publisher.
+ */
+ public void setName(String name)
+ {
+ this.nameValue = name;
+ }
+
+ /**
+ * Returns the name of this Publisher as a String.
+ *
+ * @return The name of this Publisher.
+ */
+ public String getName()
+ {
+ return this.nameValue;
+ }
+
+ /**
+ * Sets the name of this Publisher to the given name.
+ *
+ * @param name The new name of this Publisher.
+ */
+ public void setName(Name name)
+ {
+ if (name != null)
+ this.nameValue = name.getValue();
+ else
+ this.nameValue = null;
+ }
+
+ /**
+ *
+ */
+ public void setEmailAddress(String email)
+ {
+ this.emailAddress = email;
+ }
+
+ /**
+ *
+ */
+ public String getEmailAddress()
+ {
+ return this.emailAddress;
+ }
+
+ /**
+ *
+ */
+ public void setAdmin(boolean adminValue)
+ {
+ this.admin = adminValue;
+ }
+
+ /**
+ *
+ */
+ public void setAdminValue(String adminValue)
+ {
+ if (adminValue == null)
+ this.admin = false;
+ else
+ this.admin = (adminValue.equalsIgnoreCase("true"));
+ }
+
+ /**
+ *
+ */
+ public boolean isAdmin()
+ {
+ return this.admin;
+ }
+
+ /**
+ *
+ */
+ public void setEnabled(boolean enabledValue)
+ {
+ this.enabled = enabledValue;
+ }
+
+ /**
+ *
+ */
+ public void setEnabledValue(String enabledValue)
+ {
+ if (enabledValue == null)
+ this.enabled = false;
+ else
+ this.enabled = (enabledValue.equalsIgnoreCase("true"));
+ }
+
+ /**
+ *
+ */
+ public boolean isEnabled()
+ {
+ return this.enabled;
+ }
+
+ /**
+ *
+ */
+ public void setMaxBusinesses(int max)
+ {
+ this.maxBusinesses = max;
+ }
+
+ /**
+ *
+ */
+ public int getMaxBusinesses()
+ {
+ return this.maxBusinesses;
+ }
+
+ /**
+ *
+ */
+ public void setMaxServices(int max)
+ {
+ this.maxServices = max;
+ }
+
+ /**
+ *
+ */
+ public int getMaxServices()
+ {
+ return this.maxServices;
+ }
+
+ /**
+ *
+ */
+ public void setMaxBindings(int max)
+ {
+ this.maxBindings = max;
+ }
+
+ /**
+ *
+ */
+ public int getMaxBindings()
+ {
+ return this.maxBindings;
+ }
+
+ /**
+ *
+ */
+ public void setMaxTModels(int max)
+ {
+ this.maxTModels = max;
+ }
+
+ /**
+ *
+ */
+ public int getMaxTModels()
+ {
+ return this.maxTModels;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org