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.portal.kernel.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    /**
023     * The extended model interface for the UserGroupGroupRole service. Represents a row in the "UserGroupGroupRole" database table, with each column mapped to a property of this class.
024     *
025     * @author Brian Wing Shun Chan
026     * @see UserGroupGroupRoleModel
027     * @see com.liferay.portal.model.impl.UserGroupGroupRoleImpl
028     * @see com.liferay.portal.model.impl.UserGroupGroupRoleModelImpl
029     * @generated
030     */
031    @ImplementationClassName("com.liferay.portal.model.impl.UserGroupGroupRoleImpl")
032    @ProviderType
033    public interface UserGroupGroupRole extends UserGroupGroupRoleModel,
034            PersistedModel {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this interface directly. Add methods to {@link com.liferay.portal.model.impl.UserGroupGroupRoleImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
039             */
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.kernel.model.Group getGroup()
093                    throws com.liferay.portal.kernel.exception.PortalException;
094    
095            public com.liferay.portal.kernel.model.Role getRole()
096                    throws com.liferay.portal.kernel.exception.PortalException;
097    
098            public com.liferay.portal.kernel.model.UserGroup getUserGroup()
099                    throws com.liferay.portal.kernel.exception.PortalException;
100    }