Examples of SharepointException


Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

    try {
      stub = (UserProfileServiceSoap_BindingStub) service.getUserProfileServiceSoap();
    } catch (final ServiceException e) {
      LOGGER.log(Level.WARNING, e.getMessage(), e);
      throw new SharepointException("Unable to create the userprofile stub.");
    }
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

    try {
      stub = (GssAclMonitorSoap_BindingStub) service.getGssAclMonitorSoap();
    } catch (final ServiceException e) {
      LOGGER.log(Level.WARNING, e.getMessage(), e);
      throw new SharepointException("Unable to create GssAcl stub.");
    }
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

   * @throws SharepointException
   */
  public AclHelper(final SharepointClientContext inSharepointClientContext,
      String siteurl) throws SharepointException {
    if (null == inSharepointClientContext) {
      throw new SharepointException("SharePointClient context cannot be null ");
    }
    sharepointClientContext = inSharepointClientContext;
    if (null == siteurl) {
      siteurl = sharepointClientContext.getSiteURL();
    }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

        errorFetchingAcls[0] = e;
      }
    });
   
    if (errorFetchingAcls[0] != null) {
      throw new SharepointException("Error fetching ACLs for batch.",
          errorFetchingAcls[0]);
    }
    return aclResult;
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

        status = getSimpleJdbcTemplate().update(getSqlQuery(query), parameters);
      } catch (DataIntegrityViolationException e) {
        LOGGER.log(Level.FINE, "Connector name " + connectorName
            + "already exists in connector names table.", e);
      } catch (Throwable e) {
        throw new SharepointException(
            "Failed to add the record for parameter [" + connectorName + "]", e);
      }
      if (status == 1) {
        LOGGER.log(Level.INFO, "Sucessfully inserted the connector name ["
            + connectorName + "] using the query [ " + query + " ]");
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

      status = getSimpleJdbcTemplate().update(getSqlQuery(query), parameters);
    } catch (DataIntegrityViolationException e) {
      LOGGER.log(Level.FINE, "Connector name entry " + connectorName
          + "is already exists in the table.", e);
    } catch (Throwable e) {
      throw new SharepointException(
          "Failed to remove the record for parameter [" + connectorName + "]",
          e);
    }
    if (status == 1) {
      connectorNames.remove(connectorName);
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

  public int dropConnectorNamesTable() throws SharepointException {
    int status = -1;
    try {
      status = getSimpleJdbcTemplate().update(getSqlQuery(Query.CN_DROP_TABLE));
    } catch (Throwable e) {
      throw new SharepointException(
          "Failed to remove the table with the query [" + Query.CN_DROP_TABLE
              + "]", e);
    }
    if (status == 0) {
      LOGGER.info("Sucessfully removed the Connector_Names table from the data base using the query ["
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

    Query query = Query.CN_SELECT;
    Set<String> connectorNames = new HashSet<String>();
    try {
      results = getSimpleJdbcTemplate().queryForList(getSqlQuery(query), new HashMap<String, Object>());
    } catch (Throwable e) {
      throw new SharepointException(
          "Failed to retrieve all the connector names from the table with the quey ["
              + Query.CN_SELECT + "]", e);
    }
    for (Map<String, Object> map : results) {
      connectorNames.add((String) map.get(CONNECTOR_NAME_COLUMN_CAPITAL));
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

    Connection con = null;
    try {
      con = getConnection();
      LOGGER.config("Created data base connection for specified data source.");
    } catch (Exception e) {
      throw new SharepointException(
          "Could not create the database conection for specified data source",
          e);
    }
    if (null == con) {
      throw new SharepointException(
          "Could not create the database conection for specified data source");
    }
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.spiimpl.SharepointException

        }
      }
    } catch (Throwable t) {
      // This would be an error. No point in retrying, so no
      // fall-back..
      throw new SharepointException("Batch execution failed abruptly!! ", t);
    }

    return batchStatus;
  }
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.