本文整理汇总了Java中org.alfresco.service.cmr.dictionary.DictionaryService.getAspect方法的典型用法代码示例。如果您正苦于以下问题:Java DictionaryService.getAspect方法的具体用法?Java DictionaryService.getAspect怎么用?Java DictionaryService.getAspect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.alfresco.service.cmr.dictionary.DictionaryService
的用法示例。
在下文中一共展示了DictionaryService.getAspect方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateDefinition
import org.alfresco.service.cmr.dictionary.DictionaryService; //导入方法依赖的package包/类
@Override
public void updateDefinition(DictionaryService dictionaryService)
{
AspectDefinition aspectDef = dictionaryService.getAspect(alfrescoName);
if (aspectDef != null)
{
setTypeDefDisplayName(aspectDef.getTitle(dictionaryService));
setTypeDefDescription(aspectDef.getDescription(dictionaryService));
}
else
{
super.updateDefinition(dictionaryService);
}
updateTypeDefInclProperties();
}
示例2: matchAspectDefinition
import org.alfresco.service.cmr.dictionary.DictionaryService; //导入方法依赖的package包/类
public static AspectDefinition matchAspectDefinition(String string, NamespacePrefixResolver namespacePrefixResolver, DictionaryService dictionaryService)
{
QName search = QName.createQName(expandQName(string, namespacePrefixResolver));
AspectDefinition aspectDefinition = dictionaryService.getAspect(search);
QName match = null;
if (aspectDefinition == null)
{
for (QName definition : dictionaryService.getAllAspects())
{
if (definition.getNamespaceURI().equalsIgnoreCase(search.getNamespaceURI()))
{
if (definition.getLocalName().equalsIgnoreCase(search.getLocalName()))
{
if (match == null)
{
match = definition;
}
else
{
throw new QueryModelException("Ambiguous data datype " + string);
}
}
}
}
}
else
{
return aspectDefinition;
}
if (match == null)
{
return null;
}
else
{
return dictionaryService.getAspect(match);
}
}
示例3: matchAspectDefinition
import org.alfresco.service.cmr.dictionary.DictionaryService; //导入方法依赖的package包/类
public static AspectDefinition matchAspectDefinition(String defaultNameSpaceUri, NamespacePrefixResolver namespacePrefixResolver, DictionaryService dictionaryService, String string)
{
QName search = QName.createQName(expandQName(defaultNameSpaceUri, namespacePrefixResolver, string));
AspectDefinition aspectDefinition = dictionaryService.getAspect(QName.createQName(expandQName(defaultNameSpaceUri, namespacePrefixResolver, string)));
QName match = null;
if (aspectDefinition == null)
{
for (QName definition : dictionaryService.getAllAspects())
{
if (definition.getNamespaceURI().equalsIgnoreCase(search.getNamespaceURI()))
{
if (definition.getLocalName().equalsIgnoreCase(search.getLocalName()))
{
if (match == null)
{
match = definition;
}
else
{
throw new DictionaryException("Ambiguous data datype " + string);
}
}
}
}
}
else
{
return aspectDefinition;
}
if (match == null)
{
return null;
}
else
{
return dictionaryService.getAspect(match);
}
}