001/*
002 * (C) Copyright 2006-2007 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a>
018 *
019 * $Id: TagConfigFactory.java 28460 2008-01-03 15:34:05Z sfermigier $
020 */
021
022package org.nuxeo.ecm.platform.forms.layout.facelets;
023
024import javax.faces.view.facelets.ComponentConfig;
025import javax.faces.view.facelets.ConverterConfig;
026import javax.faces.view.facelets.FaceletHandler;
027import javax.faces.view.facelets.TagAttributes;
028import javax.faces.view.facelets.TagConfig;
029import javax.faces.view.facelets.ValidatorConfig;
030
031/**
032 * Helper for generating configs outside of a library context.
033 *
034 * @author <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a>
035 * @deprecated since 5.7: use {@link org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory} instead
036 */
037@Deprecated
038public final class TagConfigFactory {
039
040    /**
041     * @deprecated since 5.7: use {@link org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory} instead
042     **/
043    @Deprecated
044    public static TagConfig createTagConfig(TagConfig tagConfig, String tagConfigId, TagAttributes attributes,
045            FaceletHandler nextHandler) {
046        return org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory.createTagConfig(tagConfig, tagConfigId,
047                attributes, nextHandler);
048    }
049
050    /**
051     * @deprecated since 5.7: use {@link org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory} instead
052     **/
053    @Deprecated
054    public static ComponentConfig createComponentConfig(TagConfig tagConfig, String tagConfigId,
055            TagAttributes attributes, FaceletHandler nextHandler, String componentType, String rendererType) {
056        return org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory.createComponentConfig(tagConfig, tagConfigId,
057                attributes, nextHandler, componentType, rendererType);
058    }
059
060    /**
061     * @deprecated since 5.7: use {@link org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory} instead
062     **/
063    @Deprecated
064    public static ConverterConfig createConverterConfig(TagConfig tagConfig, String tagConfigId,
065            TagAttributes attributes, FaceletHandler nextHandler, String converterId) {
066        return org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory.createConverterConfig(tagConfig, tagConfigId,
067                attributes, nextHandler, converterId);
068    }
069
070    /**
071     * @deprecated since 5.7: use {@link org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory} instead
072     **/
073    @Deprecated
074    public static ValidatorConfig createValidatorConfig(TagConfig tagConfig, String tagConfigId,
075            TagAttributes attributes, FaceletHandler nextHandler, String validatorId) {
076        return org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory.createValidatorConfig(tagConfig, tagConfigId,
077                attributes, nextHandler, validatorId);
078    }
079
080}