Examples of PropertyDateTimeImpl


Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyDateTimeImpl

                    calValues.add(cal);
                }
            } catch (NumberFormatException e) {
                throw new CmisInvalidArgumentException(propDef.getId() + " value is not an datetime value!");
            }
            propertyData = new PropertyDateTimeImpl(propDef.getId(), calValues);
            break;
        case HTML:
            propertyData = new PropertyHtmlImpl(propDef.getId(), strValues);
            break;
        case URI:
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyDateTimeImpl

        if (!checkAddProperty(props, typeId, filter, id)) {
            return;
        }

        PropertyDateTimeImpl prop = new PropertyDateTimeImpl(id, value);
        prop.setQueryName(id);
        props.addProperty(prop);
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyDateTimeImpl

                    : new PropertyDecimalImpl(jcrProperty.getName(), BigDecimal.valueOf(jcrProperty.getDouble()));
                break;

            case PropertyType.DATE:
                propertyData = jcrProperty.isMultiple()
                    ? new PropertyDateTimeImpl(jcrProperty.getName(), toDates(jcrProperty.getValues()))
                    : new PropertyDateTimeImpl(jcrProperty.getName(), Util.toCalendar(jcrProperty.getDate()));
                break;

            case PropertyType.BOOLEAN:
                propertyData = jcrProperty.isMultiple()
                    ? new PropertyBooleanImpl(jcrProperty.getName(), toBools(jcrProperty.getValues()))
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyDateTimeImpl

        if (defaultValue != null && !defaultValue.isEmpty()) {
            switch (propDef.getPropertyType()) {
                case BOOLEAN:
                    return new PropertyBooleanImpl(propDef.getId(), (List<Boolean>) defaultValue);
                case DATETIME:
                    return new PropertyDateTimeImpl(propDef.getId(), (List<GregorianCalendar>) defaultValue);
                case DECIMAL:
                    return new PropertyDecimalImpl(propDef.getId(), (List<BigDecimal>) defaultValue);
                case HTML:
                    return new PropertyHtmlImpl(propDef.getId(), (List<String>) defaultValue);
                case ID:
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyDateTimeImpl

            GregorianCalendar value) {
        if (!checkAddProperty(props, typeId, filter, id)) {
            return;
        }

        props.addProperty(new PropertyDateTimeImpl(id, value));
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyDateTimeImpl

            switch (propDef.getPropertyType()) {
            case BOOLEAN:
                props.addProperty(new PropertyBooleanImpl(propDef.getId(), (List<Boolean>) defaultValue));
                break;
            case DATETIME:
                props.addProperty(new PropertyDateTimeImpl(propDef.getId(), (List<GregorianCalendar>) defaultValue));
                break;
            case DECIMAL:
                props.addProperty(new PropertyDecimalImpl(propDef.getId(), (List<BigDecimal>) defaultValue));
                break;
            case HTML:
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyDateTimeImpl

                    : new PropertyDecimalImpl(jcrProperty.getName(), BigDecimal.valueOf(jcrProperty.getDouble()));
                break;

            case PropertyType.DATE:
                propertyData = jcrProperty.isMultiple()
                    ? new PropertyDateTimeImpl(jcrProperty.getName(), toDates(jcrProperty.getValues()))
                    : new PropertyDateTimeImpl(jcrProperty.getName(), Util.toCalendar(jcrProperty.getDate()));
                break;

            case PropertyType.BOOLEAN:
                propertyData = jcrProperty.isMultiple()
                    ? new PropertyBooleanImpl(jcrProperty.getName(), toBools(jcrProperty.getValues()))
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyDateTimeImpl

        if (!checkAddProperty(props, typeId, filter, id)) {
            return;
        }

        PropertyDateTimeImpl prop = new PropertyDateTimeImpl(id, value);
        prop.setQueryName(id);
        props.addProperty(prop);
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyDateTimeImpl

                    .getValue());
        } else if (property instanceof CmisPropertyBoolean) {
            result = new PropertyBooleanImpl(property.getPropertyDefinitionId(), ((CmisPropertyBoolean) property)
                    .getValue());
        } else if (property instanceof CmisPropertyDateTime) {
            result = new PropertyDateTimeImpl(property.getPropertyDefinitionId(),
                    convertXMLCalendar(((CmisPropertyDateTime) property).getValue()));
        } else if (property instanceof CmisPropertyHtml) {
            result = new PropertyHtmlImpl(property.getPropertyDefinitionId(), ((CmisPropertyHtml) property).getValue());
        } else if (property instanceof CmisPropertyUri) {
            result = new PropertyUriImpl(property.getPropertyDefinitionId(), ((CmisPropertyUri) property).getValue());
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyDateTimeImpl

                    ((CmisPropertyDecimal) property).getValue());
        } else if (property instanceof CmisPropertyBoolean) {
            result = new PropertyBooleanImpl(property.getPropertyDefinitionId(),
                    ((CmisPropertyBoolean) property).getValue());
        } else if (property instanceof CmisPropertyDateTime) {
            result = new PropertyDateTimeImpl(property.getPropertyDefinitionId(),
                    convertXMLCalendar(((CmisPropertyDateTime) property).getValue()));
        } else if (property instanceof CmisPropertyHtml) {
            result = new PropertyHtmlImpl(property.getPropertyDefinitionId(), ((CmisPropertyHtml) property).getValue());
        } else if (property instanceof CmisPropertyUri) {
            result = new PropertyUriImpl(property.getPropertyDefinitionId(), ((CmisPropertyUri) property).getValue());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.