Class ConnectorObjectBuilder
java.lang.Object
org.identityconnectors.framework.common.objects.ConnectorObjectBuilder
Builder class to create a
ConnectorObject
.
The developer of a Connector will construct a ConnectorObjectBuilder, and
then call the ConnectorObjectBuilder to set a Uid
, add attributes,
and then finally to build()
the actual ConnectorObject
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(ConnectorObject obj) Takes all the attribute from aConnectorObject
and add/overwrite the current attributes.addAttribute
(String name, Object... objs) Adds values to the attribute.addAttribute
(String name, Collection<?> obj) Adds each object in a collection.addAttribute
(Attribute[] attrs) Adds many attributes to theConnectorObject
.addAttribute
(AttributeBuilder builder, String name, Object... objs) Adds values to the attribute, using a recycledAttributeBuilder
.addAttribute
(AttributeBuilder builder, String name, Collection<?> obj) Adds each object in a collection, using a recycledAttributeBuilder
.addAttribute
(Attribute attr, Attribute... attrs) Adds one or many attributes to theConnectorObject
.addAttributes
(Collection<Attribute> attrs) Add all theAttribute
s of aCollection
.build()
Builds a 'ConnectorObject' based on the attributes and Uid provided.Clears allAttribute
s, for recycling thisConnectionObjectBuilder
.removeAttribute
(String name) Removes an attribute byname
.setObjectClass
(ObjectClass oclass)
-
Constructor Details
-
ConnectorObjectBuilder
public ConnectorObjectBuilder()
-
-
Method Details
-
setUid
-
setUid
-
setName
-
setName
-
setObjectClass
-
add
Takes all the attribute from aConnectorObject
and add/overwrite the current attributes. -
addAttribute
Adds many attributes to theConnectorObject
. This method is needed to preserve backward API compatibility. -
addAttribute
Adds one or many attributes to theConnectorObject
. -
addAttributes
Add all theAttribute
s of aCollection
. -
addAttribute
Adds values to the attribute. -
addAttribute
Adds values to the attribute, using a recycledAttributeBuilder
. -
addAttribute
Adds each object in a collection. -
addAttribute
public ConnectorObjectBuilder addAttribute(AttributeBuilder builder, String name, Collection<?> obj) Adds each object in a collection, using a recycledAttributeBuilder
. -
removeAttribute
Removes an attribute byname
. -
clearAttributes
Clears allAttribute
s, for recycling thisConnectionObjectBuilder
. -
build
Builds a 'ConnectorObject' based on the attributes and Uid provided.
-