Interface CreateOp
-
- All Superinterfaces:
SPIOperation
public interface CreateOp extends SPIOperation
TheConnectordeveloper is responsible for taking the attributes given (which always includes theObjectClass) and create an object and itsUid. TheConnectordeveloper must return theUidso that the caller can refer to the created object.The
Connectordeveloper should make a best effort to create the object otherwise throw an informativeRuntimeExceptiontelling the caller why the operation could not be completed. It reasonable to use defaults for requiredAttributes as long as they are documented.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Uidcreate(ObjectClass objectClass, java.util.Set<Attribute> createAttributes, OperationOptions options)TheConnectordeveloper is responsible for taking the attributes given (which always includes theObjectClass) and create an object and itsUid.
-
-
-
Method Detail
-
create
Uid create(ObjectClass objectClass, java.util.Set<Attribute> createAttributes, OperationOptions options)
TheConnectordeveloper is responsible for taking the attributes given (which always includes theObjectClass) and create an object and itsUid. TheConnectordeveloper must return theUidso that the caller can refer to the created object.*Note: There will never be a
Uidpassed in with the attribute set for this method. If the resource supports some sort of mutableUid, you should create your own resource-specific attribute for it, such as unix_uid.- Parameters:
objectClass- the type of object to create. Will never be null.createAttributes- includes all the attributes necessary to create the resource object including theObjectClassattribute andNameattribute.options- additional options that impact the way this operation is run. If the caller passes null, the framework will convert this into an empty set of options, so SPI need not worry about this ever being null.- Returns:
- the unique id for the object that is created. For instance in LDAP this would be the 'dn', for a database this would be the primary key, and for 'ActiveDirectory' this would be the GUID.
-
-