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 java.util.ArrayList; |
19 | |
import java.util.HashMap; |
20 | |
import java.util.LinkedHashMap; |
21 | |
import java.util.List; |
22 | |
import java.util.Map; |
23 | |
|
24 | |
import org.kuali.rice.kew.doctype.bo.DocumentType; |
25 | |
import org.kuali.rice.kew.engine.node.RouteNode; |
26 | |
import org.kuali.rice.kew.rule.web.DocumentConfigurationViewAction.PermissionForDisplay; |
27 | |
import org.kuali.rice.kew.rule.web.DocumentConfigurationViewAction.ResponsibilityForDisplay; |
28 | |
import org.kuali.rice.kim.bo.role.dto.KimRoleInfo; |
29 | |
import org.kuali.rice.kns.web.struts.form.KualiForm; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | 0 | public class DocumentConfigurationViewForm extends KualiForm { |
38 | |
|
39 | |
private static final long serialVersionUID = -6251534168125209176L; |
40 | |
|
41 | |
protected String documentTypeName; |
42 | |
protected DocumentType documentType; |
43 | |
protected DocumentType parentDocumentType; |
44 | |
protected List<DocumentType> childDocumentTypes; |
45 | |
|
46 | 0 | protected List<String> docTypeHierarchyList = new ArrayList<String>(); |
47 | 0 | protected LinkedHashMap<String,List<PermissionForDisplay>> permissionsByDocumentType = new LinkedHashMap<String, List<PermissionForDisplay>>(); |
48 | 0 | protected Map<String,List<KimRoleInfo>> permissionRoles = new HashMap<String, List<KimRoleInfo>>(); |
49 | |
protected Map<String,String> attributeLabels; |
50 | |
protected List<RouteNode> routeNodes; |
51 | |
protected Map<String,List<ResponsibilityForDisplay>> responsibilityMap; |
52 | |
protected Map<String,List<KimRoleInfo>> responsibilityRoles; |
53 | |
protected List<ResponsibilityForDisplay> exceptionResponsibilities; |
54 | 0 | protected boolean canInitiateDocumentTypeDocument = false; |
55 | 0 | protected boolean canInitiatePermissionDocument = false; |
56 | 0 | protected boolean canInitiateResponsibilityDocument = false; |
57 | |
|
58 | |
public Map<String, List<KimRoleInfo>> getPermissionRoles() { |
59 | 0 | return this.permissionRoles; |
60 | |
} |
61 | |
|
62 | |
public void setPermissionRoles(Map<String, List<KimRoleInfo>> permissionRoles) { |
63 | 0 | this.permissionRoles = permissionRoles; |
64 | 0 | } |
65 | |
|
66 | |
public String getDocumentTypeName() { |
67 | 0 | return this.documentTypeName; |
68 | |
} |
69 | |
|
70 | |
public void setDocumentTypeName(String documentTypeName) { |
71 | 0 | this.documentTypeName = documentTypeName; |
72 | 0 | } |
73 | |
|
74 | |
public DocumentType getDocumentType() { |
75 | 0 | return this.documentType; |
76 | |
} |
77 | |
|
78 | |
public void setDocumentType(DocumentType documentType) { |
79 | 0 | this.documentType = documentType; |
80 | 0 | } |
81 | |
|
82 | |
public DocumentType getParentDocumentType() { |
83 | 0 | return this.parentDocumentType; |
84 | |
} |
85 | |
|
86 | |
public void setParentDocumentType(DocumentType parentDocumentType) { |
87 | 0 | this.parentDocumentType = parentDocumentType; |
88 | 0 | } |
89 | |
|
90 | |
public List<DocumentType> getChildDocumentTypes() { |
91 | 0 | return this.childDocumentTypes; |
92 | |
} |
93 | |
|
94 | |
public void setChildDocumentTypes(List<DocumentType> childDocumentTypes) { |
95 | 0 | this.childDocumentTypes = childDocumentTypes; |
96 | 0 | } |
97 | |
|
98 | |
public Map<String, String> getAttributeLabels() { |
99 | 0 | return this.attributeLabels; |
100 | |
} |
101 | |
|
102 | |
public void setAttributeLabels(Map<String, String> attributeLabels) { |
103 | 0 | this.attributeLabels = attributeLabels; |
104 | 0 | } |
105 | |
|
106 | |
public List<RouteNode> getRouteNodes() { |
107 | 0 | return this.routeNodes; |
108 | |
} |
109 | |
|
110 | |
public void setRouteNodes(List<RouteNode> routeNodes) { |
111 | 0 | this.routeNodes = routeNodes; |
112 | 0 | } |
113 | |
|
114 | |
public Map<String, List<ResponsibilityForDisplay>> getResponsibilityMap() { |
115 | 0 | return this.responsibilityMap; |
116 | |
} |
117 | |
|
118 | |
public void setResponsibilityMap( |
119 | |
Map<String, List<ResponsibilityForDisplay>> responsibilityMap) { |
120 | 0 | this.responsibilityMap = responsibilityMap; |
121 | 0 | } |
122 | |
|
123 | |
public List<String> getDocTypeHierarchyList() { |
124 | 0 | return this.docTypeHierarchyList; |
125 | |
} |
126 | |
|
127 | |
public void setDocTypeHierarchyList(List<String> docTypeHierarchyList) { |
128 | 0 | this.docTypeHierarchyList = docTypeHierarchyList; |
129 | 0 | } |
130 | |
|
131 | |
public LinkedHashMap<String, List<PermissionForDisplay>> getPermissionsByDocumentType() { |
132 | 0 | return this.permissionsByDocumentType; |
133 | |
} |
134 | |
|
135 | |
public void setPermissionsByDocumentType( |
136 | |
LinkedHashMap<String, List<PermissionForDisplay>> permissionsByDocumentType) { |
137 | 0 | this.permissionsByDocumentType = permissionsByDocumentType; |
138 | 0 | } |
139 | |
|
140 | |
public void addDocumentType( String documentTypeName ) { |
141 | 0 | docTypeHierarchyList.add(documentTypeName); |
142 | 0 | } |
143 | |
|
144 | |
public void setPermissionsForDocumentType( String documentTypeName, List<PermissionForDisplay> perms ) { |
145 | 0 | permissionsByDocumentType.put(documentTypeName, perms); |
146 | 0 | } |
147 | |
|
148 | |
public boolean isCanInitiateDocumentTypeDocument() { |
149 | 0 | return this.canInitiateDocumentTypeDocument; |
150 | |
} |
151 | |
|
152 | |
public void setCanInitiateDocumentTypeDocument( |
153 | |
boolean canInitiateDocumentTypeDocument) { |
154 | 0 | this.canInitiateDocumentTypeDocument = canInitiateDocumentTypeDocument; |
155 | 0 | } |
156 | |
|
157 | |
public Map<String, List<KimRoleInfo>> getResponsibilityRoles() { |
158 | 0 | return this.responsibilityRoles; |
159 | |
} |
160 | |
|
161 | |
public void setResponsibilityRoles( |
162 | |
Map<String, List<KimRoleInfo>> responsibilityRoles) { |
163 | 0 | this.responsibilityRoles = responsibilityRoles; |
164 | 0 | } |
165 | |
|
166 | |
public boolean isCanInitiatePermissionDocument() { |
167 | 0 | return this.canInitiatePermissionDocument; |
168 | |
} |
169 | |
|
170 | |
public void setCanInitiatePermissionDocument( |
171 | |
boolean canInitiatePermissionDocument) { |
172 | 0 | this.canInitiatePermissionDocument = canInitiatePermissionDocument; |
173 | 0 | } |
174 | |
|
175 | |
public boolean isCanInitiateResponsibilityDocument() { |
176 | 0 | return this.canInitiateResponsibilityDocument; |
177 | |
} |
178 | |
|
179 | |
public void setCanInitiateResponsibilityDocument( |
180 | |
boolean canInitiateResponsibilityDocument) { |
181 | 0 | this.canInitiateResponsibilityDocument = canInitiateResponsibilityDocument; |
182 | 0 | } |
183 | |
|
184 | |
|
185 | |
|
186 | |
|
187 | |
public List<ResponsibilityForDisplay> getExceptionResponsibilities() { |
188 | 0 | return this.exceptionResponsibilities; |
189 | |
} |
190 | |
|
191 | |
|
192 | |
|
193 | |
|
194 | |
public void setExceptionResponsibilities( |
195 | |
List<ResponsibilityForDisplay> exceptionResponsibilities) { |
196 | 0 | this.exceptionResponsibilities = exceptionResponsibilities; |
197 | 0 | } |
198 | |
|
199 | |
} |