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

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


        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);
View Full Code Here

        }

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

        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);
        }

        if (null != properties)
            // overwrite all new properties
View Full Code Here

        }

        // build properties collection
        List<String> requestedIds = FilterParser.getRequestedIdsFromFilter(filter);
        TypeDefinition td = fStoreManager.getTypeById(repositoryId, so.getTypeId()).getTypeDefinition();
        Properties props = PropertyCreationHelper.getPropertiesFromObject(so, td, requestedIds, true);
        LOG.debug("stop getProperties()");
        return props;
    }
View Full Code Here

        }

        log.debug(" create folder for parent id: " + parentId + ", in level " + level + ", max levels " + levels);

        for (int i = 0; i < childrenPerLevel; i++) {
            Properties props = createFolderProperties(i, level);
            try {
                fTimeLoggerCreateFolder.start();
                id = fObjSvc.createFolder(fRepositoryId, props, parentId, null, null, null, null);
                if (level == 0) {
                    fTopLevelFoldersCreated.add(id);
View Full Code Here

            }
        }
    }

    private String createFolder(String parentId) {
        Properties props = createFolderProperties(0, 0);
        String id = null;
        try {
            fTimeLoggerCreateFolder.start();
            id = fObjSvc.createFolder(fRepositoryId, props, parentId, null, null, null, null);
            fTopLevelFoldersCreated.add(id);
View Full Code Here

        Acl addACEs = null;
        Acl removeACEs = null;
        ExtensionsData extension = null;

        // log.info("create document in folder " + folderId);
        Properties props = createDocumentProperties(no, level);
        String id = null;
        if (fContentSizeInK > 0) {
            contentStream = useLoreIpsum ? createContent() : createContentStaticText();
        }
        try {
View Full Code Here

        properties.add(fFactory.createPropertyIdData(PropertyIds.OBJECT_TYPE_ID, fFolderTypeId));
        // Generate some property values for custom attributes
        for (String stringPropId : fStringPropertyIdsToSetForFolder) {
            properties.add(fFactory.createPropertyStringData(stringPropId, generateStringPropValueFolder()));
        }
        Properties props = fFactory.createPropertiesData(properties);
        return props;
    }
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.