001
014
015 package com.liferay.message.boards.kernel.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.annotation.ImplementationClassName;
020 import com.liferay.portal.kernel.model.PersistedModel;
021 import com.liferay.portal.kernel.util.Accessor;
022
023
032 @ImplementationClassName("com.liferay.portlet.messageboards.model.impl.MBCategoryImpl")
033 @ProviderType
034 public interface MBCategory extends MBCategoryModel, PersistedModel {
035
040 public static final Accessor<MBCategory, Long> CATEGORY_ID_ACCESSOR = new Accessor<MBCategory, Long>() {
041 @Override
042 public Long get(MBCategory mbCategory) {
043 return mbCategory.getCategoryId();
044 }
045
046 @Override
047 public Class<Long> getAttributeClass() {
048 return Long.class;
049 }
050
051 @Override
052 public Class<MBCategory> getTypeClass() {
053 return MBCategory.class;
054 }
055 };
056
057 public java.util.List<java.lang.Long> getAncestorCategoryIds()
058 throws com.liferay.portal.kernel.exception.PortalException;
059
060 public java.util.List<MBCategory> getAncestors()
061 throws com.liferay.portal.kernel.exception.PortalException;
062
063 public MBCategory getParentCategory()
064 throws com.liferay.portal.kernel.exception.PortalException;
065
066 public boolean isRoot();
067 }