incubator-ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1069311 - in /incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin: NamedArtifactObject.java NamedDistributionObject.java NamedFeatureObject.java NamedObject.java NamedTargetObject.java
Date Thu, 10 Feb 2011 09:58:09 GMT
Author: marrs
Date: Thu Feb 10 09:58:09 2011
New Revision: 1069311

URL: http://svn.apache.org/viewvc?rev=1069311&view=rev
Log:
Extended named objects so they can also return the underlying RepositoryObject they are hiding.

Modified:
    incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedArtifactObject.java
    incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedDistributionObject.java
    incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedFeatureObject.java
    incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedObject.java
    incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedTargetObject.java

Modified: incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedArtifactObject.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedArtifactObject.java?rev=1069311&r1=1069310&r2=1069311&view=diff
==============================================================================
--- incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedArtifactObject.java
(original)
+++ incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedArtifactObject.java
Thu Feb 10 09:58:09 2011
@@ -1,5 +1,6 @@
 package org.apache.ace.webui.vaadin;
 
+import org.apache.ace.client.repository.RepositoryObject;
 import org.apache.ace.client.repository.object.ArtifactObject;
 
 public class NamedArtifactObject implements NamedObject {
@@ -20,4 +21,8 @@ public class NamedArtifactObject impleme
     public void setDescription(String description) {
         m_target.setDescription(description);
     }
+    
+    public RepositoryObject getObject() {
+        return m_target;
+    }
 }
\ No newline at end of file

Modified: incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedDistributionObject.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedDistributionObject.java?rev=1069311&r1=1069310&r2=1069311&view=diff
==============================================================================
--- incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedDistributionObject.java
(original)
+++ incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedDistributionObject.java
Thu Feb 10 09:58:09 2011
@@ -1,5 +1,6 @@
 package org.apache.ace.webui.vaadin;
 
+import org.apache.ace.client.repository.RepositoryObject;
 import org.apache.ace.client.repository.object.LicenseObject;
 
 public class NamedDistributionObject implements NamedObject {
@@ -20,4 +21,8 @@ public class NamedDistributionObject imp
     public void setDescription(String description) {
         m_target.setDescription(description);
     }
+    
+    public RepositoryObject getObject() {
+        return m_target;
+    }
 }
\ No newline at end of file

Modified: incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedFeatureObject.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedFeatureObject.java?rev=1069311&r1=1069310&r2=1069311&view=diff
==============================================================================
--- incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedFeatureObject.java
(original)
+++ incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedFeatureObject.java
Thu Feb 10 09:58:09 2011
@@ -1,5 +1,6 @@
 package org.apache.ace.webui.vaadin;
 
+import org.apache.ace.client.repository.RepositoryObject;
 import org.apache.ace.client.repository.object.GroupObject;
 
 public class NamedFeatureObject implements NamedObject {
@@ -20,4 +21,8 @@ public class NamedFeatureObject implemen
     public void setDescription(String description) {
         m_target.setDescription(description);
     }
+    
+    public RepositoryObject getObject() {
+        return m_target;
+    }
 }
\ No newline at end of file

Modified: incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedObject.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedObject.java?rev=1069311&r1=1069310&r2=1069311&view=diff
==============================================================================
--- incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedObject.java
(original)
+++ incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedObject.java
Thu Feb 10 09:58:09 2011
@@ -1,7 +1,10 @@
 package org.apache.ace.webui.vaadin;
 
+import org.apache.ace.client.repository.RepositoryObject;
+
 public interface NamedObject {
     String getName();
     String getDescription();
     void setDescription(String description);
+    RepositoryObject getObject();
 }
\ No newline at end of file

Modified: incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedTargetObject.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedTargetObject.java?rev=1069311&r1=1069310&r2=1069311&view=diff
==============================================================================
--- incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedTargetObject.java
(original)
+++ incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/NamedTargetObject.java
Thu Feb 10 09:58:09 2011
@@ -1,5 +1,6 @@
 package org.apache.ace.webui.vaadin;
 
+import org.apache.ace.client.repository.RepositoryObject;
 import org.apache.ace.client.repository.stateful.StatefulGatewayObject;
 
 class NamedTargetObject implements NamedObject {
@@ -20,4 +21,8 @@ class NamedTargetObject implements Named
     public void setDescription(String description) {
         throw new IllegalArgumentException();
     }
+
+    public RepositoryObject getObject() {
+        return m_target;
+    }
 }
\ No newline at end of file



Mime
View raw message