/** * Converts a choices list. */ private static void convertChoiceDateTimeList(List<Choice<GregorianCalendar>> choices, List<CmisChoiceDateTime> target) { assert target != null; if (choices == null) { return; } for (Choice<GregorianCalendar> choice : choices) { CmisChoiceDateTime newChoice = new CmisChoiceDateTime(); convertChoiceDateTimeList(choice.getChoice(), newChoice.getChoice()); newChoice.setDisplayName(choice.getDisplayName()); if (choice.getValue() != null) { for (XMLGregorianCalendar value : convertCalendar(choice.getValue())) { newChoice.getValue().add(value); } } target.add(newChoice); } }
result = new CmisPropertyDateTime(); ((CmisPropertyDateTime) result).getValue().addAll( convertCalendar(((PropertyDateTime) property).getValues())); } else if (property instanceof PropertyHtml) { result = new CmisPropertyHtml();
changeEventInfo.setChangeTime(convertCalendar(object.getChangeEventInfo().getChangeTime()));
CmisPropertyDateTime defaultValue = new CmisPropertyDateTime(); defaultValue.setPropertyDefinitionId(propertyDefinition.getId()); for (XMLGregorianCalendar value : convertCalendar(source.getDefaultValue())) { defaultValue.getValue().add(value);