/** * Returns the portal instance ID. * * <p> * Company is Liferay's technical name for a portal instance. * <p> * * @return the portal instance ID */ public long getCompanyId() { return _company.getCompanyId(); }
@Override public String getVirtualHostname() { return _company.getVirtualHostname(); }
@Override public Group getGroup() throws com.liferay.portal.kernel.exception.PortalException { return _company.getGroup(); }
public static CompanySoap toSoapModel(Company model) { CompanySoap soapModel = new CompanySoap(); soapModel.setMvccVersion(model.getMvccVersion()); soapModel.setCompanyId(model.getCompanyId()); soapModel.setAccountId(model.getAccountId()); soapModel.setWebId(model.getWebId()); soapModel.setKey(model.getKey()); soapModel.setMx(model.getMx()); soapModel.setHomeURL(model.getHomeURL()); soapModel.setLogoId(model.getLogoId()); soapModel.setSystem(model.isSystem()); soapModel.setMaxUsers(model.getMaxUsers()); soapModel.setActive(model.isActive()); return soapModel; }
LocaleThreadLocal.setDefaultLocale(company.getLocale()); company.getGroupId()); company.getCompanyId())); company.getGroupId(), company.getCompanyId(), "type", nameMap, new HashMap<Locale, String>()); company.getGroupId(), company.getCompanyId(), type, assetVocabulary.getVocabularyId()); company.getCompanyId(), journalArticleTypesToAssetCategoryIds);
setContextAttribute("[$COMPANY_ID$]", company.getCompanyId()); setContextAttribute("[$COMPANY_MX$]", company.getMx()); setContextAttribute("[$COMPANY_NAME$]", company.getName()); setContextAttribute("[$PORTAL_URL$]", company.getPortalURL(groupId)); company.getMx(), _mailIdPopPortletPrefix, _mailIdIds);
public static void setCompanyId(Long companyId) { if (companyId.equals(_companyId.get())) { return; } if (_log.isDebugEnabled()) { _log.debug("setCompanyId " + companyId); } if (companyId > 0) { _companyId.set(companyId); try { Company company = CompanyLocalServiceUtil.getCompany(companyId); LocaleThreadLocal.setDefaultLocale(company.getLocale()); TimeZoneThreadLocal.setDefaultTimeZone(company.getTimeZone()); } catch (Exception e) { _log.error(e, e); } } else { _companyId.set(CompanyConstants.SYSTEM); LocaleThreadLocal.setDefaultLocale(null); TimeZoneThreadLocal.setDefaultTimeZone(null); } }
@Override public long getGroupId() throws com.liferay.portal.kernel.exception.PortalException { return _company.getGroupId(); }
@Override public java.util.Locale getLocale() throws com.liferay.portal.kernel.exception.PortalException { return _company.getLocale(); }
@Override public Object clone() { return new CompanyWrapper((Company)_company.clone()); }
public void setCompany(Company company) throws PortalException { _company = company; _companyGroupId = company.getGroupId(); }
/** * Returns the company ID of this company. * * @return the company ID of this company */ @Override public long getCompanyId() { return _company.getCompanyId(); }
String virtualHostname = company.getVirtualHostname();
portletDataContext.getCompanyId()); Group companyGroup = company.getGroup();
@Override public Long get(Company company) { return company.getCompanyId(); }
definitionTerms.put("[$PORTAL_URL$]", company.getVirtualHostname());
public Group getControlPanelGroup() { if (_controlPanelGroup == null) { try { _controlPanelGroup = GroupLocalServiceUtil.getGroup( _company.getCompanyId(), GroupConstants.CONTROL_PANEL); } catch (PortalException pe) { ReflectionUtil.throwException(pe); } } return _controlPanelGroup; }
definitionTerms.put("[$PORTAL_URL$]", company.getVirtualHostname());
@Override public void portalInstanceRegistered(Company company) throws Exception { JournalServiceConfiguration journalServiceConfiguration = _configurationProvider.getCompanyConfiguration( JournalServiceConfiguration.class, company.getCompanyId()); if (!journalServiceConfiguration.syncContentSearchOnStartup()) { return; } _journalContentSearchLocalService.checkContentSearches( company.getCompanyId()); }
String companyVirtualHostname = company.getVirtualHostname();