/** * @see org.alfresco.service.cmr.action.ParameterConstraint#getAllowableValues() */ protected Map<String, String> getAllowableValuesImpl() { Collection<QName> properties = dictionaryService.getAllProperties(null); Map<String, String> result = new LinkedHashMap<String, String>(properties.size()); for (QName property : properties) { PropertyDefinition propertyDef = dictionaryService.getProperty(property); if (propertyDef != null && propertyDef.getTitle(dictionaryService) != null) { result.put(property.toPrefixString(), propertyDef.getTitle(dictionaryService)); } } return result; } }
/** * @see org.alfresco.service.cmr.action.ParameterConstraint#getAllowableValues() */ protected Map<String, String> getAllowableValuesImpl() { Collection<QName> properties = dictionaryService.getAllProperties(null); Map<String, String> result = new LinkedHashMap<String, String>(properties.size()); for (QName property : properties) { PropertyDefinition propertyDef = dictionaryService.getProperty(property); if (propertyDef != null && propertyDef.getTitle(dictionaryService) != null) { result.put(property.toPrefixString(), propertyDef.getTitle(dictionaryService)); } } return result; } }
Set<QName> contentQNames = new HashSet<QName>(dictionaryService.getAllProperties(DataTypeDefinition.CONTENT)); Set<Long> contentQNamesToRemoveIds = qnameDAO.convertQNamesToIds(contentQNames, false); contentDataDAO.deleteContentDataForNode(nodeId, contentQNamesToRemoveIds);
Set<QName> contentQNames = new HashSet<QName>(dictionaryService.getAllProperties(DataTypeDefinition.CONTENT)); Set<Long> contentQNamesToRemoveIds = qnameDAO.convertQNamesToIds(contentQNames, false); contentDataDAO.deleteContentDataForNode(nodeId, contentQNamesToRemoveIds);