Examples of userInfo()


Examples of com.google.api.services.oauth2.Oauth2.userinfo()

        GoogleRequest<Userinfo> googleRequest = new GoogleRequest<Userinfo>() {

            @Override
            protected Userinfo invokeRequest(GoogleAccessTokenContext accessTokenContext) throws IOException {
                return oauth2.userinfo().v2().me().get().execute();
            }

            @Override
            protected OAuthException createException(IOException cause) {
                if (cause instanceof HttpResponseException) {
View Full Code Here

Examples of com.webobjects.appserver.WORequest.userInfo()

  @Override
  @SuppressWarnings("unchecked")
  public WOAction getActionInstance(Class class1, Class[] aclass, Object[] aobj) {
    ERXRouteController controller = (ERXRouteController) super.getActionInstance(class1, aclass, aobj);
    WORequest request = (WORequest) aobj[0];
    setupRouteControllerFromUserInfo(controller, request.userInfo());
    return controller;
  }

  /**
   * Returns the corresponding controller instance.
View Full Code Here

Examples of com.webobjects.appserver.WOResponse.userInfo()

        response = (AjaxResponse) existingResponse;
      }
      else {
        response = new AjaxResponse(request, context);
        response.setHeaders(existingResponse.headers());
        response.setUserInfo(existingResponse.userInfo());
        response.appendContentString(existingResponse.contentString());
      }
    }
    if (response == null) {
      response = new AjaxResponse(request, context);
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.userInfo()

    }
    NSMutableArray mutableClassProperties = classProperties.mutableClone();
    NSMutableArray mutableAttributesUsedForLocking = attributesUsedForLocking.mutableClone();
    for (Enumeration e = attributes.objectEnumerator(); e.hasMoreElements();) {
      EOAttribute attribute = (EOAttribute) e.nextElement();
      NSDictionary userInfo = attribute.userInfo();
      String name = attribute.name();
      if (userInfo != null) {
        Object l = userInfo.valueForKey("ERXLanguages");
        if (l != null && !(l instanceof NSArray)) {
          l = (entity.model().userInfo() != null ? entity.model().userInfo().valueForKey("ERXLanguages") : null);
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.userInfo()

    }
    NSMutableArray mutableClassProperties = classProperties.mutableClone();
    NSMutableArray mutableAttributesUsedForLocking = attributesUsedForLocking.mutableClone();
    for (Enumeration e = attributes.objectEnumerator(); e.hasMoreElements();) {
      EOAttribute attribute = (EOAttribute) e.nextElement();
      NSDictionary userInfo = attribute.userInfo();
      String name = attribute.name();
      if (userInfo != null) {
        Object l = userInfo.valueForKey("ERXLanguages");
        if (l != null && !(l instanceof NSArray)) {
          l = (entity.model().userInfo() != null ? entity.model().userInfo().valueForKey("ERXLanguages") : null);
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.userInfo()

      ERXEntityClassDescription ecd = (ERXEntityClassDescription) cd;
      EOAttribute attribute = ecd.entity().attributeNamed(key);
      if (attribute == null) {
        attribute = ecd.entity().attributeNamed(localizedKey(key));
      }
      return (NSArray<String>) attribute.userInfo().objectForKey("ERXLanguages");
    }
    return result;
  }

  /**
 
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.userInfo()

            for( Enumeration e = entity.attributes().objectEnumerator(); e.hasMoreElements();) {
                EOAttribute attr = (EOAttribute)e.nextElement();
                String defaultValue = null;

                if(attr.userInfo() != null)
                    defaultValue = (String)attr.userInfo().objectForKey(defaultKey);

                if(defaultValue == null && entityInfo != null) {
                    defaultValue = (String)entityInfo.objectForKey(attr.name());
                }
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.userInfo()

            for( Enumeration e = entity.attributes().objectEnumerator(); e.hasMoreElements();) {
                EOAttribute attr = (EOAttribute)e.nextElement();
                String defaultValue = null;

                if(attr.userInfo() != null)
                    defaultValue = (String)attr.userInfo().objectForKey(defaultKey);

                if(defaultValue == null && entityInfo != null) {
                    defaultValue = (String)entityInfo.objectForKey(attr.name());
                }
                if(defaultValue != null)
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.userInfo()

    }

  @Override
  public Class _enforcedKVCNumberClassForKey(String key) {
    EOAttribute attribute = entity().attributeNamed(key);
    if(attribute != null && attribute.userInfo() != null) {
      String className = (String) attribute.userInfo().objectForKey("ERXConstantClassName");
      if(className != null) {
                Class c = ERXPatcher.classForName(className);
        return c;
      }
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.userInfo()

  @Override
  public Class _enforcedKVCNumberClassForKey(String key) {
    EOAttribute attribute = entity().attributeNamed(key);
    if(attribute != null && attribute.userInfo() != null) {
      String className = (String) attribute.userInfo().objectForKey("ERXConstantClassName");
      if(className != null) {
                Class c = ERXPatcher.classForName(className);
        return c;
      }
    }
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.