Package com.ibm.sbt.opensocial.domino.container

Examples of com.ibm.sbt.opensocial.domino.container.ContainerExtPoint


  }

  @Override
  public HttpResponse fetch(HttpRequest request) throws GadgetException {
    String container = request.getContainer();
    ContainerExtPoint extpt = manager.getExtPoint(container);
    if(extpt != null) {
      OpenSocialContainerConfig config = extpt.getContainerConfig();
      Object allowedObj = config.getProperties().get(
          OpenSocialContainerConfig.ALLOW_UNTRUSTED_SSL_CONNECTIONS);
      if(allowedObj instanceof Boolean) {
        Boolean allowed = (Boolean)allowedObj;
        if(allowed) {
View Full Code Here


    return ret;
  }

  private DominoOAuth2Store getOAuth2Store(String container) throws GadgetException {
    final String method = "getOAuth2Store";
    ContainerExtPoint extPoint = manager.getExtPoint(container);
    if(extPoint != null) {
      try {
        return extPoint.getContainerOAuth2Store();
      } catch (ContainerExtPointException e) {
        log.logp(Level.WARNING, CLASS, method, "There was an error getting the OAuth2Store for container " + container, e);
        throw new GadgetException(GadgetException.Code.OAUTH_STORAGE_ERROR,
            "There was an error getting the OAuth2Store for container " + container, e);
      }
View Full Code Here

      String serviceName, OAuthServiceProvider provider)
      throws GadgetException {
    if(securityToken.isAnonymous() || "@anonymous".equals(securityToken.getViewerId())) {
      throw new GadgetException(Code.INVALID_SECURITY_TOKEN, "Anonymous users cannot use OAuth in gadgets");
    }
    ContainerExtPoint extPoint = getContainerExtPoint(securityToken.getContainer());
    DominoOAuthStore store = null;
    try {
      store = extPoint.getContainerOAuthStore();
    } catch (ContainerExtPointException e) {
      throw new GadgetException(GadgetException.Code.INTERNAL_SERVER_ERROR,
          "Exception thrown when getting the DominoOAuthStore for the container " + securityToken.getContainer());
    }
    if(store == null) {
View Full Code Here

      }
      return callback;
  }
 
  private ContainerExtPoint getContainerExtPoint(String container) throws GadgetException {
    ContainerExtPoint extPoint = extPointManager.getExtPoint(container);
    if(extPoint == null) {
      throw new GadgetException(Code.OAUTH_STORAGE_ERROR,
          "No container extension point could be found for the container with the name " + container +
          ".");
    }
View Full Code Here

TOP

Related Classes of com.ibm.sbt.opensocial.domino.container.ContainerExtPoint

Copyright © 2018 www.massapicom. 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.