001/*
002 * (C) Copyright 2011 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 *     Quentin Lamerand <qlamerand@nuxeo.com>
018 */
019
020package org.nuxeo.ecm.user.center.profile;
021
022/**
023 * @author <a href="mailto:qlamerand@nuxeo.com">Quentin Lamerand</a>
024 */
025public class UserProfileConstants {
026
027    private UserProfileConstants() {
028        // Constants class
029    }
030
031    /**
032     * @since 9.3
033     */
034    public static final String USER_PROFILE_SCHEMA = "userprofile";
035
036    public static final String USER_PROFILE_FACET = "UserProfile";
037
038    public static final String USER_PROFILE_DOCTYPE = "UserProfile";
039
040    public static final String USER_PROFILE_BIRTHDATE_FIELD = USER_PROFILE_SCHEMA + ":birthdate";
041
042    public static final String USER_PROFILE_AVATAR_FIELD = USER_PROFILE_SCHEMA + ":avatar";
043
044    public static final String USER_PROFILE_PHONENUMBER_FIELD = USER_PROFILE_SCHEMA + ":phonenumber";
045
046    public static final String USER_PROFILE_GENDER_FIELD = USER_PROFILE_SCHEMA + ":gender";
047
048    /**
049     * @since 5.6
050     * @deprecated since 9.3. No 'timezone' field on userprofile.xsd
051     */
052    @Deprecated
053    public static final String USER_PROFILE_TIMEZONE = USER_PROFILE_SCHEMA + ":timezone";
054
055    /**
056     * @since 5.6
057     */
058    public static final String USER_PROFILE_LOCALE = USER_PROFILE_SCHEMA + ":locale";
059}