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 Company service. Represents a row in the "Company" database table, with each column mapped to a property of this class.
024     *
025     * @author Brian Wing Shun Chan
026     * @see CompanyModel
027     * @see com.liferay.portal.model.impl.CompanyImpl
028     * @see com.liferay.portal.model.impl.CompanyModelImpl
029     * @generated
030     */
031    @ImplementationClassName("com.liferay.portal.model.impl.CompanyImpl")
032    @ProviderType
033    public interface Company extends CompanyModel, PersistedModel {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this interface directly. Add methods to {@link com.liferay.portal.model.impl.CompanyImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
038             */
039            public static final Accessor<Company, Long> COMPANY_ID_ACCESSOR = new Accessor<Company, Long>() {
040                            @Override
041                            public Long get(Company company) {
042                                    return company.getCompanyId();
043                            }
044    
045                            @Override
046                            public Class<Long> getAttributeClass() {
047                                    return Long.class;
048                            }
049    
050                            @Override
051                            public Class<Company> getTypeClass() {
052                                    return Company.class;
053                            }
054                    };
055    
056            public Account getAccount()
057                    throws com.liferay.portal.kernel.exception.PortalException;
058    
059            public java.lang.String getAdminName();
060    
061            public java.lang.String getAuthType();
062    
063            public User getDefaultUser()
064                    throws com.liferay.portal.kernel.exception.PortalException;
065    
066            public java.lang.String getDefaultWebId();
067    
068            public java.lang.String getEmailAddress();
069    
070            public Group getGroup()
071                    throws com.liferay.portal.kernel.exception.PortalException;
072    
073            public long getGroupId()
074                    throws com.liferay.portal.kernel.exception.PortalException;
075    
076            public java.security.Key getKeyObj();
077    
078            public java.util.Locale getLocale()
079                    throws com.liferay.portal.kernel.exception.PortalException;
080    
081            @com.liferay.portal.kernel.bean.AutoEscape()
082            public java.lang.String getName()
083                    throws com.liferay.portal.kernel.exception.PortalException;
084    
085            public java.lang.String getPortalURL(long groupId)
086                    throws com.liferay.portal.kernel.exception.PortalException;
087    
088            public java.lang.String getShortName()
089                    throws com.liferay.portal.kernel.exception.PortalException;
090    
091            public java.util.TimeZone getTimeZone()
092                    throws com.liferay.portal.kernel.exception.PortalException;
093    
094            public java.lang.String getVirtualHostname();
095    
096            public boolean hasCompanyMx(java.lang.String emailAddress);
097    
098            public boolean isAutoLogin();
099    
100            public boolean isSendPassword();
101    
102            public boolean isSendPasswordResetLink();
103    
104            public boolean isSiteLogo();
105    
106            public boolean isStrangers();
107    
108            public boolean isStrangersVerify();
109    
110            public boolean isStrangersWithMx();
111    
112            public void setKeyObj(java.security.Key keyObj);
113    
114            public void setVirtualHostname(java.lang.String virtualHostname);
115    }