1
22
23 package com.liferay.portal.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
54 @Transactional(rollbackFor = {
55 PortalException.class, SystemException.class})
56 public interface CompanyService {
57 public com.liferay.portal.model.Company addCompany(java.lang.String webId,
58 java.lang.String virtualHost, java.lang.String mx)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException;
61
62 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
63 public com.liferay.portal.model.Company getCompanyById(long companyId)
64 throws com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException;
66
67 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
68 public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException;
71
72 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
73 public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portal.model.Company getCompanyByVirtualHost(
79 java.lang.String virtualHost)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portal.model.Company getCompanyByWebId(
85 java.lang.String webId)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException;
88
89 public com.liferay.portal.model.Company updateCompany(long companyId,
90 java.lang.String virtualHost, java.lang.String mx)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException;
93
94 public com.liferay.portal.model.Company updateCompany(long companyId,
95 java.lang.String virtualHost, java.lang.String mx,
96 java.lang.String homeURL, java.lang.String name,
97 java.lang.String legalName, java.lang.String legalId,
98 java.lang.String legalType, java.lang.String sicCode,
99 java.lang.String tickerSymbol, java.lang.String industry,
100 java.lang.String type, java.lang.String size)
101 throws com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException;
103
104 public void updateDisplay(long companyId, java.lang.String languageId,
105 java.lang.String timeZoneId)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException;
108
109 public void updateLogo(long companyId, java.io.File file)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 public void updateSecurity(long companyId, java.lang.String authType,
114 boolean autoLogin, boolean sendPassword, boolean strangers,
115 boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException;
118 }