Author: anil
Date: Wed Sep 20 08:02:18 2006
New Revision: 448222

URL: http://svn.apache.org/viewvc?view=rev&rev=448222
Log:
SCOUT-15:RegistryEntry should throw unsupportedcapabilityexception for level 1 
operations

Modified:
    
webservices/scout/branches/v0.7rc2/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/RegistryEntryImpl.java

Modified: 
webservices/scout/branches/v0.7rc2/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/RegistryEntryImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/scout/branches/v0.7rc2/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/RegistryEntryImpl.java?view=diff&rev=448222&r1=448221&r2=448222
==============================================================================
--- 
webservices/scout/branches/v0.7rc2/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/RegistryEntryImpl.java
 (original)
+++ 
webservices/scout/branches/v0.7rc2/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/RegistryEntryImpl.java
 Wed Sep 20 08:02:18 2006
@@ -17,6 +17,7 @@
 package org.apache.ws.scout.registry.infomodel;

 

 import javax.xml.registry.JAXRException;

+import javax.xml.registry.UnsupportedCapabilityException;

 import javax.xml.registry.LifeCycleManager;

 import javax.xml.registry.infomodel.RegistryEntry;

 import java.util.Date;

@@ -29,13 +30,6 @@
  */

 public class RegistryEntryImpl extends RegistryObjectImpl implements 
RegistryEntry

 {

-    private Date expiry = null;

-    private int major = 1;

-    private int minor = 0;

-    private int stability = 1;

-    private int status = 1;

-

-    private String userversion = new String();

 

     /**

      * Creates a new instance of RegistryEntryImpl

@@ -47,57 +41,56 @@
 

     public Date getExpiration() throws JAXRException

     {

-        return expiry;

+        throw new UnsupportedCapabilityException("Level 1 feature");

     }

 

     public int getMajorVersion() throws JAXRException

     {

-        return major;

+        throw new UnsupportedCapabilityException("Level 1 feature");

     }

 

     public int getMinorVersion() throws JAXRException

     {

-        return minor;

+       throw new UnsupportedCapabilityException("Level 1 feature");

     }

 

     public int getStability() throws JAXRException

     {

-        return stability;

+       throw new UnsupportedCapabilityException(); 

     }

 

     public int getStatus() throws JAXRException

     {

-        return status;

+       throw new UnsupportedCapabilityException(); 

     }

 

     public String getUserVersion() throws JAXRException

     {

-        return userversion;

+       throw new UnsupportedCapabilityException("Level 1 feature");

     }

 

     public void setExpiration(Date date) throws JAXRException

     {

-        expiry = date;

+       throw new UnsupportedCapabilityException("Level 1 feature");

     }

 

     public void setMajorVersion(int param) throws JAXRException

     {

-        major = param;

+       throw new UnsupportedCapabilityException("Level 1 feature");

     }

 

     public void setMinorVersion(int param) throws JAXRException

     {

-        minor = param;

+       throw new UnsupportedCapabilityException("Level 1 feature");

     }

 

     public void setStability(int param) throws JAXRException

     {

-        stability = param;

+       throw new UnsupportedCapabilityException("Level 1 feature");

     }

 

     public void setUserVersion(String str) throws JAXRException

     {

-        userversion = str;

+       throw new UnsupportedCapabilityException("Level 1 feature");

     }

-

 }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to