com.liferay.portal.kernel.model.Company.java Source code

Java tutorial

Introduction

Here is the source code for com.liferay.portal.kernel.model.Company.java

Source

/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.portal.kernel.model;

import com.liferay.portal.kernel.annotation.ImplementationClassName;
import com.liferay.portal.kernel.util.Accessor;

import org.osgi.annotation.versioning.ProviderType;

/**
 * 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.
 *
 * @author Brian Wing Shun Chan
 * @see CompanyModel
 * @generated
 */
@ImplementationClassName("com.liferay.portal.model.impl.CompanyImpl")
@ProviderType
public interface Company extends CompanyModel, PersistedModel {

    /**
     * NOTE FOR DEVELOPERS:
     *
     * Never modify this interface directly. Add methods to <code>com.liferay.portal.model.impl.CompanyImpl</code> and rerun ServiceBuilder to automatically copy the method declarations to this interface.
     */
    public static final Accessor<Company, Long> COMPANY_ID_ACCESSOR = new Accessor<Company, Long>() {

        @Override
        public Long get(Company company) {
            return company.getCompanyId();
        }

        @Override
        public Class<Long> getAttributeClass() {
            return Long.class;
        }

        @Override
        public Class<Company> getTypeClass() {
            return Company.class;
        }

    };

    public int compareTo(Company company);

    public Account getAccount() throws com.liferay.portal.kernel.exception.PortalException;

    public String getAdminName();

    public String getAuthType();

    public User getDefaultUser() throws com.liferay.portal.kernel.exception.PortalException;

    public String getDefaultWebId();

    public String getEmailAddress();

    public Group getGroup() throws com.liferay.portal.kernel.exception.PortalException;

    public long getGroupId() throws com.liferay.portal.kernel.exception.PortalException;

    public java.security.Key getKeyObj();

    public java.util.Locale getLocale() throws com.liferay.portal.kernel.exception.PortalException;

    @com.liferay.portal.kernel.bean.AutoEscape
    public String getName() throws com.liferay.portal.kernel.exception.PortalException;

    public String getPortalURL(long groupId) throws com.liferay.portal.kernel.exception.PortalException;

    public String getShortName() throws com.liferay.portal.kernel.exception.PortalException;

    public java.util.TimeZone getTimeZone() throws com.liferay.portal.kernel.exception.PortalException;

    public String getVirtualHostname();

    public boolean hasCompanyMx(String emailAddress);

    public boolean isAutoLogin();

    /**
     * @deprecated As of Mueller (7.2.x), with no direct replacement
     */
    @Deprecated
    public boolean isSendPassword();

    public boolean isSendPasswordResetLink();

    public boolean isSiteLogo();

    public boolean isStrangers();

    public boolean isStrangersVerify();

    public boolean isStrangersWithMx();

    public void setKeyObj(java.security.Key keyObj);

    public void setVirtualHostname(String virtualHostname);

}