@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> types = dictionaryService.getAllTypes(); Map<String, String> result = new LinkedHashMap<String, String>(types.size()); for (QName type : types) { TypeDefinition typeDef = dictionaryService.getType(type); if (typeDef != null && typeDef.getTitle(dictionaryService) != null) { result.put(type.toPrefixString(), typeDef.getTitle(dictionaryService)); } } return result; } }
/** * @see org.alfresco.service.cmr.action.ParameterConstraint#getAllowableValues() */ protected Map<String, String> getAllowableValuesImpl() { Collection<QName> types = dictionaryService.getAllTypes(); Map<String, String> result = new LinkedHashMap<String, String>(types.size()); for (QName type : types) { TypeDefinition typeDef = dictionaryService.getType(type); if (typeDef != null && typeDef.getTitle(dictionaryService) != null) { result.put(type.toPrefixString(), typeDef.getTitle(dictionaryService)); } } return result; } }
if (typeDefinition == null) for (QName definition : dictionaryService.getAllTypes())
if (typeDefinition == null) for (QName definition : dictionaryService.getAllTypes())