1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.rule.web; |
17 | |
|
18 | |
import org.apache.commons.lang.StringUtils; |
19 | |
import org.apache.log4j.Logger; |
20 | |
import org.apache.struts.action.ActionForm; |
21 | |
import org.apache.struts.action.ActionForward; |
22 | |
import org.apache.struts.action.ActionMapping; |
23 | |
import org.kuali.rice.core.api.criteria.Predicate; |
24 | |
import org.kuali.rice.core.api.criteria.QueryByCriteria; |
25 | |
import org.kuali.rice.core.util.AttributeSet; |
26 | |
import org.kuali.rice.kew.doctype.bo.DocumentType; |
27 | |
import org.kuali.rice.kew.doctype.service.DocumentTypeService; |
28 | |
import org.kuali.rice.kew.engine.node.RouteNode; |
29 | |
import org.kuali.rice.kew.engine.node.service.RouteNodeService; |
30 | |
import org.kuali.rice.kew.service.KEWServiceLocator; |
31 | |
import org.kuali.rice.kew.util.KEWConstants; |
32 | |
import org.kuali.rice.kew.web.KewKualiAction; |
33 | |
import org.kuali.rice.kim.api.responsibility.Responsibility; |
34 | |
import org.kuali.rice.kim.api.responsibility.ResponsibilityService; |
35 | |
import org.kuali.rice.kim.api.services.KimApiServiceLocator; |
36 | |
import org.kuali.rice.kim.bo.impl.KimAttributes; |
37 | |
import org.kuali.rice.kim.bo.role.dto.KimPermissionInfo; |
38 | |
import org.kuali.rice.kim.bo.role.dto.KimPermissionTemplateInfo; |
39 | |
|
40 | |
import org.kuali.rice.kim.bo.role.dto.KimRoleInfo; |
41 | |
import org.kuali.rice.kim.bo.role.impl.KimPermissionImpl; |
42 | |
import org.kuali.rice.kim.impl.responsibility.ResponsibilityBo; |
43 | |
import org.kuali.rice.kim.service.PermissionService; |
44 | |
|
45 | |
import org.kuali.rice.kim.service.RoleManagementService; |
46 | |
import org.kuali.rice.kim.util.KimConstants; |
47 | |
import org.kuali.rice.kns.service.DataDictionaryService; |
48 | |
import org.kuali.rice.kns.service.DocumentHelperService; |
49 | |
import org.kuali.rice.kns.service.KNSServiceLocatorWeb; |
50 | |
import org.kuali.rice.kns.service.MaintenanceDocumentDictionaryService; |
51 | |
import org.kuali.rice.kns.util.GlobalVariables; |
52 | |
import org.kuali.rice.kns.util.KNSConstants; |
53 | |
|
54 | |
import javax.servlet.http.HttpServletRequest; |
55 | |
import javax.servlet.http.HttpServletResponse; |
56 | |
import java.util.ArrayList; |
57 | |
import java.util.Collections; |
58 | |
import java.util.HashMap; |
59 | |
import java.util.HashSet; |
60 | |
import java.util.LinkedHashMap; |
61 | |
import java.util.List; |
62 | |
import java.util.Map; |
63 | |
import java.util.Set; |
64 | |
|
65 | |
import static org.kuali.rice.core.api.criteria.PredicateFactory.and; |
66 | |
import static org.kuali.rice.core.api.criteria.PredicateFactory.equal; |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | 0 | public class DocumentConfigurationViewAction extends KewKualiAction { |
75 | |
|
76 | 0 | private static final Logger LOG = Logger.getLogger(DocumentConfigurationViewAction.class); |
77 | |
|
78 | |
private PermissionService permissionService; |
79 | |
private RoleManagementService roleService; |
80 | |
private ResponsibilityService responsibilityService; |
81 | |
private DocumentTypeService documentTypeService; |
82 | |
private DataDictionaryService dataDictionaryService; |
83 | |
private RouteNodeService routeNodeService; |
84 | |
private MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService; |
85 | |
private DocumentHelperService documentHelperService; |
86 | |
|
87 | |
public ActionForward start(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { |
88 | 0 | populateForm( (DocumentConfigurationViewForm)form ); |
89 | 0 | return mapping.findForward("basic"); |
90 | |
} |
91 | |
|
92 | |
protected void populateForm( DocumentConfigurationViewForm form ) { |
93 | 0 | if ( StringUtils.isNotEmpty( form.getDocumentTypeName() ) ) { |
94 | 0 | form.setDocumentType( getDocumentTypeService().findByName( form.getDocumentTypeName() ) ); |
95 | 0 | if ( form.getDocumentType() != null ) { |
96 | 0 | form.getDocumentType().getChildrenDocTypes(); |
97 | 0 | form.setAttributeLabels( new HashMap<String, String>() ); |
98 | 0 | populateRelatedDocuments( form ); |
99 | 0 | populatePermissions( form ); |
100 | 0 | populateRoutingResponsibilities( form ); |
101 | 0 | populateRoutingExceptionResponsibility( form ); |
102 | 0 | checkPermissions( form ); |
103 | |
} |
104 | |
} |
105 | 0 | } |
106 | |
|
107 | |
protected void checkPermissions( DocumentConfigurationViewForm form ) { |
108 | 0 | String docTypeDocumentType = getMaintenanceDocumentDictionaryService().getDocumentTypeName(DocumentType.class); |
109 | |
try { |
110 | 0 | if ((docTypeDocumentType != null) && getDocumentHelperService().getDocumentAuthorizer(docTypeDocumentType).canInitiate(docTypeDocumentType, GlobalVariables.getUserSession().getPerson())) { |
111 | 0 | form.setCanInitiateDocumentTypeDocument( true ); |
112 | |
} |
113 | 0 | } catch (Exception ex) { |
114 | |
|
115 | 0 | LOG.error( "Unable to check DocumentType initiation permission for "+ docTypeDocumentType, ex ); |
116 | 0 | } |
117 | 0 | String permissionDocumentType = getMaintenanceDocumentDictionaryService().getDocumentTypeName(KimPermissionImpl.class); |
118 | |
try { |
119 | 0 | if ((permissionDocumentType != null) && getDocumentHelperService().getDocumentAuthorizer(permissionDocumentType).canInitiate(permissionDocumentType, GlobalVariables.getUserSession().getPerson())) { |
120 | 0 | form.setCanInitiatePermissionDocument( true ); |
121 | |
} |
122 | 0 | } catch (Exception ex) { |
123 | |
|
124 | 0 | LOG.error( "Unable to check Permission initiation permission for "+ permissionDocumentType, ex ); |
125 | 0 | } |
126 | 0 | String responsibilityDocumentType = getMaintenanceDocumentDictionaryService().getDocumentTypeName(ResponsibilityBo.class); |
127 | |
try { |
128 | 0 | if ((responsibilityDocumentType != null) && getDocumentHelperService().getDocumentAuthorizer(responsibilityDocumentType).canInitiate(responsibilityDocumentType, GlobalVariables.getUserSession().getPerson())) { |
129 | 0 | form.setCanInitiateResponsibilityDocument( true ); |
130 | |
} |
131 | 0 | } catch (Exception ex) { |
132 | |
|
133 | 0 | LOG.error( "Unable to check Responsibility initiation permission for "+ responsibilityDocumentType, ex ); |
134 | 0 | } |
135 | 0 | } |
136 | |
|
137 | |
@SuppressWarnings("unchecked") |
138 | |
public void populateRelatedDocuments( DocumentConfigurationViewForm form ) { |
139 | 0 | form.setParentDocumentType( form.getDocumentType().getParentDocType() ); |
140 | 0 | form.setChildDocumentTypes( new ArrayList<DocumentType>( form.getDocumentType().getChildrenDocTypes() ) ); |
141 | 0 | } |
142 | |
|
143 | |
public void populatePermissions( DocumentConfigurationViewForm form ) { |
144 | |
|
145 | 0 | DocumentType docType = form.getDocumentType(); |
146 | 0 | Map<String,List<KimRoleInfo>> permRoles = new HashMap<String, List<KimRoleInfo>>(); |
147 | 0 | Map<String,String> searchCriteria = new HashMap<String,String>(); |
148 | 0 | searchCriteria.put("attributeName", "documentTypeName" ); |
149 | 0 | searchCriteria.put("active", "Y"); |
150 | |
|
151 | 0 | Set<String> seenDocumentPermissions = new HashSet<String>(); |
152 | 0 | while ( docType != null) { |
153 | 0 | String documentTypeName = docType.getName(); |
154 | 0 | searchCriteria.put("detailCriteria", |
155 | |
KimConstants.AttributeConstants.DOCUMENT_TYPE_NAME+"="+docType.getName() |
156 | |
); |
157 | 0 | List<KimPermissionInfo> perms = getPermissionService().lookupPermissions( searchCriteria, true ); |
158 | 0 | for ( KimPermissionInfo perm : perms ) { |
159 | 0 | List<String> roleIds = getPermissionService().getRoleIdsForPermissions(Collections.singletonList(perm)); |
160 | 0 | permRoles.put( perm.getPermissionId(), getRoleService().getRoles(roleIds) ); |
161 | 0 | for ( String attributeName : perm.getDetails().keySet() ) { |
162 | 0 | addAttributeLabel(form, attributeName); |
163 | |
} |
164 | 0 | } |
165 | |
|
166 | 0 | if ( perms.size() > 0 || documentTypeName.equals( form.getDocumentTypeName() ) ) { |
167 | 0 | ArrayList<PermissionForDisplay> dispPerms = new ArrayList<PermissionForDisplay>( perms.size() ); |
168 | 0 | for ( KimPermissionInfo perm : perms ) { |
169 | 0 | if ( perm.getDetails().size() == 1 ) { |
170 | |
|
171 | 0 | if ( seenDocumentPermissions.contains(perm.getTemplate().getNamespaceCode()+"|"+perm.getTemplate().getName()) ) { |
172 | 0 | dispPerms.add( new PermissionForDisplay( perm, true ) ); |
173 | |
} else { |
174 | 0 | dispPerms.add( new PermissionForDisplay( perm, false ) ); |
175 | 0 | seenDocumentPermissions.add(perm.getTemplate().getNamespaceCode()+"|"+perm.getTemplate().getName()); |
176 | |
} |
177 | |
} else { |
178 | |
|
179 | 0 | dispPerms.add( new PermissionForDisplay( perm, false ) ); |
180 | |
} |
181 | |
} |
182 | 0 | form.setPermissionsForDocumentType(documentTypeName, dispPerms ); |
183 | 0 | form.addDocumentType(documentTypeName); |
184 | |
} |
185 | 0 | docType = docType.getParentDocType(); |
186 | 0 | } |
187 | |
|
188 | 0 | form.setPermissionRoles( permRoles ); |
189 | 0 | } |
190 | |
|
191 | |
protected void populateRoutingExceptionResponsibility( DocumentConfigurationViewForm form ) { |
192 | 0 | DocumentType docType = form.getDocumentType(); |
193 | 0 | List<ResponsibilityForDisplay> responsibilities = new ArrayList<ResponsibilityForDisplay>(); |
194 | 0 | while ( docType != null) { |
195 | 0 | QueryByCriteria.Builder builder = QueryByCriteria.Builder.create(); |
196 | 0 | Predicate p = and( |
197 | |
equal("template.namespaceCode", KNSConstants.KUALI_RICE_WORKFLOW_NAMESPACE), |
198 | |
equal("template.name", KEWConstants.EXCEPTION_ROUTING_RESPONSIBILITY_TEMPLATE_NAME), |
199 | |
equal("active", "Y"), |
200 | |
equal("attributes[documentTypeName]", docType.getName()) |
201 | |
); |
202 | 0 | builder.setPredicates(p); |
203 | 0 | List<Responsibility> resps = getResponsibilityService().findResponsibilities(builder.build()).getResults(); |
204 | |
|
205 | 0 | for ( Responsibility r : resps ) { |
206 | 0 | if ( responsibilities.isEmpty() ) { |
207 | 0 | responsibilities.add( new ResponsibilityForDisplay( r, false ) ); |
208 | |
} else { |
209 | 0 | responsibilities.add( new ResponsibilityForDisplay( r, true ) ); |
210 | |
} |
211 | |
} |
212 | 0 | docType = docType.getParentDocType(); |
213 | 0 | } |
214 | 0 | form.setExceptionResponsibilities( responsibilities ); |
215 | 0 | for ( ResponsibilityForDisplay responsibility : responsibilities ) { |
216 | 0 | List<String> roleIds = getResponsibilityService().getRoleIdsForResponsibility(responsibility.getResp().getId(), null); |
217 | 0 | form.getResponsibilityRoles().put( responsibility.getResponsibilityId(), getRoleService().getRoles(roleIds) ); |
218 | 0 | } |
219 | 0 | } |
220 | |
|
221 | |
protected void addAttributeLabel( DocumentConfigurationViewForm form, String attributeName ) { |
222 | 0 | if ( !form.getAttributeLabels().containsKey(attributeName) ) { |
223 | 0 | form.getAttributeLabels().put(attributeName, |
224 | |
getDataDictionaryService().getAttributeLabel(KimAttributes.class, attributeName) ); |
225 | |
} |
226 | 0 | } |
227 | |
|
228 | |
|
229 | |
|
230 | |
|
231 | |
|
232 | |
|
233 | |
|
234 | |
protected RouteNode flattenSplitNode( RouteNode splitNode, Map<String,RouteNode> nodes ) { |
235 | 0 | nodes.put( splitNode.getRouteNodeName(), splitNode ); |
236 | 0 | RouteNode joinNode = null; |
237 | |
|
238 | 0 | for ( RouteNode nextNode : splitNode.getNextNodes() ) { |
239 | 0 | joinNode = flattenRouteNodes(nextNode, nodes); |
240 | |
} |
241 | |
|
242 | 0 | if ( joinNode != null ) { |
243 | 0 | nodes.put( joinNode.getRouteNodeName(), joinNode ); |
244 | |
} |
245 | 0 | return joinNode; |
246 | |
} |
247 | |
|
248 | |
|
249 | |
|
250 | |
|
251 | |
|
252 | |
|
253 | |
protected RouteNode flattenRouteNodes( RouteNode node, Map<String,RouteNode> nodes ) { |
254 | 0 | RouteNode lastProcessedNode = null; |
255 | |
|
256 | 0 | if ( nodes.containsKey(node.getRouteNodeName()) ) { |
257 | 0 | return node; |
258 | |
} |
259 | |
|
260 | 0 | if ( node.getNodeType().contains( "SplitNode" ) ) { |
261 | 0 | lastProcessedNode = flattenSplitNode(node, nodes); |
262 | |
|
263 | 0 | for ( RouteNode nextNode : lastProcessedNode.getNextNodes() ) { |
264 | 0 | lastProcessedNode = flattenRouteNodes(nextNode, nodes); |
265 | |
} |
266 | 0 | } else if ( node.getNodeType().contains( "JoinNode" ) ) { |
267 | 0 | lastProcessedNode = node; |
268 | |
} else { |
269 | |
|
270 | 0 | nodes.put(node.getRouteNodeName(), node); |
271 | 0 | for ( RouteNode nextNode : node.getNextNodes() ) { |
272 | 0 | lastProcessedNode = flattenRouteNodes(nextNode, nodes); |
273 | |
} |
274 | |
} |
275 | 0 | return lastProcessedNode; |
276 | |
} |
277 | |
|
278 | |
@SuppressWarnings("unchecked") |
279 | |
public void populateRoutingResponsibilities( DocumentConfigurationViewForm form ) { |
280 | |
|
281 | |
|
282 | |
|
283 | |
|
284 | 0 | RouteNode rootNode = ((List<org.kuali.rice.kew.engine.node.Process>)form.getDocumentType().getProcesses()).get(0).getInitialRouteNode(); |
285 | 0 | LinkedHashMap<String, RouteNode> routeNodeMap = new LinkedHashMap<String, RouteNode>(); |
286 | 0 | flattenRouteNodes(rootNode, routeNodeMap); |
287 | |
|
288 | 0 | form.setRouteNodes( new ArrayList<RouteNode>( routeNodeMap.values() ) ); |
289 | |
|
290 | |
|
291 | |
|
292 | |
|
293 | 0 | DocumentType docType = form.getDocumentType(); |
294 | 0 | Set<Responsibility> responsibilities = new HashSet<Responsibility>(); |
295 | 0 | Map<String,List<ResponsibilityForDisplay>> nodeToRespMap = new LinkedHashMap<String, List<ResponsibilityForDisplay>>(); |
296 | 0 | while ( docType != null) { |
297 | 0 | QueryByCriteria.Builder builder = QueryByCriteria.Builder.create(); |
298 | 0 | Predicate p = and( |
299 | |
equal("template.namespaceCode", KNSConstants.KUALI_RICE_WORKFLOW_NAMESPACE), |
300 | |
equal("template.name", KEWConstants.DEFAULT_RESPONSIBILITY_TEMPLATE_NAME), |
301 | |
equal("active", "Y"), |
302 | |
equal("attributes[documentTypeName]", docType.getName()) |
303 | |
); |
304 | 0 | builder.setPredicates(p); |
305 | 0 | List<Responsibility> resps = getResponsibilityService().findResponsibilities(builder.build()).getResults(); |
306 | |
|
307 | 0 | for ( Responsibility r : resps ) { |
308 | 0 | String routeNodeName = r.getAttributes().get(KimConstants.AttributeConstants.ROUTE_NODE_NAME); |
309 | 0 | if ( StringUtils.isNotBlank(routeNodeName) ) { |
310 | 0 | if ( !nodeToRespMap.containsKey( routeNodeName ) ) { |
311 | 0 | nodeToRespMap.put(routeNodeName, new ArrayList<ResponsibilityForDisplay>() ); |
312 | 0 | nodeToRespMap.get(routeNodeName).add( new ResponsibilityForDisplay( r, false ) ); |
313 | |
} else { |
314 | |
|
315 | |
|
316 | |
|
317 | 0 | if ( nodeToRespMap.get(routeNodeName).get(0).getDetails().get( KimConstants.AttributeConstants.DOCUMENT_TYPE_NAME ).equals(docType.getName() ) ) { |
318 | 0 | nodeToRespMap.get(routeNodeName).add( new ResponsibilityForDisplay( r, false ) ); |
319 | |
} else { |
320 | 0 | nodeToRespMap.get(routeNodeName).add( new ResponsibilityForDisplay( r, true ) ); |
321 | |
} |
322 | |
} |
323 | 0 | responsibilities.add(r); |
324 | |
} |
325 | 0 | } |
326 | 0 | docType = docType.getParentDocType(); |
327 | 0 | } |
328 | 0 | form.setResponsibilityMap( nodeToRespMap ); |
329 | |
|
330 | 0 | Map<String,List<KimRoleInfo>> respToRoleMap = new HashMap<String, List<KimRoleInfo>>(); |
331 | 0 | for (Responsibility responsibility : responsibilities ) { |
332 | 0 | List<String> roleIds = getResponsibilityService().getRoleIdsForResponsibility(responsibility.getId(), null); |
333 | 0 | respToRoleMap.put( responsibility.getId(), getRoleService().getRoles(roleIds) ); |
334 | 0 | } |
335 | 0 | form.setResponsibilityRoles( respToRoleMap ); |
336 | 0 | } |
337 | |
|
338 | |
|
339 | |
|
340 | |
|
341 | |
@Override |
342 | |
public ActionForward toggleTab(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { |
343 | |
|
344 | 0 | ActionForward actionForward = super.toggleTab(mapping, form, request, response); |
345 | 0 | populateForm( (DocumentConfigurationViewForm)form ); |
346 | 0 | return actionForward; |
347 | |
} |
348 | |
|
349 | |
|
350 | |
|
351 | |
|
352 | |
public static class ResponsibilityForDisplay { |
353 | |
|
354 | |
private Responsibility resp; |
355 | 0 | private boolean overridden = false; |
356 | |
|
357 | 0 | public ResponsibilityForDisplay( Responsibility resp, boolean overridden ) { |
358 | 0 | this.resp = resp; |
359 | 0 | this.overridden = overridden; |
360 | 0 | } |
361 | |
|
362 | |
|
363 | |
|
364 | |
|
365 | |
Responsibility getResp() { |
366 | 0 | return this.resp; |
367 | |
} |
368 | |
|
369 | |
public boolean isOverridden() { |
370 | 0 | return this.overridden; |
371 | |
} |
372 | |
|
373 | |
public void setOverridden(boolean overridden) { |
374 | 0 | this.overridden = overridden; |
375 | 0 | } |
376 | |
|
377 | |
public AttributeSet getDetails() { |
378 | 0 | return new AttributeSet(this.resp.getAttributes().toMap()); |
379 | |
} |
380 | |
|
381 | |
public String getName() { |
382 | 0 | return this.resp.getName(); |
383 | |
} |
384 | |
|
385 | |
public String getNamespaceCode() { |
386 | 0 | return this.resp.getNamespaceCode(); |
387 | |
} |
388 | |
|
389 | |
public String getResponsibilityId() { |
390 | 0 | return this.resp.getId(); |
391 | |
} |
392 | |
} |
393 | |
|
394 | 0 | public static class PermissionForDisplay { |
395 | |
private KimPermissionInfo perm; |
396 | 0 | private boolean overridden = false; |
397 | |
|
398 | 0 | public PermissionForDisplay( KimPermissionInfo perm, boolean overridden ) { |
399 | 0 | this.perm = perm; |
400 | 0 | this.overridden = overridden; |
401 | 0 | } |
402 | |
public boolean isOverridden() { |
403 | 0 | return this.overridden; |
404 | |
} |
405 | |
|
406 | |
public void setOverridden(boolean overridden) { |
407 | 0 | this.overridden = overridden; |
408 | 0 | } |
409 | |
public AttributeSet getDetails() { |
410 | 0 | return this.perm.getDetails(); |
411 | |
} |
412 | |
public String getName() { |
413 | 0 | return this.perm.getName(); |
414 | |
} |
415 | |
public String getNamespaceCode() { |
416 | 0 | return this.perm.getNamespaceCode(); |
417 | |
} |
418 | |
public String getPermissionId() { |
419 | 0 | return this.perm.getPermissionId(); |
420 | |
} |
421 | |
public KimPermissionTemplateInfo getTemplate() { |
422 | 0 | return this.perm.getTemplate(); |
423 | |
} |
424 | |
|
425 | |
} |
426 | |
|
427 | |
|
428 | |
|
429 | |
|
430 | |
public PermissionService getPermissionService() { |
431 | 0 | if ( permissionService == null ) { |
432 | 0 | permissionService = KimApiServiceLocator.getPermissionService(); |
433 | |
} |
434 | 0 | return permissionService; |
435 | |
} |
436 | |
|
437 | |
|
438 | |
|
439 | |
|
440 | |
public RoleManagementService getRoleService() { |
441 | 0 | if ( roleService == null ) { |
442 | 0 | roleService = KimApiServiceLocator.getRoleManagementService(); |
443 | |
} |
444 | 0 | return roleService; |
445 | |
} |
446 | |
|
447 | |
|
448 | |
|
449 | |
|
450 | |
public ResponsibilityService getResponsibilityService() { |
451 | 0 | if ( responsibilityService == null ) { |
452 | 0 | responsibilityService = KimApiServiceLocator.getResponsibilityService(); |
453 | |
} |
454 | 0 | return responsibilityService; |
455 | |
} |
456 | |
|
457 | |
|
458 | |
|
459 | |
|
460 | |
public DocumentTypeService getDocumentTypeService() { |
461 | 0 | if ( documentTypeService == null ) { |
462 | 0 | documentTypeService = KEWServiceLocator.getDocumentTypeService(); |
463 | |
} |
464 | 0 | return documentTypeService; |
465 | |
} |
466 | |
|
467 | |
public DataDictionaryService getDataDictionaryService() { |
468 | 0 | if(dataDictionaryService == null){ |
469 | 0 | dataDictionaryService = KNSServiceLocatorWeb.getDataDictionaryService(); |
470 | |
} |
471 | 0 | return dataDictionaryService; |
472 | |
} |
473 | |
|
474 | |
public RouteNodeService getRouteNodeService() { |
475 | 0 | if ( routeNodeService == null ) { |
476 | 0 | routeNodeService = KEWServiceLocator.getRouteNodeService(); |
477 | |
} |
478 | 0 | return routeNodeService; |
479 | |
} |
480 | |
|
481 | |
public DocumentHelperService getDocumentHelperService() { |
482 | 0 | if(documentHelperService == null){ |
483 | 0 | documentHelperService = KNSServiceLocatorWeb.getDocumentHelperService(); |
484 | |
} |
485 | 0 | return documentHelperService; |
486 | |
} |
487 | |
|
488 | |
public MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService() { |
489 | 0 | if(maintenanceDocumentDictionaryService == null){ |
490 | 0 | maintenanceDocumentDictionaryService = KNSServiceLocatorWeb.getMaintenanceDocumentDictionaryService(); |
491 | |
} |
492 | 0 | return maintenanceDocumentDictionaryService; |
493 | |
} |
494 | |
|
495 | |
} |