com.liferay.portal.service
Interface PhoneLocalService


public interface PhoneLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portal.service.impl.PhoneLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
PhoneServiceFactory, PhoneServiceUtil

Method Summary
 Phone addPhone(long userId, java.lang.String className, long classPK, java.lang.String number, java.lang.String extension, int typeId, boolean primary)
           
 Phone addPhone(Phone model)
           
 void deletePhone(long phoneId)
           
 void deletePhones(long companyId, java.lang.String className, long classPK)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 Phone getPhone(long phoneId)
           
 java.util.List getPhones()
           
 java.util.List getPhones(long companyId, java.lang.String className, long classPK)
           
 Phone updatePhone(long phoneId, java.lang.String number, java.lang.String extension, int typeId, boolean primary)
           
 Phone updatePhone(Phone model)
           
 

Method Detail

addPhone

public Phone addPhone(Phone model)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                   int begin,
                                   int end)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updatePhone

public Phone updatePhone(Phone model)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addPhone

public Phone addPhone(long userId,
                      java.lang.String className,
                      long classPK,
                      java.lang.String number,
                      java.lang.String extension,
                      int typeId,
                      boolean primary)
               throws com.liferay.portal.SystemException,
                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deletePhone

public void deletePhone(long phoneId)
                 throws com.liferay.portal.SystemException,
                        com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deletePhones

public void deletePhones(long companyId,
                         java.lang.String className,
                         long classPK)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPhone

public Phone getPhone(long phoneId)
               throws com.liferay.portal.SystemException,
                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getPhones

public java.util.List getPhones()
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPhones

public java.util.List getPhones(long companyId,
                                java.lang.String className,
                                long classPK)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updatePhone

public Phone updatePhone(long phoneId,
                         java.lang.String number,
                         java.lang.String extension,
                         int typeId,
                         boolean primary)
                  throws com.liferay.portal.SystemException,
                         com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException