All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.social.kernel.model.SocialRelationConstants Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.social.kernel.model;

import com.liferay.social.kernel.util.SocialRelationTypesUtil;

/**
 * @author Brian Wing Shun Chan
 * @author Raymond Augé
 */
public class SocialRelationConstants {

	public static final int TYPE_BI_CONNECTION = 12;

	public static final int TYPE_BI_COWORKER = 1;

	public static final int TYPE_BI_FRIEND = 2;

	public static final int TYPE_BI_ROMANTIC_PARTNER = 3;

	public static final int TYPE_BI_SIBLING = 4;

	public static final int TYPE_BI_SPOUSE = 5;

	public static final int TYPE_UNI_CHILD = 6;

	public static final int TYPE_UNI_ENEMY = 9;

	public static final int TYPE_UNI_FOLLOWER = 8;

	public static final int TYPE_UNI_PARENT = 7;

	public static final int TYPE_UNI_SUBORDINATE = 10;

	public static final int TYPE_UNI_SUPERVISOR = 11;

	/**
	 * @deprecated As of Wilberforce (7.0.x), replaced by {@link
	 *             SocialRelationTypesUtil#getTypeLabel(int)}
	 */
	@Deprecated
	public static String getTypeLabel(int type) {
		return SocialRelationTypesUtil.getTypeLabel(type);
	}

	/**
	 * @deprecated As of Wilberforce (7.0.x), replaced by {@link
	 *             SocialRelationTypesUtil#isTypeBi(int)}
	 */
	@Deprecated
	public static boolean isTypeBi(int type) {
		return SocialRelationTypesUtil.isTypeBi(type);
	}

	/**
	 * @deprecated As of Wilberforce (7.0.x), replaced by {@link
	 *             SocialRelationTypesUtil#isTypeUni(int)}
	 */
	@Deprecated
	public static boolean isTypeUni(int type) {
		return SocialRelationTypesUtil.isTypeUni(type);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy