com.liferay.portal.service.impl
Class CompanyLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.base.CompanyLocalServiceBaseImpl
      extended by com.liferay.portal.service.impl.CompanyLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.service.CompanyLocalService

public class CompanyLocalServiceImpl
extends CompanyLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portal.service.base.CompanyLocalServiceBaseImpl
accountLocalService, accountPersistence, accountService, addressLocalService, addressPersistence, addressService, classNameLocalService, classNamePersistence, classNameService, companyLocalService, companyPersistence, companyService, contactLocalService, contactPersistence, contactService, counterLocalService, counterService, countryPersistence, countryService, emailAddressLocalService, emailAddressPersistence, emailAddressService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, layoutFinder, layoutLocalService, layoutPersistence, layoutService, layoutSetLocalService, layoutSetPersistence, layoutSetService, layoutTemplateLocalService, listTypePersistence, listTypeService, membershipRequestLocalService, membershipRequestPersistence, membershipRequestService, organizationFinder, organizationLocalService, organizationPersistence, organizationService, orgGroupPermissionFinder, orgGroupPermissionPersistence, orgGroupRolePersistence, orgLaborLocalService, orgLaborPersistence, orgLaborService, passwordPolicyFinder, passwordPolicyLocalService, passwordPolicyPersistence, passwordPolicyRelLocalService, passwordPolicyRelPersistence, passwordPolicyService, passwordTrackerLocalService, passwordTrackerPersistence, permissionFinder, permissionLocalService, permissionPersistence, permissionService, permissionUserFinder, phoneLocalService, phonePersistence, phoneService, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, portalLocalService, portalService, portletItemLocalService, portletItemPersistence, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, portletService, quartzLocalService, regionPersistence, regionService, releaseLocalService, releasePersistence, resourceCodeLocalService, resourceCodePersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, roleFinder, roleLocalService, rolePersistence, roleService, serviceComponentLocalService, serviceComponentPersistence, subscriptionLocalService, subscriptionPersistence, themeLocalService, themeService, userFinder, userGroupFinder, userGroupLocalService, userGroupPersistence, userGroupRoleLocalService, userGroupRolePersistence, userGroupRoleService, userGroupService, userIdMapperLocalService, userIdMapperPersistence, userLocalService, userPersistence, userService, userTrackerLocalService, userTrackerPathLocalService, userTrackerPathPersistence, userTrackerPersistence, webDAVPropsLocalService, webDAVPropsPersistence, websiteLocalService, websitePersistence, websiteService
 
Constructor Summary
CompanyLocalServiceImpl()
           
 
Method Summary
 com.liferay.portal.model.Company addCompany(java.lang.String webId, java.lang.String virtualHost, java.lang.String mx)
           
 com.liferay.portal.model.Company checkCompany(java.lang.String webId)
           
 com.liferay.portal.model.Company checkCompany(java.lang.String webId, java.lang.String mx)
           
 void checkCompanyKey(long companyId)
           
 java.util.List<com.liferay.portal.model.Company> getCompanies()
           
 com.liferay.portal.model.Company getCompanyById(long companyId)
           
 com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
           
 com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
           
 com.liferay.portal.model.Company getCompanyByVirtualHost(java.lang.String virtualHost)
           
 com.liferay.portal.model.Company getCompanyByWebId(java.lang.String webId)
           
protected  long getLogoId(long companyId)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, java.lang.String keywords, int start, int end)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, java.lang.String portletId, long groupId, java.lang.String type, java.lang.String keywords, int start, int end)
           
 com.liferay.portal.model.Company updateCompany(long companyId, java.lang.String virtualHost, java.lang.String mx)
           
 com.liferay.portal.model.Company updateCompany(long companyId, java.lang.String virtualHost, java.lang.String mx, java.lang.String homeURL, java.lang.String name, java.lang.String legalName, java.lang.String legalId, java.lang.String legalType, java.lang.String sicCode, java.lang.String tickerSymbol, java.lang.String industry, java.lang.String type, java.lang.String size)
           
 void updateDisplay(long companyId, java.lang.String languageId, java.lang.String timeZoneId)
           
 void updateLogo(long companyId, byte[] bytes)
           
 void updateLogo(long companyId, java.io.File file)
           
 void updateLogo(long companyId, java.io.InputStream is)
           
 void updateSecurity(long companyId, java.lang.String authType, boolean autoLogin, boolean sendPassword, boolean strangers, boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
           
protected  void validate(java.lang.String name)
           
protected  void validate(java.lang.String webId, java.lang.String virtualHost, java.lang.String mx)
           
 
Methods inherited from class com.liferay.portal.service.base.CompanyLocalServiceBaseImpl
addCompany, createCompany, deleteCompany, deleteCompany, dynamicQuery, dynamicQuery, getAccountLocalService, getAccountPersistence, getAccountService, getAddressLocalService, getAddressPersistence, getAddressService, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCompanies, getCompaniesCount, getCompany, getCompanyLocalService, getCompanyPersistence, getCompanyService, getContactLocalService, getContactPersistence, getContactService, getCounterLocalService, getCounterService, getCountryPersistence, getCountryService, getEmailAddressLocalService, getEmailAddressPersistence, getEmailAddressService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetService, getLayoutTemplateLocalService, getListTypePersistence, getListTypeService, getMembershipRequestLocalService, getMembershipRequestPersistence, getMembershipRequestService, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getOrgGroupPermissionFinder, getOrgGroupPermissionPersistence, getOrgGroupRolePersistence, getOrgLaborLocalService, getOrgLaborPersistence, getOrgLaborService, getPasswordPolicyFinder, getPasswordPolicyLocalService, getPasswordPolicyPersistence, getPasswordPolicyRelLocalService, getPasswordPolicyRelPersistence, getPasswordPolicyService, getPasswordTrackerLocalService, getPasswordTrackerPersistence, getPermissionFinder, getPermissionLocalService, getPermissionPersistence, getPermissionService, getPermissionUserFinder, getPhoneLocalService, getPhonePersistence, getPhoneService, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPortalLocalService, getPortalService, getPortletItemLocalService, getPortletItemPersistence, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getPortletService, getQuartzLocalService, getRegionPersistence, getRegionService, getReleaseLocalService, getReleasePersistence, getResourceCodeLocalService, getResourceCodePersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getServiceComponentLocalService, getServiceComponentPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getThemeLocalService, getThemeService, getUserFinder, getUserGroupFinder, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserPersistence, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, setAccountLocalService, setAccountPersistence, setAccountService, setAddressLocalService, setAddressPersistence, setAddressService, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setContactLocalService, setContactPersistence, setContactService, setCounterLocalService, setCounterService, setCountryPersistence, setCountryService, setEmailAddressLocalService, setEmailAddressPersistence, setEmailAddressService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutService, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetService, setLayoutTemplateLocalService, setListTypePersistence, setListTypeService, setMembershipRequestLocalService, setMembershipRequestPersistence, setMembershipRequestService, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setOrganizationService, setOrgGroupPermissionFinder, setOrgGroupPermissionPersistence, setOrgGroupRolePersistence, setOrgLaborLocalService, setOrgLaborPersistence, setOrgLaborService, setPasswordPolicyFinder, setPasswordPolicyLocalService, setPasswordPolicyPersistence, setPasswordPolicyRelLocalService, setPasswordPolicyRelPersistence, setPasswordPolicyService, setPasswordTrackerLocalService, setPasswordTrackerPersistence, setPermissionFinder, setPermissionLocalService, setPermissionPersistence, setPermissionService, setPermissionUserFinder, setPhoneLocalService, setPhonePersistence, setPhoneService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPortalLocalService, setPortalService, setPortletItemLocalService, setPortletItemPersistence, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setPortletService, setQuartzLocalService, setRegionPersistence, setRegionService, setReleaseLocalService, setReleasePersistence, setResourceCodeLocalService, setResourceCodePersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setServiceComponentLocalService, setServiceComponentPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setThemeLocalService, setThemeService, setUserFinder, setUserGroupFinder, setUserGroupLocalService, setUserGroupPersistence, setUserGroupRoleLocalService, setUserGroupRolePersistence, setUserGroupRoleService, setUserGroupService, setUserIdMapperLocalService, setUserIdMapperPersistence, setUserLocalService, setUserPersistence, setUserService, setUserTrackerLocalService, setUserTrackerPathLocalService, setUserTrackerPathPersistence, setUserTrackerPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWebsiteLocalService, setWebsitePersistence, setWebsiteService, updateCompany
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompanyLocalServiceImpl

public CompanyLocalServiceImpl()
Method Detail

addCompany

public com.liferay.portal.model.Company addCompany(java.lang.String webId,
                                                   java.lang.String virtualHost,
                                                   java.lang.String mx)
                                            throws com.liferay.portal.PortalException,
                                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkCompany

public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
                                              throws com.liferay.portal.PortalException,
                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkCompany

public com.liferay.portal.model.Company checkCompany(java.lang.String webId,
                                                     java.lang.String mx)
                                              throws com.liferay.portal.PortalException,
                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkCompanyKey

public void checkCompanyKey(long companyId)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanies

public java.util.List<com.liferay.portal.model.Company> getCompanies()
                                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyById

public com.liferay.portal.model.Company getCompanyById(long companyId)
                                                throws com.liferay.portal.PortalException,
                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByLogoId

public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
                                                    throws com.liferay.portal.PortalException,
                                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByMx

public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
                                                throws com.liferay.portal.PortalException,
                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByVirtualHost

public com.liferay.portal.model.Company getCompanyByVirtualHost(java.lang.String virtualHost)
                                                         throws com.liferay.portal.PortalException,
                                                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByWebId

public com.liferay.portal.model.Company getCompanyByWebId(java.lang.String webId)
                                                   throws com.liferay.portal.PortalException,
                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

search

public com.liferay.portal.kernel.search.Hits search(long companyId,
                                                    java.lang.String keywords,
                                                    int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public com.liferay.portal.kernel.search.Hits search(long companyId,
                                                    java.lang.String portletId,
                                                    long groupId,
                                                    java.lang.String type,
                                                    java.lang.String keywords,
                                                    int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateCompany

public com.liferay.portal.model.Company updateCompany(long companyId,
                                                      java.lang.String virtualHost,
                                                      java.lang.String mx)
                                               throws com.liferay.portal.PortalException,
                                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateCompany

public com.liferay.portal.model.Company updateCompany(long companyId,
                                                      java.lang.String virtualHost,
                                                      java.lang.String mx,
                                                      java.lang.String homeURL,
                                                      java.lang.String name,
                                                      java.lang.String legalName,
                                                      java.lang.String legalId,
                                                      java.lang.String legalType,
                                                      java.lang.String sicCode,
                                                      java.lang.String tickerSymbol,
                                                      java.lang.String industry,
                                                      java.lang.String type,
                                                      java.lang.String size)
                                               throws com.liferay.portal.PortalException,
                                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateDisplay

public void updateDisplay(long companyId,
                          java.lang.String languageId,
                          java.lang.String timeZoneId)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLogo

public void updateLogo(long companyId,
                       byte[] bytes)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLogo

public void updateLogo(long companyId,
                       java.io.File file)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLogo

public void updateLogo(long companyId,
                       java.io.InputStream is)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateSecurity

public void updateSecurity(long companyId,
                           java.lang.String authType,
                           boolean autoLogin,
                           boolean sendPassword,
                           boolean strangers,
                           boolean strangersWithMx,
                           boolean strangersVerify,
                           boolean communityLogo)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getLogoId

protected long getLogoId(long companyId)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(java.lang.String name)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

validate

protected void validate(java.lang.String webId,
                        java.lang.String virtualHost,
                        java.lang.String mx)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException