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 UserGroupRole extends UserGroupRoleModel, PersistedModel {
032
037 public static final Accessor<UserGroupRole, Long> GROUP_ID_ACCESSOR = new Accessor<UserGroupRole, Long>() {
038 @Override
039 public Long get(UserGroupRole userGroupRole) {
040 return userGroupRole.getGroupId();
041 }
042 };
043
044 public static final Accessor<UserGroupRole, Long> ROLE_ID_ACCESSOR = new Accessor<UserGroupRole, Long>() {
045 @Override
046 public Long get(UserGroupRole userGroupRole) {
047 return userGroupRole.getRoleId();
048 }
049 };
050
051 public com.liferay.portal.model.Group getGroup()
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException;
054
055 public com.liferay.portal.model.Role getRole()
056 throws com.liferay.portal.kernel.exception.PortalException,
057 com.liferay.portal.kernel.exception.SystemException;
058
059 public com.liferay.portal.model.User getUser()
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException;
062 }