/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package org.oep.processmgt.service;
import com.liferay.portal.service.ServiceWrapper;
/**
* Provides a wrapper for {@link ProcessOrderLocalService}.
*
* @author trungdk
* @see ProcessOrderLocalService
* @generated
*/
public class ProcessOrderLocalServiceWrapper implements ProcessOrderLocalService,
ServiceWrapper<ProcessOrderLocalService> {
public ProcessOrderLocalServiceWrapper(
ProcessOrderLocalService processOrderLocalService) {
_processOrderLocalService = processOrderLocalService;
}
/**
* Adds the process order to the database. Also notifies the appropriate model listeners.
*
* @param processOrder the process order
* @return the process order that was added
* @throws SystemException if a system exception occurred
*/
@Override
public org.oep.processmgt.model.ProcessOrder addProcessOrder(
org.oep.processmgt.model.ProcessOrder processOrder)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.addProcessOrder(processOrder);
}
/**
* Creates a new process order with the primary key. Does not add the process order to the database.
*
* @param processOrderId the primary key for the new process order
* @return the new process order
*/
@Override
public org.oep.processmgt.model.ProcessOrder createProcessOrder(
long processOrderId) {
return _processOrderLocalService.createProcessOrder(processOrderId);
}
/**
* Deletes the process order with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param processOrderId the primary key of the process order
* @return the process order that was removed
* @throws PortalException if a process order with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public org.oep.processmgt.model.ProcessOrder deleteProcessOrder(
long processOrderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.deleteProcessOrder(processOrderId);
}
/**
* Deletes the process order from the database. Also notifies the appropriate model listeners.
*
* @param processOrder the process order
* @return the process order that was removed
* @throws SystemException if a system exception occurred
*/
@Override
public org.oep.processmgt.model.ProcessOrder deleteProcessOrder(
org.oep.processmgt.model.ProcessOrder processOrder)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.deleteProcessOrder(processOrder);
}
@Override
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
return _processOrderLocalService.dynamicQuery();
}
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.dynamicQuery(dynamicQuery);
}
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.oep.processmgt.model.impl.ProcessOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.dynamicQuery(dynamicQuery, start, end);
}
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.oep.processmgt.model.impl.ProcessOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching rows
* @throws SystemException if a system exception occurred
*/
@Override
@SuppressWarnings("rawtypes")
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.dynamicQuery(dynamicQuery, start, end,
orderByComparator);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.dynamicQueryCount(dynamicQuery);
}
/**
* Returns the number of rows that match the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows that match the dynamic query
* @throws SystemException if a system exception occurred
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.dynamicQueryCount(dynamicQuery,
projection);
}
@Override
public org.oep.processmgt.model.ProcessOrder fetchProcessOrder(
long processOrderId)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.fetchProcessOrder(processOrderId);
}
/**
* Returns the process order with the matching UUID and company.
*
* @param uuid the process order's UUID
* @param companyId the primary key of the company
* @return the matching process order, or <code>null</code> if a matching process order could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public org.oep.processmgt.model.ProcessOrder fetchProcessOrderByUuidAndCompanyId(
java.lang.String uuid, long companyId)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.fetchProcessOrderByUuidAndCompanyId(uuid,
companyId);
}
/**
* Returns the process order matching the UUID and group.
*
* @param uuid the process order's UUID
* @param groupId the primary key of the group
* @return the matching process order, or <code>null</code> if a matching process order could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public org.oep.processmgt.model.ProcessOrder fetchProcessOrderByUuidAndGroupId(
java.lang.String uuid, long groupId)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.fetchProcessOrderByUuidAndGroupId(uuid,
groupId);
}
/**
* Returns the process order with the primary key.
*
* @param processOrderId the primary key of the process order
* @return the process order
* @throws PortalException if a process order with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public org.oep.processmgt.model.ProcessOrder getProcessOrder(
long processOrderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.getProcessOrder(processOrderId);
}
@Override
public com.liferay.portal.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.getPersistedModel(primaryKeyObj);
}
/**
* Returns the process order with the matching UUID and company.
*
* @param uuid the process order's UUID
* @param companyId the primary key of the company
* @return the matching process order
* @throws PortalException if a matching process order could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public org.oep.processmgt.model.ProcessOrder getProcessOrderByUuidAndCompanyId(
java.lang.String uuid, long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.getProcessOrderByUuidAndCompanyId(uuid,
companyId);
}
/**
* Returns the process order matching the UUID and group.
*
* @param uuid the process order's UUID
* @param groupId the primary key of the group
* @return the matching process order
* @throws PortalException if a matching process order could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public org.oep.processmgt.model.ProcessOrder getProcessOrderByUuidAndGroupId(
java.lang.String uuid, long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.getProcessOrderByUuidAndGroupId(uuid,
groupId);
}
/**
* Returns a range of all the process orders.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.oep.processmgt.model.impl.ProcessOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of process orders
* @param end the upper bound of the range of process orders (not inclusive)
* @return the range of process orders
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List<org.oep.processmgt.model.ProcessOrder> getProcessOrders(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.getProcessOrders(start, end);
}
/**
* Returns the number of process orders.
*
* @return the number of process orders
* @throws SystemException if a system exception occurred
*/
@Override
public int getProcessOrdersCount()
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.getProcessOrdersCount();
}
/**
* Updates the process order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param processOrder the process order
* @return the process order that was updated
* @throws SystemException if a system exception occurred
*/
@Override
public org.oep.processmgt.model.ProcessOrder updateProcessOrder(
org.oep.processmgt.model.ProcessOrder processOrder)
throws com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.updateProcessOrder(processOrder);
}
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
@Override
public java.lang.String getBeanIdentifier() {
return _processOrderLocalService.getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
@Override
public void setBeanIdentifier(java.lang.String beanIdentifier) {
_processOrderLocalService.setBeanIdentifier(beanIdentifier);
}
@Override
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable {
return _processOrderLocalService.invokeMethod(name, parameterTypes,
arguments);
}
/**
* Thêm phiếu xỠlý hồ sơ mới
*
* Version: OEP 2.0
*
* History:
* DATE AUTHOR DESCRIPTION
* -------------------------------------------------
* 21-September-2015 trungdk Tạo mới
*
* @param organizationId tổ chức thực hiện xỠlý hồ sơ
* @param parentProcessOrderId có phải làphiếu xỠlý cha
* @param dossierId hồ sơ cần xỠlý
* @param dossierProcessId nằm trong quy trình xỠlý hồ sơ nào
* @param dossierStepId đang xỠlý tại bước nào (0 làđã kết thúc xỠlý)
* @param orderStatus trạng thái hiện tại của phiếu xỠlý
* @param orderResume tóm tắt nội dung cần xỠlý
* @param stepDate th�i điểm bắt đầu thực hiện xỠlý hồ sơ
* @param stepNote ghi lại ghi chú của ngư�i xỠlý cuối cùng
* @param assignToUserId ngư�i chịu trách nhiệm xỠlý
* @param currentCondition đi�u kiện hiện tại của hồ sơ để xét chuyển dịch
* @param lastStepTransitionId chuyển dịch cuối cùng của phiếu xỠlý
* @param stopRollback c� đánh dấu tạm dừng việc rollback
* @param ebPartnershipId trao đổi hồ sơ hiện tại với hệ thống bên ngoài
* @return: thông tin xỠlý hồ sơ mới được tạo
*/
@Override
public org.oep.processmgt.model.ProcessOrder addProcessOrder(
long organizationId, long parentProcessOrderId, long dossierId,
long dossierProcessId, long dossierStepId,
java.lang.String orderStatus, java.lang.String orderResume,
java.util.Date stepDate, java.lang.String stepNote,
long assignToUserId, java.lang.String currentCondition,
long lastStepTransitionId, int stopRollback,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.addProcessOrder(organizationId,
parentProcessOrderId, dossierId, dossierProcessId, dossierStepId,
orderStatus, orderResume, stepDate, stepNote, assignToUserId,
currentCondition, lastStepTransitionId, stopRollback, serviceContext);
}
/**
* CáºÂp nháºÂt phiếu xá» lý hồ sÆ¡ má»›i
*
* Version: OEP 2.0
*
* History:
* DATE AUTHOR DESCRIPTION
* -------------------------------------------------
* 21-September-2015 trungdk Tạo mới
*
* @param organizationId tổ chức thực hiện xỠlý hồ sơ
* @param parentProcessOrderId có phải làphiếu xỠlý cha
* @param dossierId hồ sơ cần xỠlý
* @param dossierProcessId nằm trong quy trình xỠlý hồ sơ nào
* @param dossierStepId đang xỠlý tại bước nào (0 làđã kết thúc xỠlý)
* @param orderStatus trạng thái hiện tại của phiếu xỠlý
* @param orderResume tóm tắt nội dung cần xỠlý
* @param stepDate th�i điểm bắt đầu thực hiện xỠlý hồ sơ
* @param stepNote ghi lại ghi chú của ngư�i xỠlý cuối cùng
* @param assignToUserId ngư�i chịu trách nhiệm xỠlý
* @param currentCondition đi�u kiện hiện tại của hồ sơ để xét chuyển dịch
* @param lastStepTransitionId chuyển dịch cuối cùng của phiếu xỠlý
* @param stopRollback c� đánh dấu tạm dừng việc rollback
* @param ebPartnershipId trao đổi hồ sơ hiện tại với hệ thống bên ngoài
* @return: thông tin xá» lý hồ sÆ¡ má»›i được cáºÂp nháºÂt
*/
@Override
public org.oep.processmgt.model.ProcessOrder updateProcessOrder(long id,
long organizationId, long parentProcessOrderId, long dossierId,
long dossierProcessId, long dossierStepId,
java.lang.String orderStatus, java.lang.String orderResume,
java.util.Date stepDate, java.lang.String stepNote,
long assignToUserId, java.lang.String currentCondition,
long lastStepTransitionId, int stopRollback,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.updateProcessOrder(id, organizationId,
parentProcessOrderId, dossierId, dossierProcessId, dossierStepId,
orderStatus, orderResume, stepDate, stepNote, assignToUserId,
currentCondition, lastStepTransitionId, stopRollback, serviceContext);
}
@Override
public void updateProcessOrderResources(
org.oep.processmgt.model.ProcessOrder processOrder,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_processOrderLocalService.updateProcessOrderResources(processOrder,
groupPermissions, guestPermissions, serviceContext);
}
@Override
public void removeProcessOrder(
org.oep.processmgt.model.ProcessOrder processOrder)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_processOrderLocalService.removeProcessOrder(processOrder);
}
@Override
public void removeProcessOrder(long id)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_processOrderLocalService.removeProcessOrder(id);
}
@Override
public void addProcessOrderResources(
org.oep.processmgt.model.ProcessOrder processOrder,
boolean addGroupPermission, boolean addGuestPermission,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_processOrderLocalService.addProcessOrderResources(processOrder,
addGroupPermission, addGuestPermission, serviceContext);
}
@Override
public void addProcessOrderResources(
org.oep.processmgt.model.ProcessOrder processOrder,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_processOrderLocalService.addProcessOrderResources(processOrder,
groupPermissions, guestPermissions, serviceContext);
}
@Override
public void addProcessOrderResources(long id,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_processOrderLocalService.addProcessOrderResources(id,
groupPermissions, guestPermissions, serviceContext);
}
@Override
public java.util.List<org.oep.processmgt.model.ProcessOrder> findAllCanAutoCondition(
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.findAllCanAutoCondition(serviceContext);
}
@Override
public long countByWaitingProcessed(long userId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.countByWaitingProcessed(userId,
serviceContext);
}
@Override
public java.util.List<org.oep.processmgt.model.ProcessOrder> findByWaitingProcessed(
long userId, int startIndex, int endIndex,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.findByWaitingProcessed(userId,
startIndex, endIndex, serviceContext);
}
@Override
public java.util.List<org.oep.processmgt.model.ProcessOrder> findAllCanAutoCondition(
long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _processOrderLocalService.findAllCanAutoCondition(companyId);
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
*/
public ProcessOrderLocalService getWrappedProcessOrderLocalService() {
return _processOrderLocalService;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
*/
public void setWrappedProcessOrderLocalService(
ProcessOrderLocalService processOrderLocalService) {
_processOrderLocalService = processOrderLocalService;
}
@Override
public ProcessOrderLocalService getWrappedService() {
return _processOrderLocalService;
}
@Override
public void setWrappedService(
ProcessOrderLocalService processOrderLocalService) {
_processOrderLocalService = processOrderLocalService;
}
private ProcessOrderLocalService _processOrderLocalService;
}