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.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.model.PersistedModel;
020    
021    /**
022     * The extended model interface for the AssetVocabulary service. Represents a row in the "AssetVocabulary" database table, with each column mapped to a property of this class.
023     *
024     * @author Brian Wing Shun Chan
025     * @see AssetVocabularyModel
026     * @see com.liferay.portlet.asset.model.impl.AssetVocabularyImpl
027     * @see com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl
028     * @generated
029     */
030    @ProviderType
031    public interface AssetVocabulary extends AssetVocabularyModel, PersistedModel {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify this interface directly. Add methods to {@link com.liferay.portlet.asset.model.impl.AssetVocabularyImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
036             */
037            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories();
038    
039            public int getCategoriesCount();
040    
041            public long[] getRequiredClassNameIds();
042    
043            public long[] getSelectedClassNameIds();
044    
045            public long[] getSelectedClassTypePKs();
046    
047            /**
048            * @deprecated As of 7.0.0, with no direct replacement
049            */
050            @java.lang.Deprecated()
051            public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties();
052    
053            public java.lang.String getUnambiguousTitle(
054                    java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> vocabularies,
055                    long groupId, java.util.Locale locale)
056                    throws com.liferay.portal.kernel.exception.PortalException;
057    
058            public boolean hasMoreThanOneCategorySelected(long[] categoryIds);
059    
060            public boolean isAssociatedToClassNameId(long classNameId);
061    
062            public boolean isAssociatedToClassNameIdAndClassTypePK(long classNameId,
063                    long classTypePK);
064    
065            public boolean isMissingRequiredCategory(long classNameId,
066                    long classTypePK, long[] categoryIds);
067    
068            public boolean isMultiValued();
069    
070            /**
071            * @deprecated As of 7.0.0, replaced by {@link #isRequired(long, long)}
072            */
073            @java.lang.Deprecated()
074            public boolean isRequired(long classNameId);
075    
076            public boolean isRequired(long classNameId, long classTypePK);
077    
078            /**
079            * @deprecated As of 7.0.0, with no direct replacement
080            */
081            @java.lang.Deprecated()
082            public void setSettingsProperties(
083                    com.liferay.portal.kernel.util.UnicodeProperties settingsProperties);
084    }