com.liferay.portal.service
Class PhoneLocalServiceUtil
java.lang.Object
com.liferay.portal.service.PhoneLocalServiceUtil
public class PhoneLocalServiceUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
com.liferay.portal.service.PhoneLocalService
bean. The static methods of this class calls the same methods of the bean
instance. It's convenient to be able to just write one line to call a method
on a bean instead of writing a lookup call and a method call.
- Author:
- Brian Wing Shun Chan
- See Also:
PhoneLocalService
Method Summary |
static Phone |
addPhone(long userId,
java.lang.String className,
long classPK,
java.lang.String number,
java.lang.String extension,
int typeId,
boolean primary)
|
static Phone |
addPhone(Phone phone)
|
static Phone |
createPhone(long phoneId)
|
static void |
deletePhone(long phoneId)
|
static void |
deletePhone(Phone phone)
|
static void |
deletePhones(long companyId,
java.lang.String className,
long classPK)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static Phone |
getPhone(long phoneId)
|
static java.util.List<Phone> |
getPhones()
|
static java.util.List<Phone> |
getPhones(int start,
int end)
|
static java.util.List<Phone> |
getPhones(long companyId,
java.lang.String className,
long classPK)
|
static int |
getPhonesCount()
|
static PhoneLocalService |
getService()
|
void |
setService(PhoneLocalService service)
|
static Phone |
updatePhone(long phoneId,
java.lang.String number,
java.lang.String extension,
int typeId,
boolean primary)
|
static Phone |
updatePhone(Phone phone)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhoneLocalServiceUtil
public PhoneLocalServiceUtil()
addPhone
public static Phone addPhone(Phone phone)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createPhone
public static Phone createPhone(long phoneId)
deletePhone
public static void deletePhone(long phoneId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deletePhone
public static void deletePhone(Phone phone)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static 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
public static 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
public static Phone getPhone(long phoneId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getPhones
public static java.util.List<Phone> getPhones(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPhonesCount
public static int getPhonesCount()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updatePhone
public static Phone updatePhone(Phone phone)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addPhone
public static 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
public static void deletePhones(long companyId,
java.lang.String className,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPhones
public static java.util.List<Phone> getPhones()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPhones
public static java.util.List<Phone> getPhones(long companyId,
java.lang.String className,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updatePhone
public static 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
getService
public static PhoneLocalService getService()
setService
public void setService(PhoneLocalService service)