1
22
23 package com.liferay.portal.service;
24
25
26
46 public class PhoneLocalServiceUtil {
47 public static com.liferay.portal.model.Phone addPhone(
48 com.liferay.portal.model.Phone phone)
49 throws com.liferay.portal.SystemException {
50 return getService().addPhone(phone);
51 }
52
53 public static com.liferay.portal.model.Phone createPhone(long phoneId) {
54 return getService().createPhone(phoneId);
55 }
56
57 public static void deletePhone(long phoneId)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException {
60 getService().deletePhone(phoneId);
61 }
62
63 public static void deletePhone(com.liferay.portal.model.Phone phone)
64 throws com.liferay.portal.SystemException {
65 getService().deletePhone(phone);
66 }
67
68 public static java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException {
71 return getService().dynamicQuery(dynamicQuery);
72 }
73
74 public static java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException {
77 return getService().dynamicQuery(dynamicQuery, start, end);
78 }
79
80 public static com.liferay.portal.model.Phone getPhone(long phoneId)
81 throws com.liferay.portal.PortalException,
82 com.liferay.portal.SystemException {
83 return getService().getPhone(phoneId);
84 }
85
86 public static java.util.List<com.liferay.portal.model.Phone> getPhones(
87 int start, int end) throws com.liferay.portal.SystemException {
88 return getService().getPhones(start, end);
89 }
90
91 public static int getPhonesCount()
92 throws com.liferay.portal.SystemException {
93 return getService().getPhonesCount();
94 }
95
96 public static com.liferay.portal.model.Phone updatePhone(
97 com.liferay.portal.model.Phone phone)
98 throws com.liferay.portal.SystemException {
99 return getService().updatePhone(phone);
100 }
101
102 public static com.liferay.portal.model.Phone updatePhone(
103 com.liferay.portal.model.Phone phone, boolean merge)
104 throws com.liferay.portal.SystemException {
105 return getService().updatePhone(phone, merge);
106 }
107
108 public static com.liferay.portal.model.Phone addPhone(long userId,
109 java.lang.String className, long classPK, java.lang.String number,
110 java.lang.String extension, int typeId, boolean primary)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException {
113 return getService()
114 .addPhone(userId, className, classPK, number, extension,
115 typeId, primary);
116 }
117
118 public static void deletePhones(long companyId, java.lang.String className,
119 long classPK) throws com.liferay.portal.SystemException {
120 getService().deletePhones(companyId, className, classPK);
121 }
122
123 public static java.util.List<com.liferay.portal.model.Phone> getPhones()
124 throws com.liferay.portal.SystemException {
125 return getService().getPhones();
126 }
127
128 public static java.util.List<com.liferay.portal.model.Phone> getPhones(
129 long companyId, java.lang.String className, long classPK)
130 throws com.liferay.portal.SystemException {
131 return getService().getPhones(companyId, className, classPK);
132 }
133
134 public static com.liferay.portal.model.Phone updatePhone(long phoneId,
135 java.lang.String number, java.lang.String extension, int typeId,
136 boolean primary)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 return getService()
140 .updatePhone(phoneId, number, extension, typeId, primary);
141 }
142
143 public static PhoneLocalService getService() {
144 if (_service == null) {
145 throw new RuntimeException("PhoneLocalService is not set");
146 }
147
148 return _service;
149 }
150
151 public void setService(PhoneLocalService service) {
152 _service = service;
153 }
154
155 private static PhoneLocalService _service;
156 }