use of com.dexels.navajo.script.api.MappableTreeNode in project navajo by Dexels.
the class AccessMap method store.
@Override
public void store() throws MappableException, UserException {
if (showDetails) {
try {
Message user = getMessage(null, "User");
addProperty(user, "Starttime", getCreated(), Property.DATE_PROPERTY, 10);
addProperty(user, "Totaltime", Integer.valueOf(getTotaltime()), Property.INTEGER_PROPERTY, 10);
addProperty(user, "ClientIP", getIpAddress(), Property.STRING_PROPERTY, 50);
addProperty(user, "ClientHostname", getHost(), Property.STRING_PROPERTY, 50);
addProperty(user, "User", myAccess.rpcUser, Property.STRING_PROPERTY, 50);
addProperty(user, "Webservice", myAccess.rpcName, Property.STRING_PROPERTY, 50);
addProperty(user, "AccessId", myAccess.accessID, Property.STRING_PROPERTY, 50);
addProperty(user, "Stacktrace", myAccess.getCompiledScript().getStackTrace(), Property.MEMO_PROPERTY, 4096);
Message currentMapMessage = getMessage(user, "CurrentMap");
MappableTreeNode currentNode = getCurrentMap();
if (currentNode != null) {
showMapDetails(currentMapMessage, currentNode);
}
Message requestNavajoMessage = getMessage(user, "RequestNavajo");
addProperty(requestNavajoMessage, "Document", getRequestNavajo(), Property.MEMO_PROPERTY, -1);
Message responseNavajoMessage = getMessage(user, "ResponseNavajo");
addProperty(responseNavajoMessage, "Document", getResponseNavajo(), Property.MEMO_PROPERTY, -1);
Message outMessagStack = getMessage(user, "OutMessageStack");
addProperty(outMessagStack, "Stack", getOutMessageStack(), Property.STRING_PROPERTY, -1);
Message mapStack = getMessage(user, "MapObjectStack");
addProperty(mapStack, "Stack", getMapStack(), Property.STRING_PROPERTY, -1);
} catch (Exception ne) {
logger.error("Error: ", ne);
}
}
}
Aggregations