Examples of ExtendedPropertyDefinition


Examples of org.jahia.services.content.nodetypes.ExtendedPropertyDefinition

    @Override
    protected void addCalendarValue(Document doc, String fieldName, Object internalValue) {
        super.addCalendarValue(doc, fieldName, internalValue);
        Calendar value = (Calendar) internalValue;
        ExtendedPropertyDefinition definition = getExtendedPropertyDefinition(nodeType, node, getPropertyNameFromFieldname(fieldName));
        if (definition != null && definition.isFacetable()) {
            addFacetValue(doc, fieldName, dateType.toInternal(new Date(value.getTimeInMillis())));
        }
    }   
View Full Code Here

Examples of org.jahia.services.content.nodetypes.ExtendedPropertyDefinition

    }   
   
    @Override
    protected void addBooleanValue(Document doc, String fieldName, Object internalValue) {
        super.addBooleanValue(doc, fieldName, internalValue);
        ExtendedPropertyDefinition definition = getExtendedPropertyDefinition(nodeType, node, getPropertyNameFromFieldname(fieldName));
        if (definition != null && definition.isFacetable()) {
            addFacetValue(doc, fieldName, internalValue.toString());
        }       
    }
View Full Code Here

Examples of org.jahia.services.content.nodetypes.ExtendedPropertyDefinition

    }

    @Override
    protected void addDoubleValue(Document doc, String fieldName, Object internalValue) {
        super.addDoubleValue(doc, fieldName, internalValue);
        ExtendedPropertyDefinition definition = getExtendedPropertyDefinition(nodeType, node, getPropertyNameFromFieldname(fieldName));
        if (definition != null && definition.isFacetable()) {
            addFacetValue(doc, fieldName, internalValue.toString());
        }                       
    }
View Full Code Here

Examples of org.jahia.services.content.nodetypes.ExtendedPropertyDefinition

    }

    @Override
    protected void addLongValue(Document doc, String fieldName, Object internalValue) {
        super.addLongValue(doc, fieldName, internalValue);
        ExtendedPropertyDefinition definition = getExtendedPropertyDefinition(nodeType, node, getPropertyNameFromFieldname(fieldName));
        if (definition != null && definition.isFacetable()) {
            addFacetValue(doc, fieldName, internalValue.toString());
        }                               
    }
View Full Code Here

Examples of org.jahia.services.content.nodetypes.ExtendedPropertyDefinition

    @Override
    protected void addReferenceValue(Document doc, String fieldName, Object internalValue,
            boolean weak) {
        super.addReferenceValue(doc, fieldName, internalValue, weak);
        ExtendedPropertyDefinition definition = getExtendedPropertyDefinition(nodeType, node, getPropertyNameFromFieldname(fieldName));
        if (definition != null && definition.isFacetable()) {
            addFacetValue(doc, fieldName, internalValue.toString());
        }                               
    }
View Full Code Here

Examples of org.jahia.services.content.nodetypes.ExtendedPropertyDefinition

    }

    @Override
    protected void addNameValue(Document doc, String fieldName, Object internalValue) {
        super.addNameValue(doc, fieldName, internalValue);
        ExtendedPropertyDefinition definition = getExtendedPropertyDefinition(nodeType, node, getPropertyNameFromFieldname(fieldName));
        if (definition != null && definition.isFacetable()) {
            addFacetValue(doc, fieldName, ((Name)internalValue).getNamespaceURI());
        }                                       
    }
View Full Code Here

Examples of org.jahia.services.content.nodetypes.ExtendedPropertyDefinition

                        if (facetOption.equals(FacetParams.FACET_QUERY)) {
                            if (value.split("(?<!\\\\):").length == 1
                                    && !StringUtils.isEmpty(column.getValue().getPropertyName())
                                    && !StringUtils.isEmpty(nodeType)
                                    && !column.getValue().getPropertyName().equals("rep:facet()")) {
                                ExtendedPropertyDefinition epd = NodeTypeRegistry.getInstance().getNodeType(nodeType).getPropertyDefinition(column.getValue().getPropertyName());
                                if (epd != null) {
                                    String fieldNameInIndex = getFieldNameInIndex(propertyName,
                                            epd, "");
                                    value = QueryParser.escape(fieldNameInIndex) + ":" + value;
                                }
View Full Code Here

Examples of org.jahia.services.content.nodetypes.ExtendedPropertyDefinition

        col.setKey(item.getKey());
        if (item.getTitleKey() != null) {
            col.setTitle(getResources(item.getTitleKey(), uiLocale != null ? uiLocale : locale, site, null));
        } else if (item.getDeclaringNodeType() != null) {
            try {
                ExtendedPropertyDefinition epd = NodeTypeRegistry.getInstance().getNodeType(item.getDeclaringNodeType()).getPropertyDefinition(item.getKey());
                col.setTitle(epd.getLabel(uiLocale != null ? uiLocale : locale));
            } catch (Exception e) {
                logger.error("Cannot get node type name", e);
                col.setTitle("");
            }
        } else if (item.getTitle() != null) {
View Full Code Here

Examples of org.jahia.services.content.nodetypes.ExtendedPropertyDefinition

    }

    @Override
    public JCRPropertyWrapper getProperty(String name) throws PathNotFoundException, RepositoryException {
        final Locale locale = getSession().getLocale();
        ExtendedPropertyDefinition epd = getApplicablePropertyDefinition(name);
        if (locale != null) {
            if (epd != null && epd.isInternationalized()) {
                try {
                    final Node localizedNode = getI18N(locale);
                    return new JCRPropertyWrapperImpl(this, localizedNode.getProperty(name), getSession(),
                                                      getProvider(), epd, name);
                } catch (ItemNotFoundException e) {
View Full Code Here

Examples of org.jahia.services.content.nodetypes.ExtendedPropertyDefinition

        return objectNode.getProperty(Constants.JCR_FROZENUUID).getString();
    }

    public ExtendedPropertyDefinition getApplicablePropertyDefinition(String propertyName)
            throws ConstraintViolationException, RepositoryException {
        ExtendedPropertyDefinition result = super.getApplicablePropertyDefinition(propertyName);
        if (result != null) {
            return result;
        }

        ExtendedNodeType type = NodeTypeRegistry.getInstance().getNodeType(Constants.NT_FROZENNODE);
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.