com.liferay.portal.service.impl
Class PhoneServiceImpl

java.lang.Object
  extended bycom.liferay.portal.service.impl.PrincipalBean
      extended bycom.liferay.portal.service.impl.PhoneServiceImpl
All Implemented Interfaces:
com.liferay.portal.service.PhoneService

public class PhoneServiceImpl
extends PrincipalBean
implements com.liferay.portal.service.PhoneService

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portal.service.impl.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
PhoneServiceImpl()
           
 
Method Summary
 com.liferay.portal.model.Phone addPhone(java.lang.String className, long classPK, java.lang.String number, java.lang.String extension, int typeId, boolean primary)
           
 void deletePhone(long phoneId)
           
 com.liferay.portal.model.Phone getPhone(long phoneId)
           
 java.util.List getPhones(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)
           
 
Methods inherited from class com.liferay.portal.service.impl.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneServiceImpl

public PhoneServiceImpl()
Method Detail

addPhone

public com.liferay.portal.model.Phone addPhone(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
Specified by:
addPhone in interface com.liferay.portal.service.PhoneService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePhone

public void deletePhone(long phoneId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Specified by:
deletePhone in interface com.liferay.portal.service.PhoneService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPhone

public com.liferay.portal.model.Phone getPhone(long phoneId)
                                        throws com.liferay.portal.PortalException,
                                               com.liferay.portal.SystemException
Specified by:
getPhone in interface com.liferay.portal.service.PhoneService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPhones

public java.util.List getPhones(java.lang.String className,
                                long classPK)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Specified by:
getPhones in interface com.liferay.portal.service.PhoneService
Throws:
com.liferay.portal.PortalException
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
Specified by:
updatePhone in interface com.liferay.portal.service.PhoneService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException