Liferay 7.0-ce-b4

com.liferay.portal.service.impl
Class PhoneLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.PhoneLocalServiceBaseImpl
          extended by com.liferay.portal.service.impl.PhoneLocalServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, PhoneLocalService

public class PhoneLocalServiceImpl
extends PhoneLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portal.service.base.PhoneLocalServiceBaseImpl
classNameLocalService, classNamePersistence, counterLocalService, listTypeLocalService, listTypePersistence, persistedModelLocalServiceRegistry, phoneLocalService, phonePersistence, userFinder, userLocalService, userPersistence
 
Constructor Summary
PhoneLocalServiceImpl()
           
 
Method Summary
 Phone addPhone(long userId, String className, long classPK, String number, String extension, long typeId, boolean primary)
          Deprecated. As of 6.2.0, replaced by #addPhone(long, String, long, String, String, int, boolean, ServiceContext)
 Phone addPhone(long userId, String className, long classPK, String number, String extension, long typeId, boolean primary, ServiceContext serviceContext)
           
 Phone deletePhone(long phoneId)
          Deletes the phone with the primary key from the database.
 Phone deletePhone(Phone phone)
          Deletes the phone from the database.
 void deletePhones(long companyId, String className, long classPK)
           
 List<Phone> getPhones()
           
 List<Phone> getPhones(long companyId, String className, long classPK)
           
 Phone updatePhone(long phoneId, String number, String extension, long 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, String number, String extension, long typeId, boolean primary)
           
 
Methods inherited from class com.liferay.portal.service.base.PhoneLocalServiceBaseImpl
addPhone, afterPropertiesSet, createPhone, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchPhone, fetchPhoneByUuidAndCompanyId, getActionableDynamicQuery, getClassNameLocalService, getClassNamePersistence, getCounterLocalService, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getListTypeLocalService, getListTypePersistence, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getPhone, getPhoneByUuidAndCompanyId, getPhoneLocalService, getPhonePersistence, getPhones, getPhonesCount, getUserFinder, getUserLocalService, getUserPersistence, initActionableDynamicQuery, runSQL, setClassNameLocalService, setClassNamePersistence, setCounterLocalService, setListTypeLocalService, setListTypePersistence, setPhoneLocalService, setPhonePersistence, setUserFinder, setUserLocalService, setUserPersistence, updatePhone
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
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

@Deprecated
public Phone addPhone(long userId,
                                 String className,
                                 long classPK,
                                 String number,
                                 String extension,
                                 long typeId,
                                 boolean primary)
               throws PortalException
Deprecated. As of 6.2.0, replaced by #addPhone(long, String, long, String, String, int, boolean, ServiceContext)

Throws:
PortalException

addPhone

public Phone addPhone(long userId,
                      String className,
                      long classPK,
                      String number,
                      String extension,
                      long typeId,
                      boolean primary,
                      ServiceContext serviceContext)
               throws PortalException
Throws:
PortalException

deletePhone

public Phone deletePhone(long phoneId)
                  throws PortalException
Description copied from class: PhoneLocalServiceBaseImpl
Deletes the phone with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deletePhone in interface PhoneLocalService
Overrides:
deletePhone in class PhoneLocalServiceBaseImpl
Parameters:
phoneId - the primary key of the phone
Returns:
the phone that was removed
Throws:
PortalException - if a phone with the primary key could not be found

deletePhone

@SystemEvent(action=1,
             type=1)
public Phone deletePhone(Phone phone)
Description copied from class: PhoneLocalServiceBaseImpl
Deletes the phone from the database. Also notifies the appropriate model listeners.

Specified by:
deletePhone in interface PhoneLocalService
Overrides:
deletePhone in class PhoneLocalServiceBaseImpl
Parameters:
phone - the phone
Returns:
the phone that was removed

deletePhones

public void deletePhones(long companyId,
                         String className,
                         long classPK)

getPhones

public List<Phone> getPhones()

getPhones

public List<Phone> getPhones(long companyId,
                             String className,
                             long classPK)

updatePhone

public Phone updatePhone(long phoneId,
                         String number,
                         String extension,
                         long typeId,
                         boolean primary)
                  throws PortalException
Throws:
PortalException

validate

protected void validate(long phoneId,
                        long companyId,
                        long classNameId,
                        long classPK,
                        boolean primary)

validate

protected void validate(long phoneId,
                        long companyId,
                        long classNameId,
                        long classPK,
                        String number,
                        String extension,
                        long typeId,
                        boolean primary)
                 throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4