-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
216 lines (190 loc) · 12.4 KB
/
index.html
File metadata and controls
216 lines (190 loc) · 12.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<style>
.link {
stroke: #777;
stroke-opacity: 0.3;
stroke-width: 1.0px;
}
.node circle {
fill: #ccc;
stroke: #000;
stroke-width: 0px;
}
.node text {
display: none;
font: 10px sans-serif;
}
.node:hover circle {
fill: #000;
}
.node:hover text {
display: inline;
}
.cell {
fill: none;
pointer-events: all;
}
</style>
<body>
<!-- <script src="http://d3js.org/d3.v3.min.js"></script> -->
<script src="d3.v3.min.js"></script>
<script>
var width = 1200,
height = 1200;
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
var force = d3.layout.force()
.size([width, height]);
//d3.csv("out.csv", function(error, links2) {
var links = getData();
// if (error) throw error;
var nodesByName = {};
// Create nodes for each unique source and target.
links.forEach(function(link) {
link.source = nodeByName(link.source);
link.target = nodeByName(link.target);
});
// Extract the array of nodes from the map by name.
var nodes = d3.values(nodesByName);
// Create the link lines.
var link = svg.selectAll(".link")
.data(links)
.enter().append("line")
.attr("class", "link");
// Create the node circles.
var node = svg.selectAll(".node")
.data(nodes)
.enter().append("g")
.attr("class", "node")
.call(force.drag);
var circle = node.append("circle")
.attr("r", 4.5);
var label = node.append("text")
.attr("dy", ".35em")
.text(function(d) { return d.name; });
// Start the force layout.
force
.nodes(nodes)
.links(links)
.on("tick", tick)
.start();
function tick() {
link.attr("x1", function(d) { return d.source.x; })
.attr("y1", function(d) { return d.source.y; })
.attr("x2", function(d) { return d.target.x; })
.attr("y2", function(d) { return d.target.y; });
circle.attr("cx", function(d) { return d.x; })
.attr("cy", function(d) { return d.y; });
label
.attr("x", function(d) { return d.x + 8; })
.attr("y", function(d) { return d.y; });
}
function nodeByName(name) {
return nodesByName[name] || (nodesByName[name] = {name: name});
}
//});
function getData() {
return [
{ source : "AuthenticationProviderImpl_authenticate_authoritiesMapper", target : "ret_NullAuthoritiesMapper_<init>" },
{ source : "AuthenticationProviderImpl_authenticate_result", target : "ret_UsernamePasswordAuthenticationToken_<init>" },
{ source : "AuthenticationProviderImpl_authenticate_user", target : "ret_User_<init>" },
{ source : "AuthenticationProviderImpl_authenticate_username", target : "authentication" },
{ source : "AuthenticationRestServiceImpl_<init>_cacheUrls", target : "ret_SystemConfig_getValue" },
{ source : "AuthenticationRestServiceImpl_<init>_e", target : "ret_Integer_valueOf" },
{ source : "AuthenticationRestServiceImpl_<init>_e", target : "ret_SystemConfig_getIntValue" },
{ source : "AuthenticationRestServiceImpl_<init>_e", target : "this" },
{ source : "AuthenticationRestServiceImpl_<init>_keyAlias", target : "ret_C4LogMessage_operation" },
{ source : "AuthenticationRestServiceImpl_<init>_keyAlias", target : "ret_SystemConfig_getValue" },
{ source : "AuthenticationRestServiceImpl_<init>_keyStorePassword", target : "ret_SystemConfig_getValue" },
{ source : "AuthenticationRestServiceImpl_<init>_privateKeyPath", target : "ret_SystemConfig_getValue" },
{ source : "AuthenticationRestServiceImpl_authorizeAuthToken_clientAuthToken", target : "ret_AuthenticationRestServiceImpl_getWsAuthTokenExt" },
{ source : "AuthenticationRestServiceImpl_authorizeJWT_clientAuthToken", target : "ret_AuthenticationRestServiceImpl_getWsAuthTokenExt" },
{ source : "AuthorizationServlet_constructHeadersMap_headersMap", target : "ret_HashMap_<init>" },
{ source : "AuthorizationServlet_constructWsUserAgent_parameters", target : "ret_SimpleCache_get" },
{ source : "AuthorizationServlet_constructWsUserAgent_sessionCache", target : "ret_AuthorizationServlet_getSessionCache" },
{ source : "AuthorizationServlet_constructWsUserAgent_wsUserAgent", target : "ret_WsUserAgent_<init>" },
{ source : "AuthorizationServlet_decryptAttributes_authTokenEncryptionKey", target : "ret_SystemConfig_getValue" },
{ source : "AuthorizationServlet_decryptAttributes_message", target : "ret_Encryption_decryptUniqueString" },
{ source : "AuthorizationServlet_decryptAttributes_message", target : "ret_URLDecoder_decode" },
{ source : "AuthorizationServlet_decryptAttributes_paramArray", target : "ret_String_split" },
{ source : "AuthorizationServlet_decryptAttributes_parameters", target : "ret_HashMap_<init>" },
{ source : "AuthorizationServlet_doGet_appKey", target : "client_id" },
{ source : "AuthorizationServlet_doGet_arrCallbackUriFromConfig", target : "ret_StringBuilder_<init>" },
{ source : "AuthorizationServlet_doGet_arrCallbackUriFromConfig", target : "ret_String_split" },
{ source : "AuthorizationServlet_doGet_arrCallbackUriFromDb", target : "ret_String_split" },
{ source : "AuthorizationServlet_doGet_c4LogMessage", target : "ret_C4LogMessage_requestURI" },
{ source : "AuthorizationServlet_doGet_cookie", target : "ret_Cookie_<init>" },
{ source : "AuthorizationServlet_doGet_i", target : "ret_ApplicationUtility_getApplicationByAppKey" },
{ source : "AuthorizationServlet_doGet_i", target : "ret_ApplicationUtility_getApplicationPermissions" },
{ source : "AuthorizationServlet_doGet_i", target : "ret_AuthorizationServlet_getAdditionalRedirectUrisFromConfig" },
{ source : "AuthorizationServlet_doGet_i", target : "ret_String_substring" },
{ source : "AuthorizationServlet_doGet_keyValue", target : "getstatic_AuthorizationServlet_doGet_applicationUtility" },
{ source : "AuthorizationServlet_doGet_keyValue", target : "ret_AuthorizationServlet_handleError" },
{ source : "AuthorizationServlet_doGet_keyValue", target : "ret_WsApplication_getCallbackUrls" },
{ source : "AuthorizationServlet_doGet_permId", target : "ret_AuthorizationServlet_generateParameterMap" },
{ source : "AuthorizationServlet_doGet_redirectUri", target : "redirect_uri" },
{ source : "AuthorizationServlet_doGet_responseType", target : "response_type" },
{ source : "AuthorizationServlet_doGet_responseType", target : "ret_Log_info" },
{ source : "AuthorizationServlet_doGet_sessionId", target : "request" },
{ source : "AuthorizationServlet_doGet_state", target : "AuthorizationServlet_doGet_params" }, { source : "", target : "ret_String_split" },
{ source : "AuthorizationServlet_doGet_state", target : "ret_String_substring" },
{ source : "AuthorizationServlet_doGet_wsPermission", target : "ret_ApplicationUtility_getPermission" },
{ source : "AuthorizationServlet_doGet_wsPermission", target : "ret_AuthorizationServlet_getSessionCache" },
{ source : "AuthorizationServlet_doPost_c4LogMessage", target : "ret_AuthorizationServlet_createC4LogMessage" },
{ source : "AuthorizationServlet_doPost_payload", target : "ret_XmlUtil_toXml" },
{ source : "AuthorizationServlet_doPost_resp", target : "AuthorizationServlet_doPost_httpResponse" }, { source : "", target : "ret_HTTPClientUtil_post" },
{ source : "AuthorizationServlet_doPost_resp", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_doPost_resp", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_doPost_resp", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_doPost_responseStr", target : "ret_HTTPClientUtil_readResponse" },
{ source : "AuthorizationServlet_doPost_responseType", target : "ret_WsUserAgent_getResponseType" },
{ source : "AuthorizationServlet_doPost_sessionId", target : "ret_AuthorizationServlet_getSessionIdFromCookie" },
{ source : "AuthorizationServlet_doPost_state", target : "ret_WsUserAgent_getState" },
{ source : "AuthorizationServlet_doPost_wsAuthToken2", target : "ret_XmlUtil_fromXml" },
{ source : "AuthorizationServlet_doPost_wsUserAgent", target : "ret_AuthorizationServlet_constructWsUserAgent" },
{ source : "AuthorizationServlet_doPost_wsUserAgent", target : "ret_Log_info" },
{ source : "AuthorizationServlet_encryptAttributes_authTokenEncryptionKey", target : "ret_SystemConfig_getValue" },
{ source : "AuthorizationServlet_encryptAttributes_message", target : "ret_Encryption_encryptUniqueString" },
{ source : "AuthorizationServlet_encryptAttributes_message", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_encryptAttributes_nonce", target : "ret_CodeGenerator_generateCode" },
{ source : "AuthorizationServlet_formatErrorWithDealerInfo_appName", target : "ret_WsApplication_getAppName" },
{ source : "AuthorizationServlet_formatErrorWithDealerInfo_appName", target : "this application" },
{ source : "AuthorizationServlet_formatErrorWithDealerInfo_c4LogMessage", target : "ret_AuthorizationServlet_createC4LogMessage" },
{ source : "AuthorizationServlet_formatErrorWithDealerInfo_dealerInfo", target : "AuthorizationServlet_formatErrorWithDealerInfo_message" }, { source : "", target : "ret_String_format" },
{ source : "AuthorizationServlet_formatErrorWithDealerInfo_wsApplication", target : "ret_ApplicationUtility_getApplicationByAppKey" },
{ source : "AuthorizationServlet_generateParameterAttributes_message", target : "AuthorizationServlet_generateParameterAttributes_message" }, { source : "", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_generateParameterAttributes_message", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_generateParameterAttributes_message", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_generateParameterAttributes_message", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_generateParameterAttributes_message", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_generateParameterAttributes_message", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_generateParameterMap_parameters", target : "ret_HashMap_<init>" },
{ source : "AuthorizationServlet_getApplicationClient_client", target : "constant_1" },
{ source : "AuthorizationServlet_getApplicationClient_client", target : "ret_WebClient_client" },
{ source : "AuthorizationServlet_getErrorHTTPResponse_args", target : "new_array" },
{ source : "AuthorizationServlet_getErrorHTTPResponse_c4ErrorResponse", target : "ret_XmlUtil_fromXml" },
{ source : "AuthorizationServlet_getErrorHTTPResponse_errorMap", target : "ret_AuthorizationServlet_getErrorMappings" },
{ source : "AuthorizationServlet_getErrorHTTPResponse_errorMessage", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_getErrorHTTPResponse_message", target : "Unknown Error has occurred. Please try again later." },
{ source : "AuthorizationServlet_getErrorHTTPResponse_message", target : "ret_Method_invoke" },
{ source : "AuthorizationServlet_getErrorHTTPResponse_sb", target : "ret_StringBuilder_<init>" },
{ source : "AuthorizationServlet_getErrorMappings_eMap", target : "ret_HashMap_<init>" },
{ source : "AuthorizationServlet_getForgetPasswordLink_s", target : "Hello1" },
{ source : "AuthorizationServlet_getForgetPasswordLink_s2", target : "Hello1" },
{ source : "AuthorizationServlet_getForgetPasswordLink_s3", target : "Hello1" },
{ source : "AuthorizationServlet_getForgetPasswordLink_s4", target : "Hello1" },
{ source : "AuthorizationServlet_getMethod_args", target : "new_array" },
{ source : "AuthorizationServlet_getMethod_args", target : "ret_Object_getClass" },
{ source : "AuthorizationServlet_getMethod_retVal", target : "ret_Class_getDeclaredMethod" },
{ source : "AuthorizationServlet_getSessionCache_cacheUrls", target : "ret_SystemConfig_getValue" },
{ source : "AuthorizationServlet_getSessionCache_e", target : "new_object::SimpleCache" },
{ source : "AuthorizationServlet_getSessionIdFromCookie_cookies", target : "request" },
{ source : "AuthorizationServlet_getSessionIdFromCookie_sessionId", target : "ret_Cookie_getValue" },
{ source : "AuthorizationServlet_handleError_e", target : "ret_StringBuilder_toString" },
{ source : "AuthorizationServlet_isValidRequest_clientId", target : "client_id" },
{ source : "AuthorizationServlet_isValidRequest_redirectURL", target : "redirect_uri" },
{ source : "AuthorizationServlet_isValidRequest_responseType", target : "response_type" },
{ source : "ret_add", target : "constant_1" },
];
}
</script>