Package com.google.enterprise.connector.spiimpl

Examples of com.google.enterprise.connector.spiimpl.ValueImpl.toBoolean()


          SpiConstants.PROPNAME_ISPUBLIC);
    } catch (RepositoryException ex) {
      LOGGER.log(Level.WARNING, "Failed retrieving isPublic property", ex);
      return HttpServletResponse.SC_SERVICE_UNAVAILABLE;
    }
    boolean isPublic = isPublicVal == null || isPublicVal.toBoolean();

    if (isSecurityHeaderSupported()) {
      res.setHeader("X-Gsa-Serve-Security", isPublic ? "public" : "secure");
      return HttpServletResponse.SC_OK;
    } else {
View Full Code Here


    try {
      ValueImpl v = (ValueImpl) Value.getSingleValue(document,
          SpiConstants.PROPNAME_ISPUBLIC);
      if (v != null) {
        boolean isPublic = v.toBoolean();
        if (!isPublic) {
          String authmethod = DocUtils.getOptionalString(document,
              SpiConstants.PROPNAME_AUTHMETHOD);
          if (Strings.isNullOrEmpty(authmethod)){
            authmethod = CONNECTOR_AUTHMETHOD;
View Full Code Here

      LOGGER.log(Level.WARNING, "Swallowing exception while accessing " + name,
          e);
      return defaultBool;
    }
    if (v != null) {
      return v.toBoolean();
    }
    return defaultBool;
  }

  /**
 
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.