1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class ContactLocalServiceUtil {
40 public static com.liferay.portal.model.Contact addContact(
41 com.liferay.portal.model.Contact contact)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addContact(contact);
44 }
45
46 public static com.liferay.portal.model.Contact createContact(long contactId) {
47 return getService().createContact(contactId);
48 }
49
50 public static void deleteContact(long contactId)
51 throws com.liferay.portal.kernel.exception.PortalException,
52 com.liferay.portal.kernel.exception.SystemException {
53 getService().deleteContact(contactId);
54 }
55
56 public static void deleteContact(com.liferay.portal.model.Contact contact)
57 throws com.liferay.portal.kernel.exception.SystemException {
58 getService().deleteContact(contact);
59 }
60
61 public static java.util.List<Object> dynamicQuery(
62 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63 throws com.liferay.portal.kernel.exception.SystemException {
64 return getService().dynamicQuery(dynamicQuery);
65 }
66
67 public static java.util.List<Object> dynamicQuery(
68 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69 int end) throws com.liferay.portal.kernel.exception.SystemException {
70 return getService().dynamicQuery(dynamicQuery, start, end);
71 }
72
73 public static java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException {
78 return getService()
79 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
80 }
81
82 public static int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService().dynamicQueryCount(dynamicQuery);
86 }
87
88 public static com.liferay.portal.model.Contact getContact(long contactId)
89 throws com.liferay.portal.kernel.exception.PortalException,
90 com.liferay.portal.kernel.exception.SystemException {
91 return getService().getContact(contactId);
92 }
93
94 public static java.util.List<com.liferay.portal.model.Contact> getContacts(
95 int start, int end)
96 throws com.liferay.portal.kernel.exception.SystemException {
97 return getService().getContacts(start, end);
98 }
99
100 public static int getContactsCount()
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getService().getContactsCount();
103 }
104
105 public static com.liferay.portal.model.Contact updateContact(
106 com.liferay.portal.model.Contact contact)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().updateContact(contact);
109 }
110
111 public static com.liferay.portal.model.Contact updateContact(
112 com.liferay.portal.model.Contact contact, boolean merge)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateContact(contact, merge);
115 }
116
117 public static ContactLocalService getService() {
118 if (_service == null) {
119 _service = (ContactLocalService)PortalBeanLocatorUtil.locate(ContactLocalService.class.getName());
120 }
121
122 return _service;
123 }
124
125 public void setService(ContactLocalService service) {
126 _service = service;
127 }
128
129 private static ContactLocalService _service;
130 }