Examples of PropertyStringImpl


Examples of com.dotcms.repackage.org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyStringImpl

        contentStream.setMimeType(APILocator.getFileAPI().getMimeType(fileName));
        contentStream.setStream(new FileInputStream(resourceFile));
               
        PropertiesImpl result = new PropertiesImpl();
        result.addProperty(new PropertyIdImpl(PropertyIds.OBJECT_TYPE_ID, BaseTypeId.CMIS_DOCUMENT.value()));
        result.addProperty(new PropertyStringImpl(PropertyIds.NAME, fileName));

        if(!UtilMethods.isSet(folderId))
          folderId = getdefaultHostId();
       
    return dotRepo.createDocument(CMISUtils.REPOSITORY_ID, result,
View Full Code Here

Examples of com.dotcms.repackage.org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyStringImpl

    }
   
    protected static String createFolder( String folderName ) throws Exception {
        PropertiesImpl props = new PropertiesImpl();
        props.addProperty(new PropertyIdImpl(PropertyIds.OBJECT_TYPE_ID, BaseTypeId.CMIS_FOLDER.value()));
        props.addProperty(new PropertyStringImpl(PropertyIds.NAME, folderName));
    return dotRepo.createFolder(CMISUtils.REPOSITORY_ID, props,
        getdefaultHostId(), null, null, null, null);
    }
View Full Code Here

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

    private void addPropertyString(PropertiesImpl props, String typeId, Set<String> filter, String id, String value) {
        if (!checkAddProperty(props, typeId, filter, id)) {
            return;
        }

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

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

                break;
            case INTEGER:
                props.addProperty(new PropertyIntegerImpl(propDef.getId(), (List<BigInteger>) defaultValue));
                break;
            case STRING:
                props.addProperty(new PropertyStringImpl(propDef.getId(), (List<String>) defaultValue));
                break;
            case URI:
                props.addProperty(new PropertyUriImpl(propDef.getId(), (List<String>) defaultValue));
                break;
            default:
View Full Code Here

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

        }

        PropertyData<?> result = null;

        if (property instanceof CmisPropertyString) {
            result = new PropertyStringImpl(property.getPropertyDefinitionId(),
                    ((CmisPropertyString) property).getValue());
        } else if (property instanceof CmisPropertyId) {
            result = new PropertyIdImpl(property.getPropertyDefinitionId(), ((CmisPropertyId) property).getValue());
        } else if (property instanceof CmisPropertyInteger) {
            result = new PropertyIntegerImpl(property.getPropertyDefinitionId(),
View Full Code Here

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

        }

        PropertyData<?> propertyData = null;
        switch (propDef.getPropertyType()) {
        case STRING:
            propertyData = new PropertyStringImpl(propDef.getId(), strValues);
            break;
        case ID:
            propertyData = new PropertyIdImpl(propDef.getId(), strValues);
            break;
        case BOOLEAN:
View Full Code Here

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

        }

        PropertyData<?> propertyData = null;
        switch (propDef.getPropertyType()) {
        case STRING:
            propertyData = new PropertyStringImpl(propDef.getId(), strValues);
            break;
        case ID:
            propertyData = new PropertyIdImpl(propDef.getId(), strValues);
            break;
        case BOOLEAN:
View Full Code Here

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

            }
        }

        // overwrite cmis:name with Atom title
        if ((object != null) && (object.getProperties() != null) && (atomTitle != null) && (atomTitle.length() > 0)) {
            PropertyString nameProperty = new PropertyStringImpl(PropertyIds.NAME, atomTitle);
            ((PropertiesImpl) object.getProperties()).replaceProperty(nameProperty);
        }
    }
View Full Code Here

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

        else if (propDef.getPropertyType().equals(PropertyType.ID))
            return new PropertyIdImpl(propDef.getId(), (String) null);
        else if (propDef.getPropertyType().equals(PropertyType.INTEGER))
            return new PropertyIntegerImpl(propDef.getId(), (BigInteger) null);
        else if (propDef.getPropertyType().equals(PropertyType.STRING))
            return new PropertyStringImpl(propDef.getId(), (String) null);
        else if (propDef.getPropertyType().equals(PropertyType.URI))
            return new PropertyUriImpl(propDef.getId(), (String) null);
        else
            return null;
    }
View Full Code Here

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

                    values = Collections.singletonList(value);
                }

                switch (propertyType) {
                case STRING:
                    property = new PropertyStringImpl();
                    {
                        List<String> propertyValues = null;
                        if (values != null) {
                            propertyValues = new ArrayList<String>();
                            for (Object obj : values) {
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.