Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableDictionary.takeValueForKey()


            NSDictionary site = new NSDictionary(_Config.values());
            requestTypeDict.takeValueForKey(site, "site");
        }
        if (_Host != null) {
            NSArray hostArray = new NSArray(_Host.values());
            requestTypeDict.takeValueForKey(hostArray, "hostArray");
        }
        if (_Application != null) {
            NSArray applicationArray = new NSArray(_Application.values());
            requestTypeDict.takeValueForKey(applicationArray, "applicationArray");
        }
View Full Code Here


            NSArray hostArray = new NSArray(_Host.values());
            requestTypeDict.takeValueForKey(hostArray, "hostArray");
        }
        if (_Application != null) {
            NSArray applicationArray = new NSArray(_Application.values());
            requestTypeDict.takeValueForKey(applicationArray, "applicationArray");
        }
        if (_InstanceArray != null) {
            int instanceCount = _InstanceArray.count();
            NSMutableArray instanceArray = new NSMutableArray(instanceCount);
            for (int i = 0; i < instanceCount; i++) {
View Full Code Here

            NSMutableArray instanceArray = new NSMutableArray(instanceCount);
            for (int i = 0; i < instanceCount; i++) {
                MInstance anInst = (MInstance) _InstanceArray.objectAtIndex(i);
                instanceArray.addObject(anInst.values());
            }
            requestTypeDict.takeValueForKey(instanceArray, "instanceArray");
        }

        updateWotaskd.takeValueForKey(requestTypeDict, requestType);
        monitorRequest.takeValueForKey(updateWotaskd, "updateWotaskd");
View Full Code Here

            for (int i = 0; i < instanceCount; i++) {
                MInstance anInst = (MInstance) instanceArray.objectAtIndex(i);
                commandWotaskd.addObject(new NSDictionary(new Object[] { anInst.applicationName(), anInst.id(),
                        anInst.hostName(), anInst.port() }, commandInstanceKeys));
            }
            monitorRequest.takeValueForKey(commandWotaskd, "commandWotaskd");

            WOResponse[] responses = collector.sendRequest(monitorRequest, wotaskdArray, false);
            NSDictionary[] responseDicts = collector.generateResponseDictionaries(responses);
            if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment)) {
                NSLog.debug.appendln("OUT: " + NSPropertyListSerialization.stringFromPropertyList(monitorRequest) + "\n\nIN: " +  NSPropertyListSerialization.stringFromPropertyList(new NSArray(responseDicts)));
View Full Code Here

          if(updateContainerID == null) {
            onClickBuffer.append("new Request(");
            AjaxOptions.appendToBuffer(options, onClickBuffer, context);
            onClickBuffer.append(").send();");
          } else {
            options.takeValueForKey("'" + updateContainerID + "'", "update");
            onClickBuffer.append("new Request.HTML(");
            AjaxOptions.appendToBuffer(options, onClickBuffer, context);
            onClickBuffer.append(").send();");
          }
        } else {
View Full Code Here

            onClickBuffer.append("new Request.HTML(");
            AjaxOptions.appendToBuffer(options, onClickBuffer, context);
            onClickBuffer.append(").send();");
          }
        } else {
          options.takeValueForKey("'" + replaceID + "'", "update");
          onClickBuffer.append("new Request.HTML(");
          AjaxOptions.appendToBuffer(options, onClickBuffer, context);
          onClickBuffer.append(").send();");
        }
      }
View Full Code Here

                NSDictionary configureDict = (NSDictionary) updateWotaskdDict.valueForKey("configure");

                if (clearString != null) {
                    stopAllInstances();
                    ( (Application) WOApplication.application()).setSiteConfig(new MSiteConfig(null));
                    updateWotaskdResponse.takeValueForKey(successElement, "clear");
                } else if (overwriteDict != null) {
                    stopAllInstances();
                    ( (Application) WOApplication.application()).setSiteConfig(new MSiteConfig((NSDictionary) overwriteDict.valueForKey("SiteConfig")));
                    updateWotaskdResponse.takeValueForKey(successElement, "overwrite");
                } else if (syncDict != null) {
View Full Code Here

                    ( (Application) WOApplication.application()).setSiteConfig(new MSiteConfig(null));
                    updateWotaskdResponse.takeValueForKey(successElement, "clear");
                } else if (overwriteDict != null) {
                    stopAllInstances();
                    ( (Application) WOApplication.application()).setSiteConfig(new MSiteConfig((NSDictionary) overwriteDict.valueForKey("SiteConfig")));
                    updateWotaskdResponse.takeValueForKey(successElement, "overwrite");
                } else if (syncDict != null) {
                    NSDictionary newConfig = (NSDictionary) syncDict.valueForKey("SiteConfig");
                    syncSiteConfig(newConfig);
                } else {
                    if (removeDict != null) {
View Full Code Here

                                        aConfig.removeHost_W(anMHost);
                                    }
                                    hostArrayResponse.addObject(successElement);
                                }
                            }
                            removeResponse.takeValueForKey(hostArrayResponse, "hostArray");
                        }
                        if (applicationArray != null) {
                            NSMutableArray applicationArrayResponse = new NSMutableArray(applicationArray.count());

                            // update-remove - for each application listed - applicationWithName + removeApplication_W
View Full Code Here

                                } else {
                                    aConfig.removeApplication_W(aConfig.applicationWithName(name));
                                    applicationArrayResponse.addObject(successElement);
                                }
                            }
                            removeResponse.takeValueForKey(applicationArrayResponse, "applicationArray");
                        }
                        if (instanceArray != null) {
                            NSMutableArray instanceArrayResponse = new NSMutableArray(instanceArray.count());

                            // update-remove - for each instance listed - instanceWithHostnameAndPort + removeInstance_W
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.