/** * {@inheritDoc} */ public Uid addAttributeValues(ObjectClass objectClass, Uid uid, Set<Attribute> valuesToAdd, OperationOptions options) { log.info("addAttributeValues::begin"); throw new UnsupportedOperationException("Add attribute values is not supported in this shamefull fake"); }
/** * {@inheritDoc} */ public void delete(final ObjectClass objectClass, final Uid uid, final OperationOptions options) { log.info("delete::begin"); throw new UnsupportedOperationException("Delete attribute values is not supported in this shamefull fake"); }
/** * {@inheritDoc} */ public Uid create(final ObjectClass objectClass, final Set<Attribute> createAttributes, final OperationOptions options) { log.info("create::begin"); throw new UnsupportedOperationException("Create is not supported in this shamefull fake"); }
/** * {@inheritDoc} */ public Uid removeAttributeValues(ObjectClass objectClass, Uid uid, Set<Attribute> valuesToRemove, OperationOptions options) { log.info("removeAttributeValues::begin"); throw new UnsupportedOperationException("Remove attribute values is not supported in this shamefull fake"); }
/** * {@inheritDoc} */ public Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> replaceAttributes, OperationOptions options) { log.info("update::begin"); throw new UnsupportedOperationException("Update is not supported in this shamefull fake"); }
/** * {@inheritDoc} */ public void sync(ObjectClass objectClass, SyncToken token, SyncResultsHandler handler, final OperationOptions options) { log.info("sync::begin"); throw new UnsupportedOperationException("Sync is not supported in this shamefull fake"); }
public List<Filter> translate(Filter filter) { log.info("translate"); ArrayList<Filter> filters = new ArrayList<>(); filters.add(filter); return filters; }
/** * {@inheritDoc} */ public void executeQuery(ObjectClass objectClass, String query, ResultsHandler handler, OperationOptions options) { log.info("executeQuery::begin"); // Lets be stupid and just return everything. That means our single account. ICF will filter it. handler.handle(getFooConnectorObject()); log.info("executeQuery::end"); }
/** * {@inheritDoc} */ public SyncToken getLatestSyncToken(ObjectClass objectClass) { log.info("getLatestSyncToken::begin"); validate(objectClass); int latestSyncToken = resource.getLatestSyncToken(); log.info("getLatestSyncToken::end, returning token {0}.", latestSyncToken); return new SyncToken(latestSyncToken); }
private void checkCCL() { if (getContextClassLoader() == null) { _log.error(new Throwable(), "The CCL of thread ''{0}'' was null after initialization. The CCL of current thread ''{1}'' is {2}", getName(), Thread.currentThread().getName(), Thread.currentThread().getContextClassLoader()); } else { _log.info("Creating thread ''{0}'' with a non-null CCL", getName()); } }
private void checkCCL() { if (getContextClassLoader() == null) { LOG.error(new Throwable(), "The CCL of thread ''{0}'' was null after initialization. The CCL of current thread ''{1}'' is {2}", getName(), Thread.currentThread().getName(), Thread.currentThread().getContextClassLoader()); } else { LOG.info("Creating thread ''{0}'' with a non-null CCL", getName()); } }
/** * Disposes of the connector's resources. * * @see Connector#dispose() */ public void dispose() { connected = false; resource.disconnect(); log.info("Disconnected from dummy resource instance {0} ({1} connections still open)", resource, resource.getConnectionCount()); }
@Override public final void test() { LOG.info("Connection test"); try { new CSVDirTest(configuration).test(); } catch (Exception e) { LOG.error("Test failed", e); } } }
protected void addAdditionalCommonAttributes(ConnectorObjectBuilder builder, DummyObject dummyObject) { super.addAdditionalCommonAttributes(builder, dummyObject); String connectorInstanceNameAttribute = getConfiguration().getConnectorInstanceNameAttribute(); if (connectorInstanceNameAttribute != null) { log.info("Putting connectorInstance name into {0}: {1}", connectorInstanceNameAttribute, instanceName); builder.addAttribute(connectorInstanceNameAttribute, instanceName); } }
protected void addAdditionalCommonAttributes(ConnectorObjectBuilder builder, DummyObject dummyObject) { String connectorInstanceNumberAttribute = getConfiguration().getConnectorInstanceNumberAttribute(); if (connectorInstanceNumberAttribute != null) { log.info("Putting connector instance number into {0}: {1}", connectorInstanceNumberAttribute, getInstanceNumber()); builder.addAttribute(connectorInstanceNumberAttribute, getInstanceNumber()); } }