當前位置: 首頁>>代碼示例>>Java>>正文


Java ResourceProperty類代碼示例

本文整理匯總了Java中com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty的典型用法代碼示例。如果您正苦於以下問題:Java ResourceProperty類的具體用法?Java ResourceProperty怎麽用?Java ResourceProperty使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ResourceProperty類屬於com.jaspersoft.jasperserver.api.metadata.xml.domain.impl包,在下文中一共展示了ResourceProperty類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: bindAWS

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
private void bindAWS() {
	List<ResourceProperty> props = res.getValue().getProperties();

	ResourceProperty resprop = ResourceDescriptorUtil.getProperty(MRDatasourceAWS.PROP_DATASOURCE_AWS_ACCESS_KEY, props);
	if (resprop != null)
		bAccessKey = bindingContext.bindValue(SWTObservables.observeText(awsAccessKey, SWT.Modify), PojoObservables.observeValue(resprop, "value"));

	resprop = ResourceDescriptorUtil.getProperty(MRDatasourceAWS.PROP_DATASOURCE_AWS_SECRET_KEY, props);
	if (resprop != null)
		bSecretKey = bindingContext.bindValue(SWTObservables.observeText(awsSecretKey, SWT.Modify), PojoObservables.observeValue(resprop, "value"));

	resprop = ResourceDescriptorUtil.getProperty(MRDatasourceAWS.PROP_DATASOURCE_AWS_ROLE_ARN, props);

	if (resprop != null)
		bArn = bindingContext.bindValue(SWTObservables.observeText(awsArn, SWT.Modify), PojoObservables.observeValue(resprop, "value"));
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:17,代碼來源:DatasourceAWSPageContent.java

示例2: createContent

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
@Override
public Control createContent(Composite parent) {
	Composite cmp = new Composite(parent, SWT.NONE);
	cmp.setLayout(new GridLayout(2, false));

	UIUtil.createLabel(cmp, "Catalog");

	Text tCatalog = new Text(cmp, SWT.BORDER);
	tCatalog.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

	List<ResourceProperty> props = res.getValue().getProperties();
	ResourceProperty resprop = ResourceDescriptorUtil.getProperty(ResourceDescriptor.PROP_XMLA_CATALOG, props);

	bindingContext.bindValue(SWTObservables.observeText(tCatalog, SWT.Modify), PojoObservables.observeValue(resprop, "value"));

	Control c = super.createContent(cmp);
	GridData gd = new GridData(GridData.FILL_BOTH);
	gd.horizontalSpan = 2;
	c.setLayoutData(gd);
	return cmp;
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:22,代碼來源:MondrianXMLADefinitionContent.java

示例3: getDefaults

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
public void getDefaults() {
	defaults = new HashMap<String, Object>();
	if (rdrepunit.getWsType().equals("ReportOptionsResource")) {
		ResourceProperty rp = rdrepunit.getResourceProperty("PROP_VALUES");

		List<ResourceProperty> list = rp.getProperties();
		if (list != null)
			for (ResourceProperty li : list) {
				if (!li.getProperties().isEmpty()) {
					List<String> listVal = new ArrayList<String>();
					for (Object sli : li.getProperties())
						listVal.add(((ResourceProperty) sli).getValue());
					defaults.put(li.getName(), listVal);
				} else
					defaults.put(li.getName(), Misc.nvl(li.getValue()));
			}
	}
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:19,代碼來源:InputControlsManager.java

示例4: cloneResourceDescriptor

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
/**
 * Create a clone of the resource descriptor. The replication is recursive.
 * @param rd The ResourceDescriptor to clone
 * @return the new clone
 */
public static ResourceDescriptor cloneResourceDescriptor(ResourceDescriptor rd)
{
    ResourceDescriptor newRd = new ResourceDescriptor();
    newRd.setName( rd.getName());
    newRd.setWsType( rd.getWsType() );
    newRd.setLabel( rd.getLabel());
    newRd.setDescription( rd.getDescription());
    newRd.setUriString( rd.getUriString());
    newRd.setIsNew( rd.getIsNew());
    
    for (int i=0; i< rd.getChildren().size(); ++i)
    {
        ResourceDescriptor tmpRd = (ResourceDescriptor)rd.getChildren().get(i);
        newRd.getChildren().add( cloneResourceDescriptor( tmpRd ) );
    }
    
    for (int i=0; i< rd.getProperties().size(); ++i)
    {
        ResourceProperty tmpRp = (ResourceProperty)rd.getProperties().get(i);
        newRd.getProperties().add( cloneResourceProperty( tmpRp ) );
    }
    
    return newRd;
}
 
開發者ID:JockiHendry,項目名稱:ireport-fork,代碼行數:30,代碼來源:ResourceUtils.java

示例5: getMondrianXmlaDefinition

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
private static void getMondrianXmlaDefinition(ARestV2Connection rc, ClientMondrianXmlaDefinition cr, ResourceDescriptor rd) throws ParseException {
	ResourceProperty rp = rd.getResourceProperty(ResourceDescriptor.PROP_XMLA_CATALOG);
	if (rp != null)
		cr.setCatalog(rp.getValue());
	for (ResourceDescriptor r : (List<ResourceDescriptor>) rd.getChildren()) {
		if (r.getWsType().equals(ResourceDescriptor.TYPE_OLAP_MONDRIAN_CONNECTION) || r.getWsType().equals(ResourceDescriptor.TYPE_SECURE_MONDRIAN_CONNECTION))
			cr.setMondrianConnection((ClientReferenceableMondrianConnection) getResourceContainer(rc, r));
	}
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:10,代碼來源:Soap2Rest.java

示例6: getCustomDataSource

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
private static void getCustomDataSource(ARestV2Connection rc, ClientCustomDataSource cr, ResourceDescriptor rd) throws ParseException {
	rd.setServiceClass(cr.getServiceClass());
	if (cr.getProperties() != null) {
		ResourceProperty rp = new ResourceProperty(MRDatasourceCustom.PROP_DATASOURCE_CUSTOM_PROPERTY_MAP);
		List<ResourceProperty> props = new ArrayList<ResourceProperty>();
		for (ClientProperty cp : cr.getProperties())
			props.add(new ResourceProperty(cp.getKey(), cp.getValue()));
		rp.setProperties(props);
		rd.setResourceProperty(rp);
	}
	DiffFields.setSoapValue(rd, DiffFields.DATASOURCENAME, cr.getDataSourceName());
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:13,代碼來源:Rest2Soap.java

示例7: getProperty

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
public static ResourceProperty getProperty(String name, List<ResourceProperty> props) {
	for (ResourceProperty rp : props) {
		if (rp.getName().equals(name)) //$NON-NLS-1$
			return rp;
	}
	return null;
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:8,代碼來源:ResourceDescriptorUtil.java

示例8: getColumnText

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
public String getColumnText(Object element, int columnIndex) {
	ResourceProperty rp = (ResourceProperty) element;
	switch (columnIndex) {
	case 0:
		return Misc.nvl(rp.getName());
	case 1:
		return Misc.nvl(rp.getValue());
	}
	return ""; //$NON-NLS-1$
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:11,代碼來源:DatasourceCustomPageContent.java

示例9: getResource

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
public MResource getResource(ANode parent, ResourceDescriptor resource, int index) {
	if (resource.getWsType().equals(ResourceDescriptor.TYPE_DATASOURCE_CUSTOM)) {
		ResourceProperty rp = ResourceDescriptorUtil.getProperty(ResourceDescriptor.PROP_DATASOURCE_CUSTOM_SERVICE_CLASS, resource.getProperties());
		if (rp != null && rp.getValue().equals(MRDatasourceMongoDB.CUSTOM_CLASS))
			return new MRDatasourceMongoDB(parent, resource, index);
	}
	return null;
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:9,代碼來源:MongoResourceFactory.java

示例10: getResource

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
public MResource getResource(ANode parent, ResourceDescriptor resource, int index) {
	if (resource.getWsType().equals(ResourceDescriptor.TYPE_DATASOURCE_CUSTOM)) {
		ResourceProperty rp = ResourceDescriptorUtil.getProperty(ResourceDescriptor.PROP_DATASOURCE_CUSTOM_SERVICE_CLASS, resource.getProperties());
		if (rp != null && rp.getValue().equals(MRDatasourceCassandra.CUSTOM_CLASS))
			return new MRDatasourceCassandra(parent, resource, index);
	}
	return null;
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:9,代碼來源:CassandraResourceFactory.java

示例11: getResource

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
public MResource getResource(ANode parent, ResourceDescriptor resource, int index) {
	if (resource.getWsType().equals(ResourceDescriptor.TYPE_DATASOURCE_CUSTOM)) {
		ResourceProperty rp = ResourceDescriptorUtil.getProperty(ResourceDescriptor.PROP_DATASOURCE_CUSTOM_SERVICE_CLASS, resource.getProperties());
		if (rp != null && rp.getValue().equals(MRDatasourceHadoopHive.CUSTOM_CLASS))
			return new MRDatasourceHadoopHive(parent, resource, index);
	}
	return null;
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:9,代碼來源:HiveResourceFactory.java

示例12: rebind

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
@Override
protected void rebind() {
	ResourceProperty resprop = ResourceDescriptorUtil.getProperty(MRDatasourceCustom.PROP_DATASOURCE_CUSTOM_PROPERTY_MAP, res.getValue().getProperties());

	resprop = ResourceDescriptorUtil.getProperty(MRDatasourceHadoopHive.JDBC_URL, resprop.getProperties());

	bindingContext.bindValue(SWTObservables.observeText(tname, SWT.Modify), PojoObservables.observeValue(resprop, "value")); //$NON-NLS-1$
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:9,代碼來源:DatasourceHivePageContent.java

示例13: cloneResourceProperty

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
/**
 * Create a clone of the resource property. The replication is recursive.
 * @param rp The ResourceProperty to clone
 * @return the new clone
 */
public static ResourceProperty cloneResourceProperty(ResourceProperty rp)
{
    ResourceProperty newRp = new ResourceProperty(rp.getName(), rp.getValue());
    
    for (int i=0; i< rp.getProperties().size(); ++i)
    {
        ResourceProperty tmpRp = (ResourceProperty)rp.getProperties().get(i);
        newRp.getProperties().add( cloneResourceProperty( tmpRp ) );
    }
    
    return newRp;
}
 
開發者ID:JockiHendry,項目名稱:ireport-fork,代碼行數:18,代碼來源:ResourceUtils.java

示例14: getResource

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
public AMResource getResource(ANode parent, ResourceDescriptor resource, int index) {
	if (resource.getWsType().equals(ResourceDescriptor.TYPE_DATASOURCE_CUSTOM)) {
		ResourceProperty rp = ResourceDescriptorUtil.getProperty(ResourceDescriptor.PROP_DATASOURCE_CUSTOM_SERVICE_CLASS, resource.getProperties());
		if (rp != null && rp.getValue().equals(MRDatasourceES.CUSTOM_CLASS))
			return new MRDatasourceES(parent, resource, index);
	}
	return null;
}
 
開發者ID:WedjaaOpen,項目名稱:ElasticJasper,代碼行數:9,代碼來源:ESResourceFactory.java

示例15: setSoapValue

import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty; //導入依賴的package包/類
public static void setSoapValue(ResourceDescriptor rd, String key, String v) {
	rd.setResourceProperty(new ResourceProperty(key, v));
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:4,代碼來源:DiffFields.java


注:本文中的com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceProperty類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。