001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.util.Accessor;
020
021
030 @ProviderType
031 public interface UserGroup extends UserGroupModel, PersistedModel {
032
037 public static final Accessor<UserGroup, String> NAME_ACCESSOR = new Accessor<UserGroup, String>() {
038 @Override
039 public String get(UserGroup userGroup) {
040 return userGroup.getName();
041 }
042
043 @Override
044 public Class<String> getAttributeClass() {
045 return String.class;
046 }
047
048 @Override
049 public Class<UserGroup> getTypeClass() {
050 return UserGroup.class;
051 }
052 };
053
054 public com.liferay.portal.model.Group getGroup()
055 throws com.liferay.portal.kernel.exception.PortalException;
056
057 public long getGroupId()
058 throws com.liferay.portal.kernel.exception.PortalException;
059
060 public int getPrivateLayoutsPageCount()
061 throws com.liferay.portal.kernel.exception.PortalException;
062
063 public int getPublicLayoutsPageCount()
064 throws com.liferay.portal.kernel.exception.PortalException;
065
066 public boolean hasPrivateLayouts()
067 throws com.liferay.portal.kernel.exception.PortalException;
068
069 public boolean hasPublicLayouts()
070 throws com.liferay.portal.kernel.exception.PortalException;
071 }