public AttributesToGetSearchResultsHandler(final ResultsHandler handler, final String[] attrsToGet) { super(attrsToGet); Assertions.nullCheck(handler, "handler"); this.handler = handler; }
Script(String scriptLanguage, String scriptText) { Assertions.blankCheck(scriptLanguage, "scriptLanguage"); Assertions.nullCheck(scriptText, "scriptText"); // Allow empty text. this.scriptLanguage = scriptLanguage; this.scriptText = scriptText; }
public SortKey(final String field, final boolean isAscendingOrder) { this.field = Assertions.blankChecked(field, "field"); this.isAscendingOrder = isAscendingOrder; }
/** * Sets a given option and a value for that option. * * @param name The name of the option * @param value The value of the option. Must be one of the types that we can serialize. See * {@link ObjectSerializerFactory} for a list of supported types. * @return A this reference to allow chaining */ public OperationOptionsBuilder setOption(final String name, final Object value) { Assertions.blankCheck(name, "name"); // don't validate value here - we do that in // the constructor of OperationOptions - that's // really the only place we can truly enforce this options.put(name, value); return this; }
/** * Constructs a new RetryableException which signals partial success of * <code>create</code> operation. * * This should be called inside * {@link org.identityconnectors.framework.spi.operations.CreateOp#create(org.identityconnectors.framework.common.objects.ObjectClass, java.util.Set, org.identityconnectors.framework.common.objects.OperationOptions)} * implementation to signal that the create was not completed but the object * was created with <code>Uid</code> and Application should call the * {@link org.identityconnectors.framework.spi.operations.UpdateOp#update(org.identityconnectors.framework.common.objects.ObjectClass, org.identityconnectors.framework.common.objects.Uid, java.util.Set, org.identityconnectors.framework.common.objects.OperationOptions)} * method now. * <p/> * Use this only if the created object can not be deleted. The best-practice * should always be the Connector implementation reverts the changes if the * operation failed. * * @param message * the detail message (which is saved for later retrieval by the * {@link #getMessage()} method). * * @param uid * the new object's Uid. * @return a <code>RetryableException</code> that either <i>is</i> the * specified exception or <i>contains</i> the specified exception. */ public static RetryableException wrap(final String message, final Uid uid) { return new RetryableException(message, new AlreadyExistsException().initUid(Assertions .nullChecked(uid, "Uid"))); } }
/** * Sets a given option and a value for that option. * * @param name * The name of the option * @param value * The value of the option. Must be one of the types that we can * serialize. See {@link ObjectSerializerFactory} for a list of * supported types. */ public OperationOptionsBuilder setOption(String name, Object value) { Assertions.blankCheck(name, "name"); // don't validate value here - we do that in // the constructor of OperationOptions - that's // really the only place we can truly enforce this _options.put(name, value); return this; }
/** * Constructs a new RetryableException which signals partial success of * <code>create</code> operation. * * This should be called inside * {@link org.identityconnectors.framework.spi.operations.CreateOp#create(org.identityconnectors.framework.common.objects.ObjectClass, java.util.Set, org.identityconnectors.framework.common.objects.OperationOptions)} * implementation to signal that the create was not completed but the object * was created with <code>Uid</code> and Application should call the * {@link org.identityconnectors.framework.spi.operations.UpdateOp#update(org.identityconnectors.framework.common.objects.ObjectClass, org.identityconnectors.framework.common.objects.Uid, java.util.Set, org.identityconnectors.framework.common.objects.OperationOptions)} * method now. * <p/> * Use this only if the created object can not be deleted. The best-practice * should always be the Connector implementation reverts the changes if the * operation failed. * * @param message * the detail message (which is saved for later retrieval by the * {@link #getMessage()} method). * * @param uid * the new object's Uid. * @return a <code>RetryableException</code> that either <i>is</i> the * specified exception or <i>contains</i> the specified exception. */ public static RetryableException wrap(final String message, final Uid uid) { return new RetryableException(message, new AlreadyExistsException().initUid(Assertions .nullChecked(uid, "Uid"))); } }
public ApplicationClassLoaderHandler(final ClassLoader applicationClassLoader, final ObjectStreamHandler target) { Assertions.nullCheck(applicationClassLoader, "applicationClassLoader"); Assertions.nullCheck(target, "target"); this.applicationClassLoader = applicationClassLoader; this.target = target; }
Script(String scriptLanguage, String scriptText) { Assertions.blankCheck(scriptLanguage, "scriptLanguage"); Assertions.nullCheck(scriptText, "scriptText"); // Allow empty text. this.scriptLanguage = scriptLanguage; this.scriptText = scriptText; }
/** * Sets a given option and a value for that option. * * @param name The name of the option * @param value The value of the option. Must be one of the types that we can serialize. See * {@link ObjectSerializerFactory} for a list of supported types. * @return A this reference to allow chaining */ public OperationOptionsBuilder setOption(final String name, final Object value) { Assertions.blankCheck(name, "name"); // don't validate value here - we do that in // the constructor of OperationOptions - that's // really the only place we can truly enforce this options.put(name, value); return this; }
public SortKey(final String field, final boolean isAscendingOrder) { this.field = Assertions.blankChecked(field, "field"); this.isAscendingOrder = isAscendingOrder; }
Script(String scriptLanguage, String scriptText) { Assertions.blankCheck(scriptLanguage, "scriptLanguage"); Assertions.nullCheck(scriptText, "scriptText"); // Allow empty text. this.scriptLanguage = scriptLanguage; this.scriptText = scriptText; }
Assertions.blankCheck(range, "range"); int idx = range.indexOf(ENDPOINT_DELIMITER);
public RemoteWrappedException(final String throwableClass, final String message, final RemoteWrappedException cause, final String stackTrace) { super(message); exception = new HashMap<String, Object>(4); exception.put(FIELD_CLASS, Assertions.blankChecked(throwableClass, "throwableClass")); exception.put(FIELD_MESSAGE, message); if (null != cause) { exception.put(FIELD_CAUSE, cause.exception); } if (null != stackTrace) { exception.put(FIELD_STACK_TRACE, stackTrace); } this.stackTrace = stackTrace; }
/** * Keep the attribute to get.. */ public AttributesToGetResultsHandler(String[] attributesToGet) { Assertions.nullCheck(attributesToGet, "attrsToGet"); this.attrsToGet = attributesToGet; }
Assertions.blankCheck(range, "range"); int idx = range.indexOf(ENDPOINT_DELIMITER);
public RemoteWrappedException(final String throwableClass, final String message, final RemoteWrappedException cause, final String stackTrace) { super(message); exception = new HashMap<String, Object>(4); exception.put(FIELD_CLASS, Assertions.blankChecked(throwableClass, "throwableClass")); exception.put(FIELD_MESSAGE, message); if (null != cause) { exception.put(FIELD_CAUSE, cause.exception); } if (null != stackTrace) { exception.put(FIELD_STACK_TRACE, stackTrace); } this.stackTrace = stackTrace; }