private VisitorFeedbackImpl buildFeedbackObject(QueryResult queryResult) { BigInteger rating = (BigInteger) queryResult.getPropertyValueById(PROP_RATING); VisitorFeedbackImpl feedback = buildFeedbackObject( (String) queryResult.getPropertyValueById(PROP_ARTICLE), (String) queryResult.getPropertyValueById(PROP_NAME), (String) queryResult.getPropertyValueById(PROP_EMAIL), (String) queryResult.getPropertyValueById(PROP_WEBSITE), (String) queryResult.getPropertyValueById(PROP_FEEDBACK_TYPE), (String) queryResult.getPropertyValueById(PROP_SUBJECT), (String) queryResult.getPropertyValueById(PROP_COMMENT), (Boolean) queryResult.getPropertyValueById(PROP_COMMENT_FLAGGED), rating == null ? null : rating.intValue()); feedback.setId((String) queryResult.getPropertyValueById(PropertyIds.OBJECT_ID)); feedback.setPostTime(((Calendar) queryResult.getPropertyValueById(PropertyIds.CREATION_DATE)).getTime()); return feedback; }
kickstartWorkflowInfo.setName((String) result.getPropertyValueById("cm:description")); kickstartWorkflowInfo.setId(processNameToBaseName((String) result.getPropertyValueById(PropertyIds.NAME))); GregorianCalendar createDate = result.getPropertyValueById(PropertyIds.CREATION_DATE); kickstartWorkflowInfo.setCreateTime(createDate.getTime()) ; workflowInfos.add(kickstartWorkflowInfo);
properties.put(PropertyIds.OBJECT_ID, (String) result.getPropertyValueById(PropertyIds.OBJECT_ID)); properties.put(PropertyIds.NAME, (String) result.getPropertyValueById(PropertyIds.NAME)); properties.put(Section.PROPERTY_TITLE, (String) result.getPropertyValueById(Section.PROPERTY_TITLE)); properties.put(Section.PROPERTY_DESCRIPTION, (String) result.getPropertyValueById(Section.PROPERTY_DESCRIPTION)); properties.put(Section.PROPERTY_EXCLUDE_FROM_NAV, (Boolean) result.getPropertyValueById(Section.PROPERTY_EXCLUDE_FROM_NAV)); sectionDetails.objectTypeId = (String) result.getPropertyValueById(PropertyIds.OBJECT_TYPE_ID); String parentId = (String) result.getPropertyValueById(PropertyIds.PARENT_ID); section.setPrimarySectionId(parentId);
String id = result.getPropertyValueById(PropertyIds.OBJECT_ID); String hostName = result.getPropertyValueById(WebSite.PROP_HOSTNAME); BigInteger hostPort = result.getPropertyValueById(WebSite.PROP_HOSTPORT); String context = result.getPropertyValueById(WebSite.PROP_CONTEXT); if (context == null) String title = result.getPropertyValueById(Asset.PROPERTY_TITLE); String description = result.getPropertyValueById(Asset.PROPERTY_DESCRIPTION); List<String> configList = result.getPropertyMultivalueById(WebSite.PROP_SITE_CONFIG); Map<String,String> configProperties = parseSiteConfig(configList);