1
22
23 package com.liferay.portal.service;
24
25
26
53 public class OrgLaborLocalServiceUtil {
54 public static com.liferay.portal.model.OrgLabor addOrgLabor(
55 com.liferay.portal.model.OrgLabor orgLabor)
56 throws com.liferay.portal.SystemException {
57 OrgLaborLocalService orgLaborLocalService = OrgLaborLocalServiceFactory.getService();
58
59 return orgLaborLocalService.addOrgLabor(orgLabor);
60 }
61
62 public static void deleteOrgLabor(long orgLaborId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 OrgLaborLocalService orgLaborLocalService = OrgLaborLocalServiceFactory.getService();
66
67 orgLaborLocalService.deleteOrgLabor(orgLaborId);
68 }
69
70 public static void deleteOrgLabor(
71 com.liferay.portal.model.OrgLabor orgLabor)
72 throws com.liferay.portal.SystemException {
73 OrgLaborLocalService orgLaborLocalService = OrgLaborLocalServiceFactory.getService();
74
75 orgLaborLocalService.deleteOrgLabor(orgLabor);
76 }
77
78 public static java.util.List<Object> dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
80 throws com.liferay.portal.SystemException {
81 OrgLaborLocalService orgLaborLocalService = OrgLaborLocalServiceFactory.getService();
82
83 return orgLaborLocalService.dynamicQuery(dynamicQuery);
84 }
85
86 public static java.util.List<Object> dynamicQuery(
87 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
88 int end) throws com.liferay.portal.SystemException {
89 OrgLaborLocalService orgLaborLocalService = OrgLaborLocalServiceFactory.getService();
90
91 return orgLaborLocalService.dynamicQuery(dynamicQuery, start, end);
92 }
93
94 public static com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException {
97 OrgLaborLocalService orgLaborLocalService = OrgLaborLocalServiceFactory.getService();
98
99 return orgLaborLocalService.getOrgLabor(orgLaborId);
100 }
101
102 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
103 com.liferay.portal.model.OrgLabor orgLabor)
104 throws com.liferay.portal.SystemException {
105 OrgLaborLocalService orgLaborLocalService = OrgLaborLocalServiceFactory.getService();
106
107 return orgLaborLocalService.updateOrgLabor(orgLabor);
108 }
109
110 public static com.liferay.portal.model.OrgLabor addOrgLabor(
111 long organizationId, int typeId, int sunOpen, int sunClose,
112 int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
113 int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
114 int satOpen, int satClose)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException {
117 OrgLaborLocalService orgLaborLocalService = OrgLaborLocalServiceFactory.getService();
118
119 return orgLaborLocalService.addOrgLabor(organizationId, typeId,
120 sunOpen, sunClose, monOpen, monClose, tueOpen, tueClose, wedOpen,
121 wedClose, thuOpen, thuClose, friOpen, friClose, satOpen, satClose);
122 }
123
124 public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
125 long organizationId) throws com.liferay.portal.SystemException {
126 OrgLaborLocalService orgLaborLocalService = OrgLaborLocalServiceFactory.getService();
127
128 return orgLaborLocalService.getOrgLabors(organizationId);
129 }
130
131 public static com.liferay.portal.model.OrgLabor updateOrgLabor(
132 long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
133 int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
134 int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
135 int satClose)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException {
138 OrgLaborLocalService orgLaborLocalService = OrgLaborLocalServiceFactory.getService();
139
140 return orgLaborLocalService.updateOrgLabor(orgLaborId, typeId, sunOpen,
141 sunClose, monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose,
142 thuOpen, thuClose, friOpen, friClose, satOpen, satClose);
143 }
144 }