ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject git commit: AMBARI-6923. Views: add property to know if the view instance is xml defined or not.
Date Tue, 19 Aug 2014 20:17:54 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 51bebd3da -> e1eaf3a31


AMBARI-6923. Views: add property to know if the view instance is xml defined or not.


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e1eaf3a3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e1eaf3a3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e1eaf3a3

Branch: refs/heads/trunk
Commit: e1eaf3a3176b7e0c6fcb5a75547a0f9f0f0df79d
Parents: 51bebd3
Author: Siddharth Wagle <swagle@hortonworks.com>
Authored: Tue Aug 19 13:11:45 2014 -0700
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Tue Aug 19 13:11:45 2014 -0700

----------------------------------------------------------------------
 .../server/controller/internal/ViewInstanceResourceProvider.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e1eaf3a3/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ViewInstanceResourceProvider.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ViewInstanceResourceProvider.java
b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ViewInstanceResourceProvider.java
index c1a3d79..036fa13 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ViewInstanceResourceProvider.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ViewInstanceResourceProvider.java
@@ -63,6 +63,7 @@ public class ViewInstanceResourceProvider extends AbstractResourceProvider
{
   public static final String PROPERTIES_PROPERTY_ID    = "ViewInstanceInfo/properties";
   public static final String DATA_PROPERTY_ID          = "ViewInstanceInfo/instance_data";
   public static final String CONTEXT_PATH_PROPERTY_ID  = "ViewInstanceInfo/context_path";
+  public static final String STATIC_PROPERTY_ID        = "ViewInstanceInfo/static";
 
   /**
    * Property prefix values.
@@ -96,6 +97,7 @@ public class ViewInstanceResourceProvider extends AbstractResourceProvider
{
     propertyIds.add(PROPERTIES_PROPERTY_ID);
     propertyIds.add(DATA_PROPERTY_ID);
     propertyIds.add(CONTEXT_PATH_PROPERTY_ID);
+    propertyIds.add(STATIC_PROPERTY_ID);
   }
 
   // ----- Constructors ------------------------------------------------------
@@ -214,6 +216,7 @@ public class ViewInstanceResourceProvider extends AbstractResourceProvider
{
     setResourceProperty(resource, LABEL_PROPERTY_ID, viewInstanceEntity.getLabel(), requestedIds);
     setResourceProperty(resource, DESCRIPTION_PROPERTY_ID, viewInstanceEntity.getDescription(),
requestedIds);
     setResourceProperty(resource, VISIBLE_PROPERTY_ID, viewInstanceEntity.isVisible(), requestedIds);
+    setResourceProperty(resource, STATIC_PROPERTY_ID, viewInstanceEntity.isXmlDriven(), requestedIds);
     Map<String, String> properties = new HashMap<String, String>();
 
     for (ViewInstancePropertyEntity viewInstancePropertyEntity : viewInstanceEntity.getProperties())
{


Mime
View raw message