com.liferay.portal.service.impl
Class PhoneLocalServiceImpl

java.lang.Object
  extended bycom.liferay.portal.service.base.PhoneLocalServiceBaseImpl
      extended bycom.liferay.portal.service.impl.PhoneLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.service.PhoneLocalService

public class PhoneLocalServiceImpl
extends PhoneLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
PhoneLocalServiceImpl()
           
 
Method Summary
 com.liferay.portal.model.Phone addPhone(long userId, java.lang.String className, long classPK, java.lang.String number, java.lang.String extension, int typeId, boolean primary)
           
 void deletePhone(long phoneId)
           
 void deletePhones(long companyId, java.lang.String className, long classPK)
           
 com.liferay.portal.model.Phone getPhone(long phoneId)
           
 java.util.List getPhones()
           
 java.util.List getPhones(long companyId, java.lang.String className, long classPK)
           
 com.liferay.portal.model.Phone updatePhone(long phoneId, java.lang.String number, java.lang.String extension, int typeId, boolean primary)
           
protected  void validate(long phoneId, long companyId, long classNameId, long classPK, boolean primary)
           
protected  void validate(long phoneId, long companyId, long classNameId, long classPK, java.lang.String number, int typeId, boolean primary)
           
 
Methods inherited from class com.liferay.portal.service.base.PhoneLocalServiceBaseImpl
addPhone, dynamicQuery, dynamicQuery, updatePhone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneLocalServiceImpl

public PhoneLocalServiceImpl()
Method Detail

addPhone

public com.liferay.portal.model.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

deletePhone

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

deletePhones

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

getPhone

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

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 com.liferay.portal.model.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

validate

protected void validate(long phoneId,
                        long companyId,
                        long classNameId,
                        long classPK,
                        java.lang.String number,
                        int typeId,
                        boolean primary)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(long phoneId,
                        long companyId,
                        long classNameId,
                        long classPK,
                        boolean primary)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException