@@ -0,0 +1,1380 @@
+package org.opencps.dossiermgt.action.util;%0A%0Aimport org.opencps.dossiermgt.model.Dossier;%0Aimport org.opencps.dossiermgt.model.ProcessOption;%0Aimport org.opencps.dossiermgt.model.ServiceConfig;%0Aimport org.opencps.dossiermgt.service.DossierLocalServiceUtil;%0Aimport org.opencps.dossiermgt.service.ProcessOptionLocalServiceUtil;%0Aimport org.opencps.dossiermgt.service.ServiceConfigLocalServiceUtil;%0A%0Aimport com.liferay.portal.kernel.exception.PortalException;%0Aimport com.liferay.portal.kernel.util.GetterUtil;%0Aimport com.liferay.portal.kernel.util.Validator;%0A%0Apublic class DossierMgtUtils %7B%0A%09public static ProcessOption getProcessOption(String serviceInfoCode, String govAgencyCode, String dossierTemplateNo,%0A%09%09%09long groupId) throws PortalException %7B%0A%0A%09%09ServiceConfig config = ServiceConfigLocalServiceUtil.getBySICodeAndGAC(groupId, serviceInfoCode, govAgencyCode);%0A%0A%09%09return ProcessOptionLocalServiceUtil.getByDTPLNoAndServiceCF(groupId, dossierTemplateNo,%0A%09%09%09%09config.getServiceConfigId());%0A%09%7D%0A%0A%09protected Dossier getDossier(long groupId, String refId) throws PortalException %7B%0A%0A%09%09Dossier dossier = null;%0A%09%09%0A%09%09%0A%09%09dossier = DossierLocalServiceUtil.getByRef(groupId, refId);%0A%09%09%0A%09%09if (Validator.isNull(dossier)) %7B%0A%09%09%09long dossierId = GetterUtil.getLong(refId);%0A%09%09%09%0A%09%09%09if (dossierId != 0) %7B%0A%09%09%09%09dossier = DossierLocalServiceUtil.fetchDossier(dossierId);%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09return dossier;%0A%09%7D%0A%0A%7D%0A

Add DossierMgtUtils