当前位置: 首页>>代码示例>>Java>>正文


Java ManifestSummary.addModelAdditionCount方法代码示例

本文整理汇总了Java中com.liferay.portal.kernel.lar.ManifestSummary.addModelAdditionCount方法的典型用法代码示例。如果您正苦于以下问题:Java ManifestSummary.addModelAdditionCount方法的具体用法?Java ManifestSummary.addModelAdditionCount怎么用?Java ManifestSummary.addModelAdditionCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.liferay.portal.kernel.lar.ManifestSummary的用法示例。


在下文中一共展示了ManifestSummary.addModelAdditionCount方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: performCount

import com.liferay.portal.kernel.lar.ManifestSummary; //导入方法依赖的package包/类
@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;
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:20,代码来源:PaymentFileExportActionableDynamicQuery.java

示例2: performCount

import com.liferay.portal.kernel.lar.ManifestSummary; //导入方法依赖的package包/类
@Override
public long performCount() throws PortalException {
	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;
}
 
开发者ID:juliocamarero,项目名称:jukebox-portlet,代码行数:20,代码来源:ArtistExportActionableDynamicQuery.java

示例3: getExportActionableDynamicQuery

import com.liferay.portal.kernel.lar.ManifestSummary; //导入方法依赖的package包/类
@Override
public ExportActionableDynamicQuery getExportActionableDynamicQuery(
	final PortletDataContext portletDataContext) {
	final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
			@Override
			public long performCount() throws PortalException {
				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;
			}
		};

	initActionableDynamicQuery(exportActionableDynamicQuery);

	exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
			@Override
			public void addCriteria(DynamicQuery dynamicQuery) {
				portletDataContext.addDateRangeCriteria(dynamicQuery,
					"modifiedDate");

				StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(Artist.class.getName());

				Property workflowStatusProperty = PropertyFactoryUtil.forName(
						"status");

				dynamicQuery.add(workflowStatusProperty.in(
						stagedModelDataHandler.getExportableStatuses()));
			}
		});

	exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());

	exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());

	exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
			@Override
			public void performAction(Object object)
				throws PortalException {
				Artist stagedModel = (Artist)object;

				StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
					stagedModel);
			}
		});
	exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
			PortalUtil.getClassNameId(Artist.class.getName())));

	return exportActionableDynamicQuery;
}
 
开发者ID:juliocamarero,项目名称:jukebox-portlet,代码行数:63,代码来源:ArtistLocalServiceBaseImpl.java

示例4: getExportActionableDynamicQuery

import com.liferay.portal.kernel.lar.ManifestSummary; //导入方法依赖的package包/类
@Override
public ExportActionableDynamicQuery getExportActionableDynamicQuery(
	final PortletDataContext portletDataContext) {
	final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
			@Override
			public long performCount() throws PortalException {
				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;
			}
		};

	initActionableDynamicQuery(exportActionableDynamicQuery);

	exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
			@Override
			public void addCriteria(DynamicQuery dynamicQuery) {
				portletDataContext.addDateRangeCriteria(dynamicQuery,
					"modifiedDate");

				StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(Song.class.getName());

				Property workflowStatusProperty = PropertyFactoryUtil.forName(
						"status");

				dynamicQuery.add(workflowStatusProperty.in(
						stagedModelDataHandler.getExportableStatuses()));
			}
		});

	exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());

	exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());

	exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
			@Override
			public void performAction(Object object)
				throws PortalException {
				Song stagedModel = (Song)object;

				StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
					stagedModel);
			}
		});
	exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
			PortalUtil.getClassNameId(Song.class.getName())));

	return exportActionableDynamicQuery;
}
 
开发者ID:juliocamarero,项目名称:jukebox-portlet,代码行数:63,代码来源:SongLocalServiceBaseImpl.java

示例5: getExportActionableDynamicQuery

import com.liferay.portal.kernel.lar.ManifestSummary; //导入方法依赖的package包/类
@Override
public ExportActionableDynamicQuery getExportActionableDynamicQuery(
	final PortletDataContext portletDataContext) {
	final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
			@Override
			public long performCount() throws PortalException {
				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;
			}
		};

	initActionableDynamicQuery(exportActionableDynamicQuery);

	exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
			@Override
			public void addCriteria(DynamicQuery dynamicQuery) {
				portletDataContext.addDateRangeCriteria(dynamicQuery,
					"modifiedDate");

				StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(Album.class.getName());

				Property workflowStatusProperty = PropertyFactoryUtil.forName(
						"status");

				dynamicQuery.add(workflowStatusProperty.in(
						stagedModelDataHandler.getExportableStatuses()));
			}
		});

	exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());

	exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());

	exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
			@Override
			public void performAction(Object object)
				throws PortalException {
				Album stagedModel = (Album)object;

				StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
					stagedModel);
			}
		});
	exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
			PortalUtil.getClassNameId(Album.class.getName())));

	return exportActionableDynamicQuery;
}
 
开发者ID:juliocamarero,项目名称:jukebox-portlet,代码行数:63,代码来源:AlbumLocalServiceBaseImpl.java


注:本文中的com.liferay.portal.kernel.lar.ManifestSummary.addModelAdditionCount方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。