@Async public Future<Uid> create( final ConnectorFacade connector, final ObjectClass objectClass, final Set<Attribute> attrs, final OperationOptions options) { return new AsyncResult<>(connector.create(objectClass, attrs, options)); }
/** * gets the attributes for you * * @param connectorFacade * @param dataProvider * @param objectClassInfo * @param testName * @param sequenceNumber * @return * @throws org.identityconnectors.contract.exceptions.ObjectNotFoundException */ public static Uid createObject(ConnectorFacade connectorFacade, DataProvider dataProvider, ObjectClassInfo objectClassInfo, String testName, int sequenceNumber, OperationOptions opOptions) throws ObjectNotFoundException { Set<Attribute> attributes = getCreateableAttributes(dataProvider, objectClassInfo, testName, sequenceNumber, true, false); return connectorFacade.create(getObjectClassFromObjectClassInfo(objectClassInfo), attributes, opOptions); }
/** * gets the attributes for you * @param connectorFacade * @param dataProvider * @param objectClassInfo * @param testName * @param sequenceNumber * @return * @throws org.identityconnectors.contract.exceptions.ObjectNotFoundException */ public static Uid createObject(ConnectorFacade connectorFacade, DataProvider dataProvider, ObjectClassInfo objectClassInfo, String testName, int sequenceNumber, OperationOptions opOptions) throws ObjectNotFoundException { Set<Attribute> attributes = getCreateableAttributes(dataProvider, objectClassInfo, testName, sequenceNumber, true, false); return connectorFacade.create(getObjectClassFromObjectClassInfo(objectClassInfo), attributes, opOptions); }
/** * gets the attributes for you, appending the qualifier to the attribute name * @param connectorFacade * @param dataProvider * @param objectClassInfo * @param testName * @param qualifier * @param sequenceNumber * @return * @throws org.identityconnectors.contract.exceptions.ObjectNotFoundException */ public static Uid createObject(ConnectorFacade connectorFacade, DataProvider dataProvider, ObjectClassInfo objectClassInfo, String testName, String qualifier, int sequenceNumber, OperationOptions opOptions) throws ObjectNotFoundException { Set<Attribute> attributes = getAttributes(dataProvider, objectClassInfo, testName, qualifier, sequenceNumber, true, false, true, false); return connectorFacade.create(getObjectClassFromObjectClassInfo(objectClassInfo), attributes, opOptions); }
/** * gets the attributes for you * * @param connectorFacade * @param dataProvider * @param objectClassInfo * @param testName * @param sequenceNumber * @return * @throws org.identityconnectors.contract.exceptions.ObjectNotFoundException */ public static Uid createObject(ConnectorFacade connectorFacade, DataProvider dataProvider, ObjectClassInfo objectClassInfo, String testName, int sequenceNumber, OperationOptions opOptions) throws ObjectNotFoundException { Set<Attribute> attributes = getCreateableAttributes(dataProvider, objectClassInfo, testName, sequenceNumber, true, false); return connectorFacade.create(getObjectClassFromObjectClassInfo(objectClassInfo), attributes, opOptions); }
/** * gets the attributes for you, appending the qualifier to the attribute name * * @param connectorFacade * @param dataProvider * @param objectClassInfo * @param testName * @param qualifier * @param sequenceNumber * @return * @throws org.identityconnectors.contract.exceptions.ObjectNotFoundException */ public static Uid createObject(ConnectorFacade connectorFacade, DataProvider dataProvider, ObjectClassInfo objectClassInfo, String testName, String qualifier, int sequenceNumber, OperationOptions opOptions) throws ObjectNotFoundException { Set<Attribute> attributes = getAttributes(dataProvider, objectClassInfo, testName, qualifier, sequenceNumber, true, false, true, false); return connectorFacade.create(getObjectClassFromObjectClassInfo(objectClassInfo), attributes, opOptions); }
/** * gets the attributes for you, appending the qualifier to the attribute name * * @param connectorFacade * @param dataProvider * @param objectClassInfo * @param testName * @param qualifier * @param sequenceNumber * @return * @throws org.identityconnectors.contract.exceptions.ObjectNotFoundException */ public static Uid createObject(ConnectorFacade connectorFacade, DataProvider dataProvider, ObjectClassInfo objectClassInfo, String testName, String qualifier, int sequenceNumber, OperationOptions opOptions) throws ObjectNotFoundException { Set<Attribute> attributes = getAttributes(dataProvider, objectClassInfo, testName, qualifier, sequenceNumber, true, false, true, false); return connectorFacade.create(getObjectClassFromObjectClassInfo(objectClassInfo), attributes, opOptions); }
getObjectClassInfo(objectClass), getTestName(), 0, true, false); uid = getConnectorFacade().create(objectClass, attrs, null); assertNotNull(uid, "Create returned null uid.");
uid = getConnectorFacade().create(getSupportedObjectClass(), attrs, null); assertNotNull("Create returned null uid.", uid);
uid = getConnectorFacade().create(getObjectClass(), attrs, null); Assert.fail("'testCreateFailUnsupportedAttribute': NONEXISTING attribute accepted without throwing a RuntimeException.");
uid = getConnectorFacade().create(getSupportedObjectClass(), attrs, null); assertNotNull("Create returned null uid.", uid);
/** * {@inheritDoc} */ @Override protected void testRun(ObjectClass objectClass) { Uid uid = null; try { Set<Attribute> attrs = ConnectorHelper.getCreateableAttributes(getDataProvider(), getObjectClassInfo(objectClass), getTestName(), 0, true, false); // should throw UnsupportedObjectClass if not supported uid = getConnectorFacade().create(objectClass, attrs, getOperationOptionsByOp(objectClass, CreateApiOp.class)); // get the user to make sure it exists now ConnectorObject obj = getConnectorFacade().getObject(objectClass, uid, getOperationOptionsByOp(objectClass, GetApiOp.class)); assertNotNull(obj, "Unable to retrieve newly created object"); // compare requested attributes to retrieved attributes ConnectorHelper.checkObject(getObjectClassInfo(objectClass), obj, attrs); } finally { if (uid != null) { // delete the object getConnectorFacade().delete(objectClass, uid, getOperationOptionsByOp(objectClass, DeleteApiOp.class)); } } }
/** * {@inheritDoc} */ @Override public void testRun() { Uid uid = null; try { Set<Attribute> attrs = ConnectorHelper.getCreateableAttributes(getDataProvider(), getObjectClassInfo(), getTestName(), 0, true, false); // should throw UnsupportedObjectClass if not supported uid = getConnectorFacade().create(getObjectClass(), attrs, getOperationOptionsByOp(CreateApiOp.class)); // get the user to make sure it exists now ConnectorObject obj = getConnectorFacade().getObject(getObjectClass(), uid, getOperationOptionsByOp(GetApiOp.class)); assertNotNull("Unable to retrieve newly created object", obj); // compare requested attributes to retrieved attributes ConnectorHelper.checkObject(getObjectClassInfo(), obj, attrs); } finally { if (uid != null) { // delete the object getConnectorFacade().delete(getSupportedObjectClass(), uid, getOperationOptionsByOp(DeleteApiOp.class)); } } }
/** * {@inheritDoc} */ @Override public void testRun() { Uid uid = null; try { Set<Attribute> attrs = ConnectorHelper.getCreateableAttributes(getDataProvider(), getObjectClassInfo(), getTestName(), 0, true, false); // should throw UnsupportedObjectClass if not supported uid = getConnectorFacade().create(getObjectClass(), attrs, getOperationOptionsByOp(CreateApiOp.class)); // get the user to make sure it exists now ConnectorObject obj = getConnectorFacade().getObject(getObjectClass(), uid, getOperationOptionsByOp(GetApiOp.class)); assertNotNull("Unable to retrieve newly created object", obj); // compare requested attributes to retrieved attributes ConnectorHelper.checkObject(getObjectClassInfo(), obj, attrs); } finally { if (uid != null) { // delete the object getConnectorFacade().delete(getSupportedObjectClass(), uid, getOperationOptionsByOp(DeleteApiOp.class)); } } }
uid = getConnectorFacade().create(objectClass, requestedAttributes, getOperationOptionsByOp(objectClass, CreateApiOp.class)); assertNotNull(uid,
uid = getConnectorFacade().create(objectClass, attrs, getOperationOptionsByOp(objectClass, CreateApiOp.class));
uid = getConnectorFacade().create(getSupportedObjectClass(), requestedAttributes, getOperationOptionsByOp(CreateApiOp.class)); assertNotNull(
uid = getConnectorFacade().create(getSupportedObjectClass(), requestedAttributes, getOperationOptionsByOp(CreateApiOp.class)); assertNotNull(
uid = getConnectorFacade().create(getObjectClass(), attrs, getOperationOptionsByOp(CreateApiOp.class));
uid = getConnectorFacade().create(getObjectClass(), attrs, getOperationOptionsByOp(CreateApiOp.class));