Marco Alderighi
1 anno fa
18 ha cambiato i file con 1540 aggiunte e 1261 eliminazioni
File diff soppresso perché troppo grande
Load Diff
@ -0,0 +1,85 @@ |
|||||||
|
/** |
||||||
|
* 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 it.tref.liferay.portos.bo.service.persistence; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.dao.orm.DynamicQuery; |
||||||
|
import com.liferay.portal.kernel.exception.PortalException; |
||||||
|
import com.liferay.portal.kernel.exception.SystemException; |
||||||
|
import com.liferay.portal.kernel.lar.ExportImportHelperUtil; |
||||||
|
import com.liferay.portal.kernel.lar.ManifestSummary; |
||||||
|
import com.liferay.portal.kernel.lar.PortletDataContext; |
||||||
|
import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil; |
||||||
|
import com.liferay.portal.kernel.lar.StagedModelType; |
||||||
|
import com.liferay.portal.util.PortalUtil; |
||||||
|
|
||||||
|
import it.tref.liferay.portos.bo.model.PraticaAttenzionata; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public class PraticaAttenzionataExportActionableDynamicQuery |
||||||
|
extends PraticaAttenzionataActionableDynamicQuery { |
||||||
|
public PraticaAttenzionataExportActionableDynamicQuery( |
||||||
|
PortletDataContext portletDataContext) throws SystemException { |
||||||
|
_portletDataContext = portletDataContext; |
||||||
|
|
||||||
|
setCompanyId(_portletDataContext.getCompanyId()); |
||||||
|
|
||||||
|
setGroupId(_portletDataContext.getScopeGroupId()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public long performCount() throws PortalException, SystemException { |
||||||
|
ManifestSummary manifestSummary = _portletDataContext.getManifestSummary(); |
||||||
|
|
||||||
|
StagedModelType stagedModelType = getStagedModelType(); |
||||||
|
|
||||||
|
long modelAdditionCount = super.performCount(); |
||||||
|
|
||||||
|
manifestSummary.addModelAdditionCount(stagedModelType.toString(), |
||||||
|
modelAdditionCount); |
||||||
|
|
||||||
|
long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(_portletDataContext, |
||||||
|
stagedModelType); |
||||||
|
|
||||||
|
manifestSummary.addModelDeletionCount(stagedModelType.toString(), |
||||||
|
modelDeletionCount); |
||||||
|
|
||||||
|
return modelAdditionCount; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
protected void addCriteria(DynamicQuery dynamicQuery) { |
||||||
|
_portletDataContext.addDateRangeCriteria(dynamicQuery, "modifiedDate"); |
||||||
|
} |
||||||
|
|
||||||
|
protected StagedModelType getStagedModelType() { |
||||||
|
return new StagedModelType(PortalUtil.getClassNameId( |
||||||
|
PraticaAttenzionata.class.getName())); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
@SuppressWarnings("unused") |
||||||
|
protected void performAction(Object object) |
||||||
|
throws PortalException, SystemException { |
||||||
|
PraticaAttenzionata stagedModel = (PraticaAttenzionata)object; |
||||||
|
|
||||||
|
StagedModelDataHandlerUtil.exportStagedModel(_portletDataContext, |
||||||
|
stagedModel); |
||||||
|
} |
||||||
|
|
||||||
|
private PortletDataContext _portletDataContext; |
||||||
|
} |
File diff soppresso perché troppo grande
Load Diff
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File diff soppresso perché troppo grande
Load Diff
Caricamento…
Reference in new issue