@Test public void testGetConfiguration() throws Exception { InstanceConfig instanceConfig = InstanceConfigTest.getInstanceConfigs().get(0); ViewEntity viewDefinition = ViewEntityTest.getViewEntity(); ViewInstanceEntity viewInstanceDefinition = new ViewInstanceEntity(viewDefinition, instanceConfig); Assert.assertEquals(instanceConfig, viewInstanceDefinition.getConfiguration()); }
public InstanceConfig getConfiguration() { return instanceConfig; }
ViewInstanceEntity implements ViewInstanceDefinition { public InstanceConfig getConfiguration() { return instanceConfig; } }
ViewInstanceEntity implements ViewInstanceDefinition { public InstanceConfig getConfiguration() { return instanceConfig; } ViewInstanceEntity();  ViewInstanceEntity(ViewEntity view, InstanceConfig instanceConfig);  ViewInstanceEntity(ViewEntity view, String name);  ViewInstanceEntity(ViewEntity view, String name, String label); }
ViewInstanceEntity implements ViewInstanceDefinition { public InstanceConfig getConfiguration() { return instanceConfig; } ViewInstanceEntity();  ViewInstanceEntity(ViewEntity view, InstanceConfig instanceConfig);  ViewInstanceEntity(ViewEntity view, String name);  ViewInstanceEntity(ViewEntity view, String name, String label); @Override String getInstanceName(); @Override String getViewName(); @Override Map<String, String> getPropertyMap(); @Override Map<String, String> getInstanceDataMap(); @Override ViewDefinition getViewDefinition(); @Override String getLabel(); @Override String getDescription(); @Override Long getClusterHandle(); @Override boolean isVisible(); Long getViewInstanceId(); void setViewInstanceId(Long viewInstanceId); void setViewName(String viewName); String getName(); void setName(String name); void setLabel(String label); void setDescription(String description); void setClusterHandle(Long clusterHandle); @Override ClusterType getClusterType(); void setClusterType(ClusterType clusterType); void setVisible(boolean visible); String getIcon(); void setIcon(String icon); String getIcon64(); void setIcon64(String icon64); boolean isXmlDriven(); void setXmlDriven(boolean xmlDriven); boolean alterNames(); void setAlterNames(boolean alterNames); Collection<ViewInstancePropertyEntity> getProperties(); void putProperty(String key, String value); void removeProperty(String key); ViewInstancePropertyEntity getProperty(String key); void setProperties(Collection<ViewInstancePropertyEntity> properties); Collection<ViewInstanceDataEntity> getData(); void setData(Collection<ViewInstanceDataEntity> data); Collection<ViewEntityEntity> getEntities(); void setEntities(Collection<ViewEntityEntity> entities); void putInstanceData(String key, String value); void removeInstanceData(String key); ViewInstanceDataEntity getInstanceData(String key); ViewEntity getViewEntity(); void setViewEntity(ViewEntity view); InstanceConfig getConfiguration(); void addResourceProvider(Resource.Type type, ResourceProvider provider); ResourceProvider getResourceProvider(Resource.Type type); ResourceProvider getResourceProvider(String type); void addService(String pluralName, Object service); Object getService(String pluralName); String getContextPath(); static String getContextPath(String viewName, String version, String viewInstanceName); String getUsername(); ResourceEntity getResource(); void setResource(ResourceEntity resource); ViewDataMigrator getDataMigrator(ViewDataMigrationContext dataMigrationContext); void validate(ViewEntity viewEntity, Validator.ValidationContext context); InstanceValidationResultImpl getValidationResult(ViewEntity viewEntity, Validator.ValidationContext context); String getCurrentUserName(); @Override boolean equals(Object o); @Override int hashCode(); ViewURLEntity getViewUrl(); void setViewUrl(ViewURLEntity viewUrl); void clearUrl(); }
ViewInstanceEntity implements ViewInstanceDefinition { public InstanceConfig getConfiguration() { return instanceConfig; } ViewInstanceEntity();  ViewInstanceEntity(ViewEntity view, InstanceConfig instanceConfig);  ViewInstanceEntity(ViewEntity view, String name);  ViewInstanceEntity(ViewEntity view, String name, String label); @Override String getInstanceName(); @Override String getViewName(); @Override Map<String, String> getPropertyMap(); @Override Map<String, String> getInstanceDataMap(); @Override ViewDefinition getViewDefinition(); @Override String getLabel(); @Override String getDescription(); @Override Long getClusterHandle(); @Override boolean isVisible(); Long getViewInstanceId(); void setViewInstanceId(Long viewInstanceId); void setViewName(String viewName); String getName(); void setName(String name); void setLabel(String label); void setDescription(String description); void setClusterHandle(Long clusterHandle); @Override ClusterType getClusterType(); void setClusterType(ClusterType clusterType); void setVisible(boolean visible); String getIcon(); void setIcon(String icon); String getIcon64(); void setIcon64(String icon64); boolean isXmlDriven(); void setXmlDriven(boolean xmlDriven); boolean alterNames(); void setAlterNames(boolean alterNames); Collection<ViewInstancePropertyEntity> getProperties(); void putProperty(String key, String value); void removeProperty(String key); ViewInstancePropertyEntity getProperty(String key); void setProperties(Collection<ViewInstancePropertyEntity> properties); Collection<ViewInstanceDataEntity> getData(); void setData(Collection<ViewInstanceDataEntity> data); Collection<ViewEntityEntity> getEntities(); void setEntities(Collection<ViewEntityEntity> entities); void putInstanceData(String key, String value); void removeInstanceData(String key); ViewInstanceDataEntity getInstanceData(String key); ViewEntity getViewEntity(); void setViewEntity(ViewEntity view); InstanceConfig getConfiguration(); void addResourceProvider(Resource.Type type, ResourceProvider provider); ResourceProvider getResourceProvider(Resource.Type type); ResourceProvider getResourceProvider(String type); void addService(String pluralName, Object service); Object getService(String pluralName); String getContextPath(); static String getContextPath(String viewName, String version, String viewInstanceName); String getUsername(); ResourceEntity getResource(); void setResource(ResourceEntity resource); ViewDataMigrator getDataMigrator(ViewDataMigrationContext dataMigrationContext); void validate(ViewEntity viewEntity, Validator.ValidationContext context); InstanceValidationResultImpl getValidationResult(ViewEntity viewEntity, Validator.ValidationContext context); String getCurrentUserName(); @Override boolean equals(Object o); @Override int hashCode(); ViewURLEntity getViewUrl(); void setViewUrl(ViewURLEntity viewUrl); void clearUrl();  }