本文整理汇总了Java中com.liferay.portal.kernel.lar.ManifestSummary类的典型用法代码示例。如果您正苦于以下问题:Java ManifestSummary类的具体用法?Java ManifestSummary怎么用?Java ManifestSummary使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ManifestSummary类属于com.liferay.portal.kernel.lar包,在下文中一共展示了ManifestSummary类的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}