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.kernel.util.Accessor;
020    import com.liferay.portal.model.NestedSetsTreeNodeModel;
021    import com.liferay.portal.model.PersistedModel;
022    
023    /**
024     * The extended model interface for the AssetCategory service. Represents a row in the "AssetCategory" database table, with each column mapped to a property of this class.
025     *
026     * @author Brian Wing Shun Chan
027     * @see AssetCategoryModel
028     * @see com.liferay.portlet.asset.model.impl.AssetCategoryImpl
029     * @see com.liferay.portlet.asset.model.impl.AssetCategoryModelImpl
030     * @generated
031     */
032    @ProviderType
033    public interface AssetCategory extends AssetCategoryModel,
034            NestedSetsTreeNodeModel, PersistedModel {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this interface directly. Add methods to {@link com.liferay.portlet.asset.model.impl.AssetCategoryImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
039             */
040            public static final Accessor<AssetCategory, String> UUID_ACCESSOR = new Accessor<AssetCategory, String>() {
041                            @Override
042                            public String get(AssetCategory assetCategory) {
043                                    return assetCategory.getUuid();
044                            }
045    
046                            @Override
047                            public Class<String> getAttributeClass() {
048                                    return String.class;
049                            }
050    
051                            @Override
052                            public Class<AssetCategory> getTypeClass() {
053                                    return AssetCategory.class;
054                            }
055                    };
056    
057            public static final Accessor<AssetCategory, Long> CATEGORY_ID_ACCESSOR = new Accessor<AssetCategory, Long>() {
058                            @Override
059                            public Long get(AssetCategory assetCategory) {
060                                    return assetCategory.getCategoryId();
061                            }
062    
063                            @Override
064                            public Class<Long> getAttributeClass() {
065                                    return Long.class;
066                            }
067    
068                            @Override
069                            public Class<AssetCategory> getTypeClass() {
070                                    return AssetCategory.class;
071                            }
072                    };
073    
074            public static final Accessor<AssetCategory, String> NAME_ACCESSOR = new Accessor<AssetCategory, String>() {
075                            @Override
076                            public String get(AssetCategory assetCategory) {
077                                    return assetCategory.getName();
078                            }
079    
080                            @Override
081                            public Class<String> getAttributeClass() {
082                                    return String.class;
083                            }
084    
085                            @Override
086                            public Class<AssetCategory> getTypeClass() {
087                                    return AssetCategory.class;
088                            }
089                    };
090    
091            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAncestors()
092                    throws com.liferay.portal.kernel.exception.PortalException;
093    
094            public com.liferay.portlet.asset.model.AssetCategory getParentCategory();
095    
096            public java.lang.String getPath(java.util.Locale locale)
097                    throws com.liferay.portal.kernel.exception.PortalException;
098    
099            public boolean isRootCategory();
100    }