Beispiel #1
0
def get_app_list(request, servers, server_type):
    if servers:
        filters = construct_filters(servers)
        if server_type == 'OC4J':
            return HttpResponse(oc4j_app_list(request.user, filters, 'ear'))
        elif server_type == 'WebLogic':
            return HttpResponse(weblo_app_list(request.user, filters, 'ear'))
    else:
        return HttpResponse('')
Beispiel #2
0
def get_app_list(request, servers, server_type):
    if servers:
        filters = construct_filters(servers)
        if server_type == 'OC4J':
            return HttpResponse(oc4j_app_list(request.user, filters, 'ear'))
        elif server_type == 'WebLogic':
            return HttpResponse(weblo_app_list(request.user, filters, 'ear'))
    else:
        return HttpResponse('')
Beispiel #3
0
def get_app_list(request, servers, server_type):
    if servers:
        if server_type == 'OC4J':
            filters = construct_filters(servers, "a7xoas")
            if filters:
                return HttpResponse(oc4j_app_list(request.user, filters, 'ear'))
            else:
                return HttpResponse(json.dumps({"errors":"Server(s) selected does not have OC4J agent installed"}))
        elif server_type == 'WebLogic':
            filters = construct_filters(servers, "a7xows")
            if filters:
                return HttpResponse(weblo_app_list(request.user, filters, 'ear'))
            else:
                return HttpResponse(json.dumps({"errors":"Server(s) selected does not have WebLogic agent installed"}))
        elif server_type == 'JBoss':
            filters = construct_filters(servers, "jboss")
            if filters:
                return HttpResponse(jboss_app_list(request.user, filters, 'ear'))
            else:
                return HttpResponse(json.dumps({"errors":"Server(s) selected does not have WebLogic agent installed"}))
    else:
        return HttpResponse('')
Beispiel #4
0
def get_app_list(request, servers, server_type):
    if servers:
        if server_type == 'OC4J':
            filters = construct_filters(servers, "a7xoas")
            if filters:
                return HttpResponse(oc4j_app_list(request.user, filters, 'ear'))
            else:
                return HttpResponse(json.dumps({"errors":"Server(s) selected does not have OC4J agent installed"}))
        elif server_type == 'WebLogic':
            filters = construct_filters(servers, "a7xows")
            if filters:
                return HttpResponse(weblo_app_list(request.user, filters, 'ear'))
            else:
                return HttpResponse(json.dumps({"errors":"Server(s) selected does not have WebLogic agent installed"}))
        elif server_type == 'JBoss':
            filters = construct_filters(servers, "jboss")
            if filters:
                return HttpResponse(jboss_app_list(request.user, filters, 'ear'))
            else:
                return HttpResponse(json.dumps({"errors":"Server(s) selected does not have WebLogic agent installed"}))
    else:
        return HttpResponse('')