Package org.apache.chemistry.opencmis.commons.data

Examples of org.apache.chemistry.opencmis.commons.data.Properties


        final Map<String, Object> propertyMap2 =
            new HashMap<String, Object>() {
            {
                put(VERSION_PROPERTY_ID, "ver456");
            }};
        Properties propsV2 = createDocumentProperties("dummy", UnitTestTypeSystemCreator.VERSION_DOCUMENT_TYPE_ID, propertyMap2);

        Holder<String> idHolder = new Holder<String>(verIdV1);
        Holder<Boolean> contentCopied = new Holder<Boolean>(false);
        fVerSvc.checkOut(repositoryId, idHolder, null, contentCopied);
View Full Code Here


        // String verIdV2 = idHolder.getValue();
        return verIdSer;
    }

    private String createFolder(String folderName, String parentFolderId, String typeId, Map<String, Object> properties) {
        Properties props = createFolderProperties(folderName, typeId, properties);
        String id = null;
        try {
            id = fObjSvc.createFolder(repositoryId, props, parentFolderId, null, null, null, null);
            if (null == id) {
                fail("createFolder failed.");
View Full Code Here

        List<String> policies = null;
        Acl addACEs = null;
        Acl removeACEs = null;
        ExtensionsData extension = null;

        Properties props = createDocumentProperties(name, typeId, properties);

        String id = null;
        try {
            id = fObjSvc.createDocument(repositoryId, props, folderId, contentStream, verState, policies, addACEs,
                    removeACEs, extension);
View Full Code Here

        for (Map.Entry<String,Object> propEntry :propertyMap.entrySet()) {
            PropertyData<?> pd =
            createPropertyData(propEntry.getKey(), propEntry.getValue());
            properties.add(pd);
        }
        Properties props = fFactory.createPropertiesData(properties);
        return props;
    }
View Full Code Here

        for (Map.Entry<String,Object> propEntry :propertyMap.entrySet()) {
            PropertyData<?> pd =
            createPropertyData(propEntry.getKey(), propEntry.getValue());
            properties.add(pd);
        }
        Properties props = fFactory.createPropertiesData(properties);
        return props;
    }
View Full Code Here

        if (fillOptionalPropertyData) {  // add query name, local name, display name
            fillOptionalPropertyData(td, propertiesList);
        }

        Properties props = objectFactory.createPropertiesData(propertiesList);
        return props;
    }
View Full Code Here

            PropertyInteger pi = objFactory.createPropertyIntegerData(funcEntry.getKey(), BigInteger.valueOf(100));
              // fixed dummy value
            mappedProperties.put(funcEntry.getValue(), pi);
        }

        Properties props = new PropertiesImpl(mappedProperties.values());
        return props;
    }
View Full Code Here

            throw new CmisObjectNotFoundException("Illegal object id: null");
        }

        // build properties collection
        List<String> requestedIds = FilterParser.getRequestedIdsFromFilter(filter);
        Properties props = getPropertiesFromObject(so, typeDef, requestedIds, true);

        // fill output object
        if (null != includeAllowableActions && includeAllowableActions) {
          AllowableActions allowableActions = so.getAllowableActions(user);
            od.setAllowableActions(allowableActions);
View Full Code Here

            Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter) {

        ObjectDataImpl od = new ObjectDataImpl();

        // build properties collection
        Properties props = getPropertiesFromObject(so, typeDef, requestedProperties, requestedFuncs);

        // fill output object
        if (null != includeAllowableActions && includeAllowableActions) {
           //     AllowableActions allowableActions = DataObjectCreator.fillAllowableActions(so, user);
          AllowableActions allowableActions = so.getAllowableActions(user);
View Full Code Here

        // build properties collection
        List<String> requestedIds = FilterParser.getRequestedIdsFromFilter("*");

     //   TypeDefinition td = fStoreManager.getTypeById(repositoryId, so.getTypeId()).getTypeDefinition();
        Properties existingProps = PropertyCreationHelper.getPropertiesFromObject(so, td, requestedIds, true);

        PropertiesImpl newPD = new PropertiesImpl();
        // copy all existing properties
        for (PropertyData<?> prop : existingProps.getProperties().values()) {
            newPD.addProperty(prop);
        }
        // overwrite all new properties
        for (PropertyData<?> prop : properties.getProperties().values()) {
            newPD.addProperty(prop);
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.commons.data.Properties

Copyright © 2018 www.massapicom. 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.