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:
PhoneLocalServiceUtil

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 phone)
           
 void deletePhone(long phoneId)
           
 void deletePhone(Phone phone)
           
 void deletePhones(long companyId, java.lang.String className, long classPK)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 Phone getPhone(long phoneId)
           
 java.util.List<Phone> getPhones()
           
 java.util.List<Phone> getPhones(int start, int end)
           
 java.util.List<Phone> getPhones(long companyId, java.lang.String className, long classPK)
           
 int getPhonesCount()
           
 Phone updatePhone(long phoneId, java.lang.String number, java.lang.String extension, int typeId, boolean primary)
           
 Phone updatePhone(Phone phone)
           
 

Method Detail

addPhone

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

deletePhone

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

deletePhone

void deletePhone(Phone phone)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPhone

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

getPhones

java.util.List<Phone> getPhones(int start,
                                int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPhonesCount

int getPhonesCount()
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updatePhone

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

addPhone

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.PortalException,
                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePhones

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

getPhones

java.util.List<Phone> getPhones()
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPhones

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

updatePhone

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