Class ConnectorObjectBuilder
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.ConnectorObjectBuilder
-
public final class ConnectorObjectBuilder extends java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectorObjectBuilder
add(ConnectorObject obj)
Takes all the attribute from aConnectorObject
and add/overwrite the current attributes.ConnectorObjectBuilder
addAttribute(java.lang.String name, java.lang.Object... objs)
Adds values to the attribute.ConnectorObjectBuilder
addAttribute(java.lang.String name, java.util.Collection<?> obj)
Adds each object in a collection.ConnectorObjectBuilder
addAttribute(Attribute[] attrs)
Adds many attributes to theConnectorObject
.ConnectorObjectBuilder
addAttribute(AttributeBuilder builder, java.lang.String name, java.lang.Object... objs)
Adds values to the attribute, using a recycledAttributeBuilder
.ConnectorObjectBuilder
addAttribute(AttributeBuilder builder, java.lang.String name, java.util.Collection<?> obj)
Adds each object in a collection, using a recycledAttributeBuilder
.ConnectorObjectBuilder
addAttribute(Attribute attr, Attribute... attrs)
Adds one or many attributes to theConnectorObject
.ConnectorObjectBuilder
addAttributes(java.util.Collection<Attribute> attrs)
Add all theAttribute
s of aCollection
.ConnectorObject
build()
Builds a 'ConnectorObject' based on the attributes and Uid provided.ConnectorObjectBuilder
clearAttributes()
Clears allAttribute
s, for recycling thisConnectionObjectBuilder
.ConnectorObjectBuilder
removeAttribute(java.lang.String name)
Removes an attribute byname
.ConnectorObjectBuilder
setName(java.lang.String name)
ConnectorObjectBuilder
setName(Name name)
ConnectorObjectBuilder
setObjectClass(ObjectClass oclass)
ConnectorObjectBuilder
setUid(java.lang.String uid)
ConnectorObjectBuilder
setUid(Uid uid)
-
-
-
Method Detail
-
setUid
public ConnectorObjectBuilder setUid(java.lang.String uid)
-
setUid
public ConnectorObjectBuilder setUid(Uid uid)
-
setName
public ConnectorObjectBuilder setName(java.lang.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 many attributes to theConnectorObject
. This method is needed to preserve backward API compatibility.
-
addAttribute
public ConnectorObjectBuilder addAttribute(Attribute attr, Attribute... attrs)
Adds one or many attributes to theConnectorObject
.
-
addAttributes
public ConnectorObjectBuilder addAttributes(java.util.Collection<Attribute> attrs)
Add all theAttribute
s of aCollection
.
-
addAttribute
public ConnectorObjectBuilder addAttribute(java.lang.String name, java.lang.Object... objs)
Adds values to the attribute.
-
addAttribute
public ConnectorObjectBuilder addAttribute(AttributeBuilder builder, java.lang.String name, java.lang.Object... objs)
Adds values to the attribute, using a recycledAttributeBuilder
.
-
addAttribute
public ConnectorObjectBuilder addAttribute(java.lang.String name, java.util.Collection<?> obj)
Adds each object in a collection.
-
addAttribute
public ConnectorObjectBuilder addAttribute(AttributeBuilder builder, java.lang.String name, java.util.Collection<?> obj)
Adds each object in a collection, using a recycledAttributeBuilder
.
-
removeAttribute
public ConnectorObjectBuilder removeAttribute(java.lang.String name)
Removes an attribute byname
.
-
clearAttributes
public ConnectorObjectBuilder clearAttributes()
Clears allAttribute
s, for recycling thisConnectionObjectBuilder
.
-
build
public ConnectorObject build()
Builds a 'ConnectorObject' based on the attributes and Uid provided.
-
-