Package org.apache.chemistry.opencmis.commons.impl.jaxb

Examples of org.apache.chemistry.opencmis.commons.impl.jaxb.CmisCreatablePropertyTypesType


        result.setCapabilityOrderBy(convert(CapabilityOrderBy.class, capabilities.getCapabilityOrderBy()));
        result.setSupportsMultifiling(capabilities.isCapabilityMultifiling());
        result.setSupportsUnfiling(capabilities.isCapabilityUnfiling());
        result.setSupportsVersionSpecificFiling(capabilities.isCapabilityVersionSpecificFiling());
        if (capabilities.getCapabilityCreatablePropertyTypes() != null) {
            CmisCreatablePropertyTypesType creatablePropertyTypes = capabilities.getCapabilityCreatablePropertyTypes();

            CreatablePropertyTypesImpl target = new CreatablePropertyTypesImpl();
            result.setCreatablePropertyTypes(target);

            if (isNotEmpty(creatablePropertyTypes.getCanCreate())) {
                Set<PropertyType> propertyTypeSet = EnumSet.noneOf(PropertyType.class);
                target.setCanCreate(propertyTypeSet);
                for (EnumPropertyType propType : creatablePropertyTypes.getCanCreate()) {
                    PropertyType propertyType = convert(PropertyType.class, propType);
                    if (propertyType != null) {
                        propertyTypeSet.add(propertyType);
                    }
                }
View Full Code Here


        if (cmisVersion != CmisVersion.CMIS_1_0) {
            if (capabilities.getCreatablePropertyTypes() != null) {
                CreatablePropertyTypes creatablePropertyTypes = capabilities.getCreatablePropertyTypes();

                CmisCreatablePropertyTypesType target = new CmisCreatablePropertyTypesType();
                result.setCapabilityCreatablePropertyTypes(target);

                if (creatablePropertyTypes.canCreate() != null) {
                    for (PropertyType pt : creatablePropertyTypes.canCreate()) {
                        target.getCanCreate().add(convert(EnumPropertyType.class, pt));
                    }
                }

                convertExtension(creatablePropertyTypes, target);
            }
            if (capabilities.getNewTypeSettableAttributes() != null) {
                NewTypeSettableAttributes newTypeSettableAttributes = capabilities.getNewTypeSettableAttributes();

                CmisNewTypeSettableAttributes target = new CmisNewTypeSettableAttributes();
                result.setCapabilityNewTypeSettableAttributes(target);

                target.setId(newTypeSettableAttributes.canSetId() == null ? true : newTypeSettableAttributes.canSetId());
                target.setLocalName(newTypeSettableAttributes.canSetLocalName() == null ? true
                        : newTypeSettableAttributes.canSetLocalName());
                target.setLocalNamespace(newTypeSettableAttributes.canSetLocalNamespace() == null ? true
                        : newTypeSettableAttributes.canSetLocalNamespace());
                target.setDisplayName(newTypeSettableAttributes.canSetDisplayName() == null ? true
                        : newTypeSettableAttributes.canSetDisplayName());
                target.setQueryName(newTypeSettableAttributes.canSetQueryName() == null ? true
                        : newTypeSettableAttributes.canSetQueryName());
                target.setDescription(newTypeSettableAttributes.canSetDescription() == null ? true
                        : newTypeSettableAttributes.canSetDescription());
                target.setCreatable(newTypeSettableAttributes.canSetCreatable() == null ? true
                        : newTypeSettableAttributes.canSetCreatable());
                target.setFileable(newTypeSettableAttributes.canSetFileable() == null ? true
                        : newTypeSettableAttributes.canSetFileable());
                target.setQueryable(newTypeSettableAttributes.canSetQueryable() == null ? true
                        : newTypeSettableAttributes.canSetQueryable());
                target.setFulltextIndexed(newTypeSettableAttributes.canSetFulltextIndexed() == null ? true
                        : newTypeSettableAttributes.canSetFulltextIndexed());
                target.setIncludedInSupertypeQuery(newTypeSettableAttributes.canSetIncludedInSupertypeQuery() == null ? true
                        : newTypeSettableAttributes.canSetIncludedInSupertypeQuery());
                target.setControllablePolicy(newTypeSettableAttributes.canSetControllablePolicy() == null ? true
                        : newTypeSettableAttributes.canSetControllablePolicy());
                target.setControllableACL(newTypeSettableAttributes.canSetControllableAcl() == null ? true
                        : newTypeSettableAttributes.canSetControllableAcl());

                convertExtension(newTypeSettableAttributes, target);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.commons.impl.jaxb.CmisCreatablePropertyTypesType

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.