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


Java ResourceDescriptor.isMainReport方法代码示例

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


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

示例1: setChild

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; //导入方法依赖的package包/类
public static void setChild(ResourceDescriptor rd, ResourceDescriptor child) {
	List<ResourceDescriptor> children = rd.getChildren();
	for (int i = 0; i < children.size(); i++) {
		ResourceDescriptor r = children.get(i);
		if (r.isMainReport() && child.isMainReport()) {
			child.setName(r.getName());
			child.setLabel(r.getLabel());
			child.setDescription(r.getDescription());
			child.setUriString(r.getUriString());
			children.set(i, child);
			return;
		}
		if ((child.getUriString() == null && r.getUriString() == null && child.getWsType().equals(r.getWsType())) || (r.getUriString() != null && r.getUriString().equals(child.getUriString()))) {
			if (r.isMainReport())
				child.setMainReport(true);
			children.set(i, child);
			return;
		}
	}
	children.add(child);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:22,代码来源:PublishUtil.java

示例2: getMainReport

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; //导入方法依赖的package包/类
public static ResourceDescriptor getMainReport(ResourceDescriptor ru) {
	for (Object obj : ru.getChildren()) {
		ResourceDescriptor r = (ResourceDescriptor) obj;
		if (r.getWsType().equals(ResourceDescriptor.TYPE_JRXML) && r.isMainReport()) {
			return r;
		}
	}
	return null;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:10,代码来源:SelectorJrxml.java

示例3: getResourceDescriptor

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; //导入方法依赖的package包/类
protected ResourceDescriptor getResourceDescriptor(ResourceDescriptor ru) {
	for (Object obj : ru.getChildren()) {
		ResourceDescriptor r = (ResourceDescriptor) obj;
		if (r.getWsType().equals(ResourceDescriptor.TYPE_JRXML) && r.isMainReport())
			return r;
	}
	return null;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:9,代码来源:SelectorJrxml2.java

示例4: getReportUnit

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; //导入方法依赖的package包/类
public static void getReportUnit(ARestV2Connection rc, AbstractClientReportUnit<?> cr, ResourceDescriptor rd) throws ParseException {
	cr.setAlwaysPromptControls(Misc.nvl(rd.getResourcePropertyValueAsBoolean(ResourceDescriptor.PROP_RU_ALWAYS_PROPMT_CONTROLS), Boolean.FALSE));
	cr.setInputControlRenderingView(rd.getResourcePropertyValue(ResourceDescriptor.PROP_RU_INPUTCONTROL_RENDERING_VIEW));
	cr.setReportRenderingView(rd.getResourcePropertyValue(ResourceDescriptor.PROP_RU_REPORT_RENDERING_VIEW));
	int rurv = Misc.nvl(rd.getResourcePropertyValueAsInteger(ResourceDescriptor.PROP_RU_CONTROLS_LAYOUT), (int) ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN);
	switch (rurv) {
	case (int) ResourceDescriptor.RU_CONTROLS_LAYOUT_POPUP_SCREEN:
		cr.setControlsLayout(ControlsLayoutType.popupScreen);
		break;
	case (int) ResourceDescriptor.RU_CONTROLS_LAYOUT_SEPARATE_PAGE:
		cr.setControlsLayout(ControlsLayoutType.separatePage);
		break;
	case (int) ResourceDescriptor.RU_CONTROLS_LAYOUT_TOP_OF_PAGE:
		cr.setControlsLayout(ControlsLayoutType.topOfPage);
		break;
	case 4:
		cr.setControlsLayout(ControlsLayoutType.inPage);
		break;
	}
	List<ResourceDescriptor> children = rd.getChildren();
	List<ClientReferenceableInputControl> ics = cr.getInputControls();
	if (ics == null) {
		ics = new ArrayList<ClientReferenceableInputControl>();
		cr.setInputControls(ics);
	}
	Map<String, ClientReferenceableFile> icf = cr.getFiles();
	if (icf == null) {
		icf = new HashMap<String, ClientReferenceableFile>();
		cr.setFiles(icf);
	}
	for (ResourceDescriptor r : children) {
		if (r == null)
			continue;
		if (SelectorDatasource.isDatasource(r))
			cr.setDataSource((ClientReferenceableDataSource) getResourceContainer(rc, r));
		else {
			String t = r.getWsType();
			if (t.equals(ResourceDescriptor.TYPE_QUERY))
				cr.setQuery((ClientReferenceableQuery) getResourceContainer(rc, r));
			else if ((t.equals(ResourceDescriptor.TYPE_JRXML) || t.equals(ResourceDescriptor.TYPE_REFERENCE)) && r.isMainReport()) {
				// r.setName("main_jrxml");
				// r.setLabel("Main Jrxml");
				// r.setUriString(rd.getUriString() + "_files/" + r.getName());
				cr.setJrxml((ClientReferenceableFile) getResourceContainer(rc, r));
			} else if (t.equals(ResourceDescriptor.TYPE_INPUT_CONTROL))
				ics.add((ClientReferenceableInputControl) getResourceContainer(rc, r));
			else if (ResourceFactory.isFileResourceType(r) || t.equals(ResourceDescriptor.TYPE_REFERENCE)) {
				icf.put(r.getName(), (ClientReferenceableFile) getResourceContainer(rc, r));
			}
		}
	}

}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:54,代码来源:Soap2Rest.java


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