@Override public List<PropertyDefinition> getFacetableProperties() { final List<PropertyDefinition> result = new ArrayList<>(); final List<QName> allContentClasses = CollectionUtils.flatten(dictionaryService.getAllAspects(), dictionaryService.getAllTypes()); for (QName contentClass : allContentClasses) { result.addAll(getFacetableProperties(contentClass)); } return result; }
@Override public List<SyntheticPropertyDefinition> getFacetableSyntheticProperties() { final List<SyntheticPropertyDefinition> result = new ArrayList<>(); final List<QName> allContentClasses = CollectionUtils.flatten(dictionaryService.getAllAspects(), dictionaryService.getAllTypes()); for (QName contentClass : allContentClasses) { result.addAll(getFacetableSyntheticProperties(contentClass)); } return result; }
@Override public List<PropertyDefinition> getFacetableProperties() { final List<PropertyDefinition> result = new ArrayList<>(); final List<QName> allContentClasses = CollectionUtils.flatten(dictionaryService.getAllAspects(), dictionaryService.getAllTypes()); for (QName contentClass : allContentClasses) { result.addAll(getFacetableProperties(contentClass)); } return result; }
@Override public List<SyntheticPropertyDefinition> getFacetableSyntheticProperties() { final List<SyntheticPropertyDefinition> result = new ArrayList<>(); final List<QName> allContentClasses = CollectionUtils.flatten(dictionaryService.getAllAspects(), dictionaryService.getAllTypes()); for (QName contentClass : allContentClasses) { result.addAll(getFacetableSyntheticProperties(contentClass)); } return result; }
/** * @see org.alfresco.service.cmr.action.ParameterConstraint#getAllowableValues() */ protected Map<String, String> getAllowableValuesImpl() { Collection<QName> aspects = dictionaryService.getAllAspects(); Map<String, String> result = new LinkedHashMap<String, String>(aspects.size()); for (QName aspect : aspects) { AspectDefinition aspectDef = dictionaryService.getAspect(aspect); if (aspectDef != null && aspectDef.getTitle(dictionaryService) != null) { result.put(aspect.toPrefixString(), aspectDef.getTitle(dictionaryService)); } } return result; }
/** * @see org.alfresco.service.cmr.action.ParameterConstraint#getAllowableValues() */ protected Map<String, String> getAllowableValuesImpl() { Collection<QName> aspects = dictionaryService.getAllAspects(); Map<String, String> result = new LinkedHashMap<String, String>(aspects.size()); for (QName aspect : aspects) { AspectDefinition aspectDef = dictionaryService.getAspect(aspect); if (aspectDef != null && aspectDef.getTitle(dictionaryService) != null) { result.put(aspect.toPrefixString(), aspectDef.getTitle(dictionaryService)); } } return result; }
mutableState.allAspects = dictionaryService.getAllAspects();
mutableState.allAspects = dictionaryService.getAllAspects();
if (aspectDefinition == null) for (QName definition : dictionaryService.getAllAspects())
if (aspectDefinition == null) for (QName definition : dictionaryService.getAllAspects())