Class ConnectorObjectBuilder
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.ConnectorObjectBuilder
-
public final class ConnectorObjectBuilder extends Object
Builder class to create aConnectorObject
. The developer of a Connector will construct a ConnectorObjectBuilder, and then call the ConnectorObjectBuilder to set aUid
, add attributes, and then finally tobuild()
the actualConnectorObject
.
-
-
Constructor Summary
Constructors Constructor Description ConnectorObjectBuilder()
-
Method Summary
-
-
-
Method Detail
-
setUid
public ConnectorObjectBuilder setUid(String uid)
-
setUid
public ConnectorObjectBuilder setUid(Uid uid)
-
setName
public ConnectorObjectBuilder setName(String name)
-
setName
public ConnectorObjectBuilder setName(Name name)
-
setObjectClass
public ConnectorObjectBuilder setObjectClass(ObjectClass oclass)
-
add
public ConnectorObjectBuilder add(ConnectorObject obj)
Takes all the attribute from aConnectorObject
and add/overwrite the current attributes.
-
addAttribute
public ConnectorObjectBuilder addAttribute(Attribute... attrs)
Adds one or many attributes to theConnectorObject
.
-
addAttributes
public ConnectorObjectBuilder addAttributes(Collection<Attribute> attrs)
Add all theAttribute
s of aCollection
.
-
addAttribute
public ConnectorObjectBuilder addAttribute(String name, Object... objs)
Adds values to the attribute.
-
addAttribute
public ConnectorObjectBuilder addAttribute(String name, Collection<?> obj)
Adds each object in the collection.
-
build
public ConnectorObject build()
Builds a 'ConnectorObject' based on the attributes and Uid provided.
-
buildIdentification
public ConnectorObjectIdentification buildIdentification()
-
-