001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.annotation.ImplementationClassName;
020 import com.liferay.portal.kernel.util.Accessor;
021
022
031 @ImplementationClassName("com.liferay.portal.model.impl.UserGroupGroupRoleImpl")
032 @ProviderType
033 public interface UserGroupGroupRole extends UserGroupGroupRoleModel,
034 PersistedModel {
035
040 public static final Accessor<UserGroupGroupRole, Long> USER_GROUP_ID_ACCESSOR =
041 new Accessor<UserGroupGroupRole, Long>() {
042 @Override
043 public Long get(UserGroupGroupRole userGroupGroupRole) {
044 return userGroupGroupRole.getUserGroupId();
045 }
046
047 @Override
048 public Class<Long> getAttributeClass() {
049 return Long.class;
050 }
051
052 @Override
053 public Class<UserGroupGroupRole> getTypeClass() {
054 return UserGroupGroupRole.class;
055 }
056 };
057
058 public static final Accessor<UserGroupGroupRole, Long> GROUP_ID_ACCESSOR = new Accessor<UserGroupGroupRole, Long>() {
059 @Override
060 public Long get(UserGroupGroupRole userGroupGroupRole) {
061 return userGroupGroupRole.getGroupId();
062 }
063
064 @Override
065 public Class<Long> getAttributeClass() {
066 return Long.class;
067 }
068
069 @Override
070 public Class<UserGroupGroupRole> getTypeClass() {
071 return UserGroupGroupRole.class;
072 }
073 };
074
075 public static final Accessor<UserGroupGroupRole, Long> ROLE_ID_ACCESSOR = new Accessor<UserGroupGroupRole, Long>() {
076 @Override
077 public Long get(UserGroupGroupRole userGroupGroupRole) {
078 return userGroupGroupRole.getRoleId();
079 }
080
081 @Override
082 public Class<Long> getAttributeClass() {
083 return Long.class;
084 }
085
086 @Override
087 public Class<UserGroupGroupRole> getTypeClass() {
088 return UserGroupGroupRole.class;
089 }
090 };
091
092 public com.liferay.portal.model.Group getGroup()
093 throws com.liferay.portal.kernel.exception.PortalException;
094
095 public com.liferay.portal.model.Role getRole()
096 throws com.liferay.portal.kernel.exception.PortalException;
097
098 public com.liferay.portal.model.UserGroup getUserGroup()
099 throws com.liferay.portal.kernel.exception.PortalException;
100 }