Examples of TypeManager


Examples of org.jpox.TypeManager

        boolean serialised = (fmd.hasMap() && fmd.getMap().isSerializedValue());
        boolean embedded = (fmd.hasMap() && fmd.getMap().isEmbeddedValue());
        boolean embeddedPC = (fmd.getValueMetaData() != null && fmd.getValueMetaData().getEmbeddedMetaData() != null);
        boolean valuePC = (fmd.hasMap() && fmd.getMap().getValueClassMetaData() != null);
        TypeManager typeMgr = fmd.getMetaDataManager().getOMFContext().getTypeManager();
        Class valueCls = clr.classForName(fmd.getMap().getValueType());
        boolean valueReference = typeMgr.isReferenceType(valueCls);

        Class mc = null;
        if (serialised)
        {
            if (valuePC)
View Full Code Here

Examples of org.lilyproject.repository.api.TypeManager


        String scopeName = getString(node, "scope", "non_versioned");
        Scope scope = parseScope(scopeName);

        TypeManager typeManager = repository.getTypeManager();

        // Be gentle to users of Lily 1.0
        if (node.has("valueType") && node.get("valueType").isObject() && node.get("valueType").has("primitive")) {
            throw new JsonFormatException("Lily 1.1 format change: the valueType should now be specified as a string" +
                    " rather than a nested object with the 'primitive' property.");
        }

        String valueTypeString = getString(node, "valueType");
        ValueType valueType = typeManager.getValueType(ValueTypeNSConverter.fromJson(valueTypeString, namespaces));
        FieldType fieldType = typeManager.newFieldType(valueType, name, scope);

        String idString = getString(node, "id", null);
        SchemaId id = null;
        if (idString != null) {
            id = new SchemaIdImpl(idString);
View Full Code Here

Examples of org.nuxeo.ecm.platform.types.TypeManager

        if (doc.hasFacet(SOCIAL_WORKSPACE_FACET)) {
            docView.setDocumentLocation(new DocumentLocationImpl(
                    session.getChild(doc.getRef(), "social")));
            docView.setViewId("dashboard");
        } else {
            TypeManager typeService = Framework.getLocalService(TypeManager.class);
            Type type = typeService.getType(doc.getType());
            if (doc.hasFacet(FacetNames.FOLDERISH)
                    || (!typeService.getAllowedSubTypes(SOCIAL_WORKSPACE_TYPE).contains(
                            type) && !typeService.getAllowedSubTypes(
                            NEWS_ITEM_ROOT_TYPE).contains(type))) {
                docView.setViewId(type.getDefaultView());
                docView.addParameter("tabIds", "MAIN_TAB:documents");
            }
        }
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.