cacheResultProperty.setDataProvider("");
cacheResultProperty.setType("select");
cacheResultProperty.setVisualizingAction("");
cacheResultProperty.setCreateAction("");
ComponentPropertyOption cpoNo = new ComponentPropertyOption("No", "false");
ComponentPropertyOption cpoYes = new ComponentPropertyOption("Yes", "true");
cacheResultProperty.getOptions().add(cpoNo);
cacheResultProperty.getOptions().add(cpoYes);
String value = getComponentPropertyValue(componentId, "CacheResult", siteNodeId, languageId, contentId, locale, db, principal, cacheResultProperty);
cacheResultProperty.setValue(value);
componentProperties.add(cacheResultProperty);
ComponentProperty cacheIntervalProperty = new ComponentProperty();
cacheIntervalProperty.setComponentId(componentId);
cacheIntervalProperty.setName("UpdateInterval");
cacheIntervalProperty.setDisplayName("Cache Update Interval");
cacheIntervalProperty.setDescription("Interval before the cache gets updated");
cacheIntervalProperty.setDefaultValue("-1");
cacheIntervalProperty.setAllowLanguageVariations(false);
cacheIntervalProperty.setDataProvider("");
cacheIntervalProperty.setType("select");
cacheIntervalProperty.setVisualizingAction("");
cacheIntervalProperty.setCreateAction("");
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("1 second", "1"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("2 seconds", "2"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("3 seconds", "3"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("4 seconds", "4"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("5 seconds", "5"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("10 seconds", "10"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("15 seconds", "15"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("20 seconds", "20"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("30 seconds", "30"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("1 minute", "60"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("2 minutes", "120"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("5 minutes", "300"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("10 minutes", "600"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("30 minutes", "1800"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("1 hour", "3600"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("2 hours", "7200"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("6 hours", "21600"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("12 hours", "43200"));
cacheIntervalProperty.getOptions().add(new ComponentPropertyOption("24 hours", "86400"));
String updateIntervalValue = getComponentPropertyValue(componentId, "UpdateInterval", siteNodeId, languageId, contentId, locale, db, principal, cacheIntervalProperty);
cacheIntervalProperty.setValue(updateIntervalValue);
componentProperties.add(cacheIntervalProperty);
ComponentProperty cacheKeyProperty = new ComponentProperty();
cacheKeyProperty.setComponentId(componentId);
cacheKeyProperty.setName("CacheKey");
cacheKeyProperty.setDisplayName("Cache Key");
cacheKeyProperty.setDescription("Key for the component cache");
cacheKeyProperty.setDefaultValue("");
cacheKeyProperty.setAllowLanguageVariations(false);
cacheKeyProperty.setDataProvider("");
cacheKeyProperty.setType("textfield");
cacheKeyProperty.setVisualizingAction("");
cacheKeyProperty.setCreateAction("");
String cacheKeyValue = getComponentPropertyValue(componentId, "CacheKey", siteNodeId, languageId, contentId, locale, db, principal, cacheKeyProperty);
cacheKeyProperty.setValue(cacheKeyValue);
componentProperties.add(cacheKeyProperty);
ComponentProperty priorityProperty = new ComponentProperty();
priorityProperty.setComponentId(componentId);
priorityProperty.setName("PreRenderOrder");
priorityProperty.setDisplayName("Pre processing order");
priorityProperty.setDescription("State the order in which the component get's prerendered");
priorityProperty.setDefaultValue("99");
priorityProperty.setAllowLanguageVariations(false);
priorityProperty.setDataProvider("");
priorityProperty.setType("select");
priorityProperty.setVisualizingAction("");
priorityProperty.setCreateAction("");
for(int i=0; i<15; i++)
priorityProperty.getOptions().add(new ComponentPropertyOption("" + i, "" + i));
String preRenderOrderPropertyValue = getComponentPropertyValue(componentId, "PreRenderOrder", siteNodeId, languageId, contentId, locale, db, principal, priorityProperty);
priorityProperty.setValue(preRenderOrderPropertyValue);
componentProperties.add(priorityProperty);