Searched defs:ar (Results 1 - 10 of 10) sorted by relevance

/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/resources/
H A DMonitoringResource.java98 RestActionReporter ar = new RestActionReporter();
99 ar.setActionDescription("Monitoring Data");
100 ar.setMessage("");
101 ar.setSuccess();
137 constructEntity(list, ar);
138 responseBuilder.entity(new ActionReportResult(ar));
142 responseBuilder.entity(new ActionReportResult(ar));
149 ar.setExtraProperties(proxiedResponse);
150 responseBuilder.entity(new ActionReportResult(ar));
158 constructEntity(list, ar);
175 constructEntity(List<TreeNode> nodeList, RestActionReporter ar) argument
[all...]
H A DTemplateListOfResource.java271 RestActionReporter ar = new RestActionReporter();
273 ar.setActionDescription(typeKey);
280 ResourceUtil.addMethodMetaData(ar, mmd);
281 ar.getExtraProperties().put("childResources", ResourceUtil.getResourceLinks(getEntity(), uriInfo));
282 ar.getExtraProperties().put("commands", ResourceUtil.getCommandLinks(getCommandResourcesPaths()));
286 return new ActionReportResult(ar, optionsResult);
391 private String getErrorMessage(HashMap<String, String> data, ActionReport ar) { argument
394 message = ar.getMessage();
399 message = ar.getTopMessagePart().getChildren().get(0).getMessage();
401 message = ar
[all...]
H A DCollectionLeafResource.java218 RestActionReporter ar = new RestActionReporter();
220 ar.setActionDescription(typeKey);
221 ar.getExtraProperties().put("leafList", getEntity());
228 ResourceUtil.addMethodMetaData(ar, mmd);
229 return new ActionReportResult(ar, optionsResult);
312 private String getErrorMessage(Map<String, String> data, ActionReport ar) { argument
313 String message = ar.getMessage();
318 message = ar.getTopMessagePart().getChildren().get(0).getMessage();
320 message = ar.getMessage();
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/provider/
H A DActionReportResultHtmlProvider.java78 RestActionReporter ar = (RestActionReporter) proxy.getActionReport();
80 String message = ar.getCombinedMessage();
86 result.append("<h2>").append(ar.getActionDescription()).append(" Error:</h2>")
89 final Map<String, String> childResources = (Map<String, String>) ar.getExtraProperties().get("childResources");
90 final List<Map<String, String>> commands = (List<Map<String, String>>) ar.getExtraProperties().get("commands");
98 result.append(processReport(ar));
104 result.append(getHtmlForComponent(postCommand, "Create " + ar.getActionDescription(), ""));
108 result.append(getHtmlForComponent(deleteCommand, "Delete " + ar.getActionDescription(), ""));
112 result.append(getHtmlForComponent(getCommand, "Get " + ar.getActionDescription(), ""));
116 result.append(ProviderUtil.getHtmlForComponent(attributes, ar
253 processReport(ActionReporter ar) argument
[all...]
H A DActionReportResultJsonProvider.java70 RestActionReporter ar = (RestActionReporter)proxy.getActionReport();
73 JSONObject result = processReport(ar);
93 protected JSONObject processReport(ActionReporter ar) throws JSONException { argument
95 result.put("message", (ar instanceof RestActionReporter) ? ((RestActionReporter)ar).getCombinedMessage() : ar.getMessage());
96 result.put("command", ar.getActionDescription());
97 result.put("exit_code", ar.getActionExitCode());
99 Properties properties = ar.getTopMessagePart().getProps();
104 Properties extraProperties = ar
196 getFieldValue(ActionReporter ar, String name, T type) argument
[all...]
H A DActionReportResultXmlProvider.java68 ActionReporter ar = (ActionReporter)proxy.getActionReport();
69 XmlObject result = processReport(ar);
73 protected XmlObject processReport(ActionReporter ar) { argument
75 result.put("message", (ar instanceof RestActionReporter) ? ((RestActionReporter)ar).getCombinedMessage() : ar.getMessage());
76 result.put("command", ar.getActionDescription());
77 result.put("exit_code", ar.getActionExitCode().toString());
79 Properties properties = ar.getTopMessagePart().getProps();
84 Properties extraProperties = ar
[all...]
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/common/
H A DActionReporter.java268 private static boolean has(ActionReporter ar, ExitCode value) { argument
269 if (null != ar.exitCode && ar.exitCode.equals(value)) {
273 q.addAll(ar.subActions);
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/admin/
H A DCommandRunnerImpl.java1278 private void setReport(ActionReport ar) { argument
1279 report = ar;
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/
H A DResourceUtil.java212 RestActionReporter ar = new RestActionReporter();
214 cr.getCommandInvocation(commandName, ar).parameters(parameters).execute();
215 return ar;
550 RestActionReporter ar = new RestActionReporter();
551 ActionReportResult result = new ActionReportResult(ar);
558 ar.setActionExitCode(status);
559 ar.setMessage(message);
958 public static void addMethodMetaData(ActionReport ar, Map<String, MethodMetaData> mmd) { argument
993 ar.getExtraProperties().put("methods", methodMetaData);
/glassfish-3.1.2/admin/config-api/src/main/java/org/glassfish/config/support/
H A DDefaultConfigUpgrade.java1030 AuthRealm ar = ss.createChild(AuthRealm.class);
1031 ss.getAuthRealm().add(ar);
1036 ar.setClassname(val);
1039 ar.setName(val);
1043 createAuthRealmProperty(ar);
1056 private void createAuthRealmProperty(AuthRealm ar) throws PropertyVetoException { argument
1062 if (parser.getLocalName().equals("property") && ar != null) {
1063 Property p = ar.createChild(Property.class);
1064 ar.getProperty().add(p);

Completed in 34 milliseconds