001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.asset.util; 016 017 import com.liferay.asset.kernel.model.AssetVocabulary; 018 import com.liferay.portal.kernel.exception.PortalException; 019 020 /** 021 * @author Brian Wing Shun Chan 022 * @deprecated As of 7.0.0, with no direct replacement 023 */ 024 @Deprecated 025 public class BaseAssetEntryValidator implements AssetEntryValidator { 026 027 /** 028 * @throws PortalException 029 */ 030 @Override 031 public void validate( 032 long groupId, String className, long classTypePK, 033 long[] categoryIds, String[] entryNames) 034 throws PortalException { 035 } 036 037 protected boolean isAssetCategorizable(long classNameId) { 038 return true; 039 } 040 041 /** 042 * @throws PortalException 043 */ 044 protected void validate( 045 long classNameId, long classTypePK, final long[] categoryIds, 046 AssetVocabulary vocabulary) 047 throws PortalException { 048 } 049 050 }