| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
package org.kuali.rice.kew.doctype.service.impl; |
| 18 | |
|
| 19 | |
import java.io.InputStream; |
| 20 | |
import java.util.ArrayList; |
| 21 | |
import java.util.Collection; |
| 22 | |
import java.util.Iterator; |
| 23 | |
import java.util.List; |
| 24 | |
|
| 25 | |
import org.apache.commons.collections.CollectionUtils; |
| 26 | |
import org.jdom.Element; |
| 27 | |
import org.kuali.rice.core.api.impex.ExportDataSet; |
| 28 | |
import org.kuali.rice.kew.doctype.bo.DocumentType; |
| 29 | |
import org.kuali.rice.kew.doctype.dao.DocumentTypeDAO; |
| 30 | |
import org.kuali.rice.kew.doctype.service.DocumentTypePermissionService; |
| 31 | |
import org.kuali.rice.kew.doctype.service.DocumentTypeService; |
| 32 | |
import org.kuali.rice.kew.dto.DTOConverter; |
| 33 | |
import org.kuali.rice.kew.dto.DocumentTypeDTO; |
| 34 | |
import org.kuali.rice.kew.exception.WorkflowServiceErrorException; |
| 35 | |
import org.kuali.rice.kew.exception.WorkflowServiceErrorImpl; |
| 36 | |
import org.kuali.rice.kew.rule.bo.RuleAttribute; |
| 37 | |
import org.kuali.rice.kew.service.KEWServiceLocator; |
| 38 | |
import org.kuali.rice.kew.util.KEWConstants; |
| 39 | |
import org.kuali.rice.kew.xml.DocumentTypeXmlParser; |
| 40 | |
import org.kuali.rice.kew.xml.export.DocumentTypeXmlExporter; |
| 41 | |
import org.kuali.rice.kns.util.ObjectUtils; |
| 42 | |
|
| 43 | |
|
| 44 | |
|
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | |
|
| 49 | 0 | public class DocumentTypeServiceImpl implements DocumentTypeService { |
| 50 | |
|
| 51 | 0 | private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(DocumentTypeServiceImpl.class); |
| 52 | |
protected static final String XML_FILE_PARSE_ERROR = "general.error.parsexml"; |
| 53 | |
|
| 54 | |
public static final String DOCUMENT_TYPE_ID_CACHE_GROUP = "DocumentTypeId"; |
| 55 | |
public static final String DOCUMENT_TYPE_NAME_CACHE_GROUP = "DocumentTypeName"; |
| 56 | |
public static final String DOCUMENT_TYPE_DTO_ID_CACHE_GROUP = "DocumentTypeDTOId"; |
| 57 | |
public static final String DOCUMENT_TYPE_DTO_NAME_CACHE_GROUP = "DocumentTypeDTOName"; |
| 58 | |
|
| 59 | |
public static final String DOCUMENT_TYPE_ID_CACHE_PREFIX = DOCUMENT_TYPE_ID_CACHE_GROUP + ":"; |
| 60 | |
public static final String DOCUMENT_TYPE_NAME_CACHE_PREFIX = DOCUMENT_TYPE_NAME_CACHE_GROUP + ":"; |
| 61 | |
public static final String DOCUMENT_TYPE_DTO_ID_CACHE_PREFIX = DOCUMENT_TYPE_DTO_ID_CACHE_GROUP + ":"; |
| 62 | |
public static final String DOCUMENT_TYPE_DTO_NAME_CACHE_PREFIX = DOCUMENT_TYPE_DTO_NAME_CACHE_GROUP + ":"; |
| 63 | |
public static final String CURRENT_ROOTS_IN_CACHE_KEY = "DocumentType:CurrentRootsInCache"; |
| 64 | |
|
| 65 | |
|
| 66 | |
private DocumentTypeDAO documentTypeDAO; |
| 67 | |
|
| 68 | |
public Collection<DocumentType> find(DocumentType documentType, String docTypeParentName, boolean climbHierarchy) { |
| 69 | 0 | DocumentType docTypeParent = this.findByName(docTypeParentName); |
| 70 | 0 | Collection<DocumentType> documentTypes = getDocumentTypeDAO().find(documentType, docTypeParent, climbHierarchy); |
| 71 | |
|
| 72 | 0 | for (Object documentType1 : documentTypes) |
| 73 | |
{ |
| 74 | 0 | insertIntoCache((DocumentType) documentType1); |
| 75 | |
} |
| 76 | 0 | return documentTypes; |
| 77 | |
} |
| 78 | |
|
| 79 | |
public DocumentType findById(Long documentTypeId) { |
| 80 | 0 | if (documentTypeId == null) { |
| 81 | 0 | return null; |
| 82 | |
} |
| 83 | 0 | DocumentType documentType = fetchFromCacheById(documentTypeId); |
| 84 | 0 | if (documentType == null) { |
| 85 | 0 | documentType = getDocumentTypeDAO().findByDocId(documentTypeId); |
| 86 | 0 | insertIntoCache(documentType); |
| 87 | |
} |
| 88 | 0 | return documentType; |
| 89 | |
} |
| 90 | |
|
| 91 | |
public DocumentType findByDocumentId(Long documentId) { |
| 92 | 0 | if (documentId == null) { |
| 93 | 0 | return null; |
| 94 | |
} |
| 95 | 0 | Long documentTypeId = getDocumentTypeDAO().findDocumentTypeIdByDocumentId(documentId); |
| 96 | 0 | return findById(documentTypeId); |
| 97 | |
} |
| 98 | |
|
| 99 | |
public DocumentType findByName(String name) { |
| 100 | 0 | return this.findByName(name, true, true); |
| 101 | |
} |
| 102 | |
|
| 103 | |
public DocumentType findByNameCaseInsensitive(String name) { |
| 104 | 0 | return this.findByName(name, false,true); |
| 105 | |
} |
| 106 | |
|
| 107 | |
|
| 108 | |
|
| 109 | |
|
| 110 | |
|
| 111 | |
|
| 112 | |
|
| 113 | |
|
| 114 | |
|
| 115 | |
|
| 116 | |
protected DocumentType findByName(String name, boolean caseSensitive) { |
| 117 | 0 | if (name == null) { |
| 118 | 0 | return null; |
| 119 | |
} |
| 120 | 0 | DocumentType documentType = fetchFromCacheByName(name); |
| 121 | 0 | if (documentType == null) { |
| 122 | 0 | documentType = getDocumentTypeDAO().findByName(name, caseSensitive); |
| 123 | 0 | insertIntoCache(documentType); |
| 124 | |
} |
| 125 | 0 | return documentType; |
| 126 | |
} |
| 127 | |
|
| 128 | |
|
| 129 | |
|
| 130 | |
|
| 131 | |
|
| 132 | |
|
| 133 | |
|
| 134 | |
|
| 135 | |
|
| 136 | |
|
| 137 | |
protected DocumentType findByName(String name, boolean caseSensitive, boolean checkCache) { |
| 138 | 0 | if (name == null) { |
| 139 | 0 | return null; |
| 140 | |
} |
| 141 | |
|
| 142 | 0 | DocumentType documentType = null; |
| 143 | 0 | if(checkCache){ |
| 144 | 0 | documentType = fetchFromCacheByName(name); |
| 145 | |
} |
| 146 | 0 | if (documentType == null) { |
| 147 | 0 | documentType = getDocumentTypeDAO().findByName(name, caseSensitive); |
| 148 | 0 | insertIntoCache(documentType); |
| 149 | |
} |
| 150 | 0 | return documentType; |
| 151 | |
} |
| 152 | |
|
| 153 | |
|
| 154 | |
|
| 155 | |
|
| 156 | |
|
| 157 | |
protected DocumentType fetchFromCacheByName(String documentTypeName) { |
| 158 | 0 | return (DocumentType)KEWServiceLocator.getCacheAdministrator().getFromCache(getNameCacheKey(documentTypeName)); |
| 159 | |
} |
| 160 | |
|
| 161 | |
|
| 162 | |
|
| 163 | |
|
| 164 | |
|
| 165 | |
protected DocumentType fetchFromCacheById(Long documentTypeId) { |
| 166 | 0 | return (DocumentType)KEWServiceLocator.getCacheAdministrator().getFromCache(getIdCacheKey(documentTypeId)); |
| 167 | |
} |
| 168 | |
|
| 169 | |
|
| 170 | |
|
| 171 | |
|
| 172 | |
protected String getIdCacheKey(Long documentTypeId) { |
| 173 | 0 | return DOCUMENT_TYPE_ID_CACHE_PREFIX + documentTypeId.toString(); |
| 174 | |
} |
| 175 | |
|
| 176 | |
|
| 177 | |
|
| 178 | |
|
| 179 | |
protected String getNameCacheKey(String documentTypeName) { |
| 180 | 0 | return DOCUMENT_TYPE_NAME_CACHE_PREFIX + documentTypeName; |
| 181 | |
} |
| 182 | |
|
| 183 | |
|
| 184 | |
|
| 185 | |
|
| 186 | |
|
| 187 | |
|
| 188 | |
|
| 189 | |
|
| 190 | |
|
| 191 | |
|
| 192 | |
protected void insertIntoCache(DocumentType documentType) { |
| 193 | 0 | if (documentType == null) { |
| 194 | 0 | return; |
| 195 | |
} |
| 196 | |
|
| 197 | 0 | if (documentType.getCurrentInd().booleanValue()) { |
| 198 | 0 | KEWServiceLocator.getCacheAdministrator().putInCache(getNameCacheKey(documentType.getName()), documentType, DOCUMENT_TYPE_NAME_CACHE_GROUP); |
| 199 | |
} |
| 200 | |
|
| 201 | 0 | KEWServiceLocator.getCacheAdministrator().putInCache(getIdCacheKey(documentType.getDocumentTypeId()), documentType, DOCUMENT_TYPE_ID_CACHE_GROUP); |
| 202 | 0 | } |
| 203 | |
|
| 204 | |
|
| 205 | |
|
| 206 | |
|
| 207 | |
|
| 208 | |
protected DocumentTypeDTO fetchDTOFromCacheByName(String documentTypeName) { |
| 209 | 0 | return (DocumentTypeDTO)KEWServiceLocator.getCacheAdministrator().getFromCache(getDTONameCacheKey(documentTypeName)); |
| 210 | |
} |
| 211 | |
|
| 212 | |
|
| 213 | |
|
| 214 | |
|
| 215 | |
|
| 216 | |
protected DocumentTypeDTO fetchDTOFromCacheById(Long documentTypeId) { |
| 217 | 0 | return (DocumentTypeDTO)KEWServiceLocator.getCacheAdministrator().getFromCache(getDTOIdCacheKey(documentTypeId)); |
| 218 | |
} |
| 219 | |
|
| 220 | |
|
| 221 | |
|
| 222 | |
|
| 223 | |
protected String getDTOIdCacheKey(Long documentTypeId) { |
| 224 | 0 | return DOCUMENT_TYPE_DTO_ID_CACHE_PREFIX + documentTypeId.toString(); |
| 225 | |
} |
| 226 | |
|
| 227 | |
|
| 228 | |
|
| 229 | |
|
| 230 | |
protected String getDTONameCacheKey(String documentTypeName) { |
| 231 | 0 | return DOCUMENT_TYPE_DTO_NAME_CACHE_PREFIX + documentTypeName; |
| 232 | |
} |
| 233 | |
|
| 234 | |
|
| 235 | |
|
| 236 | |
|
| 237 | |
|
| 238 | |
|
| 239 | |
|
| 240 | |
|
| 241 | |
|
| 242 | |
|
| 243 | |
protected void insertDTOIntoCache(DocumentTypeDTO documentType) { |
| 244 | 0 | if (documentType == null) { |
| 245 | 0 | return; |
| 246 | |
} |
| 247 | |
|
| 248 | 0 | if ( documentType.getDocTypeCurrentInd().equals(KEWConstants.ACTIVE_CD) ) { |
| 249 | 0 | KEWServiceLocator.getCacheAdministrator().putInCache(getDTONameCacheKey(documentType.getName()), documentType, DOCUMENT_TYPE_DTO_NAME_CACHE_GROUP); |
| 250 | |
} |
| 251 | |
|
| 252 | 0 | KEWServiceLocator.getCacheAdministrator().putInCache(getDTOIdCacheKey(documentType.getDocTypeId()), documentType, DOCUMENT_TYPE_DTO_ID_CACHE_GROUP); |
| 253 | 0 | } |
| 254 | |
|
| 255 | |
|
| 256 | |
|
| 257 | |
|
| 258 | |
public void flushCache() { |
| 259 | |
|
| 260 | |
|
| 261 | |
|
| 262 | 0 | LOG.info("clearing DocumentType cache because of local update"); |
| 263 | 0 | KEWServiceLocator.getCacheAdministrator().flushGroup(DOCUMENT_TYPE_ID_CACHE_GROUP); |
| 264 | 0 | KEWServiceLocator.getCacheAdministrator().flushGroup(DOCUMENT_TYPE_NAME_CACHE_GROUP); |
| 265 | 0 | KEWServiceLocator.getCacheAdministrator().flushGroup(DOCUMENT_TYPE_DTO_ID_CACHE_GROUP); |
| 266 | 0 | KEWServiceLocator.getCacheAdministrator().flushGroup(DOCUMENT_TYPE_DTO_NAME_CACHE_GROUP); |
| 267 | 0 | KEWServiceLocator.getCacheAdministrator().flushGroup(DocumentTypePermissionService.DOC_TYPE_PERM_CACHE_GROUP); |
| 268 | 0 | KEWServiceLocator.getCacheAdministrator().flushEntry(CURRENT_ROOTS_IN_CACHE_KEY); |
| 269 | 0 | } |
| 270 | |
|
| 271 | |
public void clearCacheForAttributeUpdate(RuleAttribute ruleAttribute) { |
| 272 | 0 | if (ruleAttribute.getRuleAttributeId() != null) { |
| 273 | 0 | List documentTypeAttributes = this.documentTypeDAO.findDocumentTypeAttributes(ruleAttribute); |
| 274 | 0 | if (documentTypeAttributes.size() != 0) { |
| 275 | 0 | flushCache(); |
| 276 | |
} |
| 277 | |
} |
| 278 | 0 | } |
| 279 | |
|
| 280 | |
public void versionAndSave(DocumentType documentType) { |
| 281 | |
try { |
| 282 | |
|
| 283 | |
|
| 284 | 0 | if (documentType.getDocumentTypeId() != null && documentType.getVersionNumber() != null) { |
| 285 | 0 | throw new RuntimeException("DocumentType configured for update and not versioning which we support"); |
| 286 | |
} |
| 287 | |
|
| 288 | |
|
| 289 | 0 | DocumentType oldDocumentType = findByName(documentType.getName(), true, false); |
| 290 | |
|
| 291 | |
|
| 292 | 0 | Long existingDocTypeId = null; |
| 293 | 0 | if (oldDocumentType != null) { |
| 294 | 0 | existingDocTypeId = oldDocumentType.getDocumentTypeId(); |
| 295 | 0 | if (existingDocTypeId.longValue() > 0) { |
| 296 | |
|
| 297 | 0 | Integer maxVersionNumber = documentTypeDAO.getMaxVersionNumber(documentType.getName()); |
| 298 | 0 | documentType.setVersion((maxVersionNumber != null) ? new Integer(maxVersionNumber.intValue() + 1) : new Integer(0)); |
| 299 | 0 | oldDocumentType.setCurrentInd(Boolean.FALSE); |
| 300 | 0 | if ( LOG.isInfoEnabled() ) { |
| 301 | 0 | LOG.info("Saving old document type Id " + oldDocumentType.getDocumentTypeId() + " name '" + oldDocumentType.getName() + "' (current = " + oldDocumentType.getCurrentInd() + ")"); |
| 302 | |
} |
| 303 | 0 | save(oldDocumentType, false); |
| 304 | |
} |
| 305 | |
} |
| 306 | |
|
| 307 | 0 | if (!CollectionUtils.isEmpty(documentTypeDAO.findAllCurrentByName(documentType.getName()))) { |
| 308 | 0 | String errorMsg = "Found invalid 'current' document with name '" + documentType.getName() + "'. None should exist."; |
| 309 | 0 | LOG.error(errorMsg); |
| 310 | 0 | throw new RuntimeException(errorMsg); |
| 311 | |
} |
| 312 | |
|
| 313 | 0 | documentType.setPreviousVersionId(existingDocTypeId); |
| 314 | 0 | documentType.setCurrentInd(Boolean.TRUE); |
| 315 | 0 | save(documentType, false); |
| 316 | 0 | if ( LOG.isInfoEnabled() ) { |
| 317 | 0 | LOG.info("Saved current document type Id " + documentType.getDocumentTypeId() + " name '" + documentType.getName() + "' (current = " + documentType.getCurrentInd() + ")"); |
| 318 | |
} |
| 319 | |
|
| 320 | 0 | if (ObjectUtils.isNotNull(existingDocTypeId)) { |
| 321 | |
|
| 322 | 0 | for (Iterator iterator = getChildDocumentTypes(existingDocTypeId).iterator(); iterator.hasNext();) { |
| 323 | |
|
| 324 | 0 | DocumentType child = (DocumentType) iterator.next(); |
| 325 | 0 | child.setDocTypeParentId(documentType.getDocumentTypeId()); |
| 326 | 0 | save(child, false); |
| 327 | 0 | if ( LOG.isInfoEnabled() ) { |
| 328 | 0 | LOG.info("Saved child document type Id " + child.getDocumentTypeId() + " name '" + child.getName() + "' (parent = " + child.getDocTypeParentId() + ", current = " + child.getCurrentInd() + ")"); |
| 329 | |
} |
| 330 | 0 | } |
| 331 | |
} |
| 332 | |
|
| 333 | |
|
| 334 | |
|
| 335 | |
|
| 336 | |
|
| 337 | 0 | if (documentType.getDocTypeParentId() != null) { |
| 338 | 0 | DocumentType parent = getDocumentTypeDAO().findByDocId(documentType.getDocTypeParentId()); |
| 339 | 0 | save(parent, false); |
| 340 | 0 | if ( LOG.isInfoEnabled() ) { |
| 341 | 0 | LOG.info("Saved parent document type Id " + parent.getDocumentTypeId() + " name '" + parent.getName() + "' (current = " + parent.getCurrentInd() + ")"); |
| 342 | |
} |
| 343 | |
} |
| 344 | |
|
| 345 | |
|
| 346 | 0 | flushCache(); |
| 347 | 0 | KEWServiceLocator.getRuleService().notifyCacheOfDocumentTypeChange(documentType); |
| 348 | |
} finally { |
| 349 | |
|
| 350 | |
|
| 351 | |
|
| 352 | |
|
| 353 | |
|
| 354 | |
|
| 355 | |
|
| 356 | |
|
| 357 | |
|
| 358 | 0 | flushCache(); |
| 359 | 0 | } |
| 360 | 0 | } |
| 361 | |
|
| 362 | |
public void save(DocumentType documentType, boolean flushCache) { |
| 363 | 0 | getDocumentTypeDAO().save(documentType); |
| 364 | 0 | if (flushCache) { |
| 365 | |
|
| 366 | 0 | flushCache(); |
| 367 | 0 | KEWServiceLocator.getRuleService().notifyCacheOfDocumentTypeChange(documentType); |
| 368 | 0 | flushCache(); |
| 369 | |
} |
| 370 | 0 | } |
| 371 | |
|
| 372 | |
public void save(DocumentType documentType) { |
| 373 | 0 | save(documentType, true); |
| 374 | 0 | } |
| 375 | |
|
| 376 | |
public DocumentTypeDAO getDocumentTypeDAO() { |
| 377 | 0 | return documentTypeDAO; |
| 378 | |
} |
| 379 | |
|
| 380 | |
public void setDocumentTypeDAO(DocumentTypeDAO documentTypeDAO) { |
| 381 | 0 | this.documentTypeDAO = documentTypeDAO; |
| 382 | 0 | } |
| 383 | |
|
| 384 | |
public DocumentTypeDTO getDocumentTypeVO(Long documentTypeId) { |
| 385 | 0 | DocumentTypeDTO dto = fetchDTOFromCacheById(documentTypeId); |
| 386 | 0 | if ( dto == null ) { |
| 387 | 0 | DocumentType docType = findById(documentTypeId); |
| 388 | 0 | if ( docType == null ) { |
| 389 | 0 | return null; |
| 390 | |
} |
| 391 | 0 | dto = DTOConverter.convertDocumentType(docType); |
| 392 | 0 | insertDTOIntoCache(dto); |
| 393 | |
} |
| 394 | |
|
| 395 | 0 | return dto; |
| 396 | |
} |
| 397 | |
|
| 398 | |
public DocumentTypeDTO getDocumentTypeVO(String documentTypeName) { |
| 399 | 0 | DocumentTypeDTO dto = fetchDTOFromCacheByName(documentTypeName); |
| 400 | 0 | if ( dto == null ) { |
| 401 | 0 | DocumentType docType = findByName(documentTypeName); |
| 402 | 0 | if ( docType == null ) { |
| 403 | 0 | return null; |
| 404 | |
} |
| 405 | 0 | dto = DTOConverter.convertDocumentType(docType); |
| 406 | 0 | insertDTOIntoCache(dto); |
| 407 | |
} |
| 408 | 0 | return dto; |
| 409 | |
} |
| 410 | |
|
| 411 | |
public synchronized List findAllCurrentRootDocuments() { |
| 412 | 0 | List currentRootsInCache = (List) KEWServiceLocator.getCacheAdministrator().getFromCache(CURRENT_ROOTS_IN_CACHE_KEY); |
| 413 | |
|
| 414 | 0 | if (currentRootsInCache == null) { |
| 415 | 0 | currentRootsInCache = getDocumentTypeDAO().findAllCurrentRootDocuments(); |
| 416 | 0 | KEWServiceLocator.getCacheAdministrator().putInCache(CURRENT_ROOTS_IN_CACHE_KEY, currentRootsInCache); |
| 417 | |
} |
| 418 | 0 | return currentRootsInCache; |
| 419 | |
} |
| 420 | |
|
| 421 | |
public List findAllCurrent() { |
| 422 | 0 | return getDocumentTypeDAO().findAllCurrent(); |
| 423 | |
} |
| 424 | |
|
| 425 | |
public List<DocumentType> findPreviousInstances(String documentTypeName) { |
| 426 | 0 | return getDocumentTypeDAO().findPreviousInstances(documentTypeName); |
| 427 | |
} |
| 428 | |
|
| 429 | |
public DocumentType findRootDocumentType(DocumentType docType) { |
| 430 | 0 | if (docType.getParentDocType() != null) { |
| 431 | 0 | return findRootDocumentType(docType.getParentDocType()); |
| 432 | |
} else { |
| 433 | 0 | return docType; |
| 434 | |
} |
| 435 | |
} |
| 436 | |
|
| 437 | |
public void loadXml(InputStream inputStream, String principalId) { |
| 438 | 0 | DocumentTypeXmlParser parser = new DocumentTypeXmlParser(); |
| 439 | |
try { |
| 440 | 0 | parser.parseDocumentTypes(inputStream); |
| 441 | 0 | } catch (Exception e) { |
| 442 | 0 | WorkflowServiceErrorException wsee = new WorkflowServiceErrorException("Error parsing documentType XML file", new WorkflowServiceErrorImpl("Error parsing documentType XML file", XML_FILE_PARSE_ERROR)); |
| 443 | 0 | wsee.initCause(e); |
| 444 | 0 | throw wsee; |
| 445 | 0 | } |
| 446 | 0 | } |
| 447 | |
|
| 448 | |
public Element export(ExportDataSet dataSet) { |
| 449 | 0 | DocumentTypeXmlExporter exporter = new DocumentTypeXmlExporter(); |
| 450 | 0 | return exporter.export(dataSet); |
| 451 | |
} |
| 452 | |
|
| 453 | |
@Override |
| 454 | |
public boolean supportPrettyPrint() { |
| 455 | 0 | return true; |
| 456 | |
} |
| 457 | |
|
| 458 | |
public List getChildDocumentTypes(Long documentTypeId) { |
| 459 | 0 | List childDocumentTypes = new ArrayList(); |
| 460 | 0 | List childIds = getDocumentTypeDAO().getChildDocumentTypeIds(documentTypeId); |
| 461 | 0 | for (Iterator iter = childIds.iterator(); iter.hasNext();) { |
| 462 | 0 | Long childDocumentTypeId = (Long) iter.next(); |
| 463 | 0 | childDocumentTypes.add(findById(childDocumentTypeId)); |
| 464 | 0 | } |
| 465 | 0 | return childDocumentTypes; |
| 466 | |
} |
| 467 | |
|
| 468 | |
} |