06-28-2010 07:33 PM
07-01-2011 07:35 AM
function _DOCUMENTOS_isMultiValued(name)
{
return dictionaryService.isMultiValued(name);
}
package com.acando.alfresco.repo.jscript;
import org.alfresco.repo.jscript.BaseScopableProcessorExtension;
import org.alfresco.service.ServiceRegistry;
import org.alfresco.service.namespace.QName;
/**
* Custom exposure of java services to javascript.
* @author eribil
*
*/
public class Dictionary extends BaseScopableProcessorExtension {
private ServiceRegistry services;
public void setServices(ServiceRegistry services) {
this.services = services;
}
/**
* Checks wheater a property has multivalue capacity.
*
* @return true if the property has multivalue capacity
*/
public boolean isMultiValued(String name) {
QName qname = QName.createQName(name);
return services.getDictionaryService().getProperty(qname)
.isMultiValued();
}
}
03-01-2013 10:55 AM
09-18-2014 06:18 AM
10-28-2014 01:20 AM
11-01-2014 06:47 AM
11-02-2014 05:43 AM
04-09-2015 03:12 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.