Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSDictionary.valueForKey()


    private String retrieveFileList() {
        try {
            NSDictionary aDict = RemoteBrowseClient.fileListForStartingPathHost(startingPath, host, showFiles);
            _fileList = (NSArray) aDict.valueForKey("fileArray");
            isRoots = (aDict.valueForKey("isRoots") != null) ? true : false;
            startingPath = (String) aDict.valueForKey("filepath");
            errorMsg = null;
        } catch (MonitorException me) {
            if (isRoots)
                startingPath = null;
View Full Code Here


    private String retrieveFileList() {
        try {
            NSDictionary aDict = RemoteBrowseClient.fileListForStartingPathHost(startingPath, host, showFiles);
            _fileList = (NSArray) aDict.valueForKey("fileArray");
            isRoots = (aDict.valueForKey("isRoots") != null) ? true : false;
            startingPath = (String) aDict.valueForKey("filepath");
            errorMsg = null;
        } catch (MonitorException me) {
            if (isRoots)
                startingPath = null;
            NSLog.err.appendln("Path Wizard Error: " + me.getMessage());
View Full Code Here

    public String displayValueForNull() {
      Object obj = d2wContext().valueForKey("displayValueForNull"); // (1) try Rule
      if(obj == null) {
        NSDictionary ui = d2wContext().attribute().userInfo();
        if(ui != null) {
          obj = ui.valueForKey("displayValueForNull"); // (2) try UserInfo
        }
      }
      return (obj == null) ? null : String.valueOf(obj);    
    }   
}
View Full Code Here

    public String passwordPropertyKey() {
        String passwordPropertyKey = null;
        NSDictionary userInfo = (NSDictionary) ERXWOContext.contextDictionary().objectForKey("ERDEditPassword");
        if(userInfo != null) {
            passwordPropertyKey = (String) userInfo.valueForKey(ERDEditPassword.passwordPropertyKey);
        }
        if(passwordPropertyKey == null) {
            throw new IllegalStateException("Can't find the passwordPropertyKey. There needs to be a ERDEditPassword component on this page and its 'passwordConfirmationValidates' needs to be true for this component to work.");
        }
        return passwordPropertyKey;
View Full Code Here

  public void publishChange(NSNotification n) {
    boolean processingMulticastNotifications = ERXObjectStoreCoordinatorSynchronizer.isProcessingRemoteNotifications();
    if (_coordinators.count() > 1 || (_remoteSynchronizer != null && !processingMulticastNotifications)) {
      EOObjectStoreCoordinator osc = (EOObjectStoreCoordinator) n.object();
      NSDictionary userInfo = n.userInfo();
      if (userInfo == null || userInfo.valueForKey(ERXObjectStoreCoordinatorSynchronizer.SYNCHRONIZER_KEY) == null) {
        LocalChange changes = new LocalChange(osc, userInfo, processingMulticastNotifications);
        _queue.addChange(changes);
      }
    }
  }
View Full Code Here

                System.err.println("Qualifier : " + qualifier);
            }
            if (log.isDebugEnabled())
                log.debug("DelayedConditonalQualifier: " + qualifier);
            if (qualifier.evaluateWithObject(c)) {
                result = switchDictionary.valueForKey(switchKey);
                log.debug("result = " + result);
                break;
            }           
        }
        if(result == null){
View Full Code Here

                log.debug("result = " + result);
                break;
            }           
        }
        if(result == null){
            result = switchDictionary.valueForKey("defaultValueForAssignement");
        }
        return result;
    }
}
View Full Code Here

        if (updateWotaskdDict != null) {
            theApplication._lock.startWriting();
            try {
                NSMutableDictionary updateWotaskdResponse = new NSMutableDictionary(2);

                String clearString = (String) updateWotaskdDict.valueForKey("clear");
                NSDictionary overwriteDict = (NSDictionary) updateWotaskdDict.valueForKey("overwrite");
                NSDictionary syncDict = (NSDictionary) updateWotaskdDict.valueForKey("sync");
                NSDictionary removeDict = (NSDictionary) updateWotaskdDict.valueForKey("remove");
                NSDictionary addDict = (NSDictionary) updateWotaskdDict.valueForKey("add");
                NSDictionary configureDict = (NSDictionary) updateWotaskdDict.valueForKey("configure");
View Full Code Here

                            NSMutableArray hostArrayResponse = new NSMutableArray(hostArray.count());

                            // update-remove - for each host listed - hostWithName + (stopAllInstances/new siteConfig) | removeHost_W
                            for (Enumeration e = hostArray.objectEnumerator(); e.hasMoreElements(); ) {
                                NSDictionary aHost = (NSDictionary) e.nextElement();
                                String name = (String) aHost.valueForKey("name");
                                MHost anMHost = aConfig.hostWithName(name);
                                if (anMHost == null) {
                                    element = new NSDictionary(new Object[]{Boolean.FALSE, _hostName + ": Host " +name+ " not found; REMOVE failed"}, errorKeys);
                                    hostArrayResponse.addObject(element);
                                } else {
View Full Code Here

                            NSMutableArray applicationArrayResponse = new NSMutableArray(applicationArray.count());

                            // update-remove - for each application listed - applicationWithName + removeApplication_W
                            for (Enumeration e = applicationArray.objectEnumerator(); e.hasMoreElements(); ) {
                                NSDictionary anApp = (NSDictionary) e.nextElement();
                                String name = (String) anApp.valueForKey("name");
                                MApplication anMApplication = aConfig.applicationWithName(name);
                                if (anMApplication == null) {
                                    element = new NSDictionary(new Object[]{Boolean.FALSE, _hostName + ": Application " +name+ " not found; REMOVE failed"}, errorKeys);
                                    applicationArrayResponse.addObject(element);
                                } else {
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.