Class AttributeDeltaBuilder
java.lang.Object
org.identityconnectors.framework.common.objects.AttributeDeltaBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValueToAdd(Object... objs) Adds each of the specified objects as a value for the valuesToAdd of the attributeDelta that is being built.addValueToAdd(Collection<?> obj) Adds each object in the collection as a value for the valuesToAdd of the attributeDelta that is being built.addValueToRemove(Object... objs) Adds each of the specified objects as a value for the valuesToRemove of the attributeDelta that is being built.addValueToRemove(Collection<?> obj) Adds each object in the collection as a value for the valuesToRemove of the attributeDelta that is being built.addValueToReplace(Object... objs) Adds each of the specified objects as a value for the valuesToReplace of the attributeDelta that is being built.addValueToReplace(Collection<?> obj) Adds each object in the collection as a value for the valuesToReplace of the attributeDelta that is being built.build()Creates a attributeDelta with the specified name and the value for valuesToAdd, valuesToRemove and valuesToReplace that have been provided to the builder.static AttributeDeltaCreates a attributeDelta with the specified name and anullvalue for valuesToAdd, valuesToRemove and valuesToReplace.static AttributeDeltaCreates anAttributeDeltawith the name and the values provided for valuesToReplace.static AttributeDeltabuild(String name, Collection<?> valuesToReplace) Creates anAttributeDeltawith the name and the values provided for valuesToReplace.static AttributeDeltabuild(String name, Collection<?> valuesToAdd, Collection<?> valuesToRemove) Creates anAttributeDeltawith the name and the values provided for valuesToAdd and valuesToRemove.static AttributeDeltabuildCurrentPassword(char[] password) Builds an of operational attribute that represents the current password of an object on a target system or application.static AttributeDeltabuildCurrentPassword(GuardedString password) Builds an of operational attribute that represents the current password of an object on a target system or application.static AttributeDeltabuildDisableDate(long date) Builds an of operational attribute that represents the date and time to disable an object on a target system or application.static AttributeDeltabuildDisableDate(Date date) Builds an of operational attribute that represents the date and time to disable an object on a target system or application.static AttributeDeltabuildEnabled(boolean value) Builds an of operational attribute that represents whether object is enabled on a target system or application.static AttributeDeltabuildEnableDate(long date) Builds an of operational attribute that represents the date and time to enable an object on a target system or application.static AttributeDeltabuildEnableDate(Date date) Builds an of operational attribute that represents the date and time to enable an object on a target system or application.static AttributeDeltabuildLastLoginDate(long date) Builds an of pre-defined attribute that represents the date and time of the most recent login for an object (such as an account) on a target system or application.static AttributeDeltabuildLastLoginDate(Date date) Builds an of pre-defined attribute that represents the date and time of the most recent login for an object (such as an account) on a target system or application.static AttributeDeltabuildLastPasswordChangeDate(long date) Builds an of pre-defined attribute that represents the date and time that the password was most recently changed for an object (such as an account) on a target system or application.static AttributeDeltaBuilds an of pre-defined attribute that represents the date and time that the password was most recently changed for an object (such as an account) on a target system or application.static AttributeDeltabuildLockOut(boolean lock) Builds an of operational attribute that represents whether an object is locked out on a target system or application.static AttributeDeltabuildPassword(char[] password) Builds an of operational attribute that represents the password of an object on a target system or application.static AttributeDeltabuildPassword(GuardedString password) Builds an of operational attribute that represents the password of an object on a target system or application.static AttributeDeltabuildPasswordChangeInterval(long value) Builds an of pre-defined attribute that represents how often the password must be changed for an object (such as an account) on a target system or application.static AttributeDeltabuildPasswordExpirationDate(long dateTime) Builds an of operational attribute that represents the date and time that a password will expire on a target system or application.static AttributeDeltabuildPasswordExpirationDate(Date dateTime) Builds an of operational attribute that represents the date and time that a password will expire on a target system or application.static AttributeDeltabuildPasswordExpired(boolean value) Builds an of operational attribute that represents whether the password of an object is expired on a target system or application.getName()Get the name of the attributeDelta that is being built.Return any current value of the valuesToAdd in the attributeDelta that is being built.Return any current value of the valuesToRemove in the the attributeDelta that is being built.Return any current value of the valuesToReplace in the attribute that is being built.Set the name of the attributeDelta that is being built.
-
Constructor Details
-
AttributeDeltaBuilder
public AttributeDeltaBuilder()
-
-
Method Details
-
build
Creates a attributeDelta with the specified name and anullvalue for valuesToAdd, valuesToRemove and valuesToReplace.- Parameters:
name- unique name of the attributeDelta.- Returns:
- instance of
AttributeDeltawith anullor actual values for valuesToAdd, valuesToRemove and valuesToReplace.
-
build
public static AttributeDelta build(String name, Collection<?> valuesToAdd, Collection<?> valuesToRemove) Creates anAttributeDeltawith the name and the values provided for valuesToAdd and valuesToRemove.- Parameters:
name- unique name of the attributeDelta.valuesToAdd- a collection of objects that are used as values for the valuesToAdd of the attributeDelta.valuesToRemove- a collection of objects that are used as values for the valuesToRemove of the attributeDelta.- Returns:
- instance of
AttributeDeltawith the specified name and a value that includes the arguments provided.
-
build
Creates anAttributeDeltawith the name and the values provided for valuesToReplace.- Parameters:
name- unique name of the attributeDelta.args- variable number of arguments that are used as values for the valuesToReplace of the attributeDelta.- Returns:
- instance of
AttributeDeltawith the specified name and a value that includes the arguments provided.
-
build
Creates anAttributeDeltawith the name and the values provided for valuesToReplace.- Parameters:
name- unique name of the attributeDelta.valuesToReplace- a collection of objects that are used as values for the valuesToReplace of the attributeDelta.- Returns:
- instance of
AttributeDeltawith the specified name and a value that includes the arguments provided.
-
getName
Get the name of the attributeDelta that is being built.- Returns:
- The name of the attributeDelta.
-
setName
Set the name of the attributeDelta that is being built.- Returns:
- instance of
AttributeDeltawith the specified name and a value that includes the arguments provided. - Throws:
IllegalArgumentException- if the name parameter is blank.
-
getValuesToAdd
Return any current value of the valuesToAdd in the attributeDelta that is being built.- Returns:
- any current value of the valuesToAdd in the attributeDelta that is being built.
-
getValueToRemove
Return any current value of the valuesToRemove in the the attributeDelta that is being built.- Returns:
- any current value of the valuesToRemove in the attributeDelta that is being built.
-
getValueToReplace
Return any current value of the valuesToReplace in the attribute that is being built.- Returns:
- any current value of the valuesToReplace in the attribute that is being built.
-
addValueToAdd
Adds each object in the collection as a value for the valuesToAdd of the attributeDelta that is being built.- Parameters:
obj- the values to add for ValueToAdd- Returns:
- instance of
AttributeDeltawith the specified name and a value that includes the arguments provided.
-
addValueToAdd
Adds each of the specified objects as a value for the valuesToAdd of the attributeDelta that is being built.- Parameters:
objs- the values to add for ValueToAdd- Returns:
- instance of
AttributeDeltawith the specified name and a value that includes the arguments provided.
-
addValueToRemove
Adds each object in the collection as a value for the valuesToRemove of the attributeDelta that is being built.- Parameters:
obj- the values to add for ValueToRemove- Returns:
- a new attributeDelta with the name and any values of the valuesToAdd that have been provided to the builder.
- Throws:
NullPointerException- if any of the values is null.IllegalArgumentException- if no name has been provided.
-
addValueToRemove
Adds each of the specified objects as a value for the valuesToRemove of the attributeDelta that is being built.- Parameters:
objs- the values to add for ValueToRemove- Returns:
- instance of
AttributeDeltawith the specified name and a value that includes the arguments provided.
-
addValueToReplace
Adds each object in the collection as a value for the valuesToReplace of the attributeDelta that is being built.- Parameters:
obj- the values to add for ValueToReplace- Returns:
- a new attributeDelta with the name and any values of the valuesToRemove that have been provided to the builder.
- Throws:
NullPointerException- if any of the values is null.IllegalArgumentException- if no name has been provided.
-
addValueToReplace
Adds each of the specified objects as a value for the valuesToReplace of the attributeDelta that is being built.- Parameters:
objs- the values to add for ValueToReplace- Returns:
- instance of
AttributeDeltawith the specified name and a value that includes the arguments provided.
-
build
Creates a attributeDelta with the specified name and the value for valuesToAdd, valuesToRemove and valuesToReplace that have been provided to the builder.- Returns:
- instance of
AttributeDeltawith name andList<Object>for valuesToAdd, valuesToRemove and valuesToReplace. - Throws:
IllegalArgumentException- if no name has been provided.
-
buildPasswordExpirationDate
Builds an of operational attribute that represents the date and time that a password will expire on a target system or application.- Parameters:
dateTime- UTC time in milliseconds.- Returns:
- an
AttributeDeltawith the pre-defined name for password expiration date.
-
buildPasswordExpirationDate
Builds an of operational attribute that represents the date and time that a password will expire on a target system or application.- Parameters:
dateTime- UTC time in milliseconds.- Returns:
- an
AttributeDeltawith the pre-defined name for password expiration date.
-
buildPassword
Builds an of operational attribute that represents the password of an object on a target system or application.- Parameters:
password- the string that represents a password.- Returns:
- an
AttributeDeltawith the predefined name for password.
-
buildPassword
Builds an of operational attribute that represents the password of an object on a target system or application.The caller is responsible for clearing out the array of characters.
- Parameters:
password- the characters that represent a password.- Returns:
- an
AttributeDeltawith the predefined name for password.
-
buildCurrentPassword
Builds an of operational attribute that represents the current password of an object on a target system or application.Passing the current password indicates the account owner (and not an administrator) is changing the password. The use case is that an administrator password change may not keep history or validate against policy.
- Parameters:
password- the string that represents a password.- Returns:
- an
AttributeDeltawith the predefined name for current password.
-
buildCurrentPassword
Builds an of operational attribute that represents the current password of an object on a target system or application.Passing the current password indicates the account owner (and not an administrator) is changing the password. The use case is that an administrator password change may not keep history or validate against policy.
The caller is responsible for clearing out the array of characters.
- Parameters:
password- the characters that represent a password.- Returns:
- an
AttributeDeltawith the predefined name for current password.
-
buildEnabled
Builds an of operational attribute that represents whether object is enabled on a target system or application.- Use this attribute with
CreateApiOporUpdateApiOpto enable or disable an object. - Read this attribute from
GetApiOpto determine whether an object currently is enabled or disabled. - Use this attribute with
SearchApiOpto select objects that are enabled or to select objects that are disabled.
- Parameters:
value- true indicates the object is enabled; otherwise false.- Returns:
- an
AttributeDeltawith the predefined name for enabled.
- Use this attribute with
-
buildEnableDate
Builds an of operational attribute that represents the date and time to enable an object on a target system or application.- Use this attribute with
CreateApiOporUpdateApiOpto set a date and time to enable an object. - Read this attribute from
GetApiOpto determine when an object will be enabled. - Use this attribute with
SearchApiOpto select objects that are scheduled to be enabled at a certain date and time.
- Parameters:
date- The date and time to enable a particular object.- Returns:
- an
AttributeDeltawith the predefined name for enable date.
- Use this attribute with
-
buildEnableDate
Builds an of operational attribute that represents the date and time to enable an object on a target system or application. The date-and-time parameter is UTC in milliseconds.- Use this attribute with
CreateApiOporUpdateApiOpto set a date and time to enable an object. - Read this attribute from
GetApiOpto determine when an object will be enabled. - Use this attribute with
SearchApiOpto select objects that are scheduled to be enabled at a certain date and time.
- Parameters:
date- The date and time (UTC in milliseconds) to enable a particular object.- Returns:
- an
AttributeDeltawith the predefined name for enable date.
- Use this attribute with
-
buildDisableDate
Builds an of operational attribute that represents the date and time to disable an object on a target system or application.- Use this attribute with
CreateApiOporUpdateApiOpto set a date and time to disable an object. - Read this attribute from
GetApiOpto determine when an object will be disabled. - Use this attribute with
SearchApiOpto select objects that are scheduled to be disabled at a certain date and time.
- Parameters:
date- The date and time to disable a particular object.- Returns:
- an
AttributeDeltawith the predefined name for disable date.
- Use this attribute with
-
buildDisableDate
Builds an of operational attribute that represents the date and time to disable an object on a target system or application. The date-and-time parameter is UTC in milliseconds.- Use this attribute with
CreateApiOporUpdateApiOpto set a date and time to disable an object. - Read this attribute from
GetApiOpto determine when an object will be disabled. - Use this attribute with
SearchApiOpto select objects that are scheduled to be disabled at a certain date and time.
- Parameters:
date- The date and time (UTC in milliseconds) to disable a particular object.- Returns:
- an
AttributeDeltawith the predefined name for disable date.
- Use this attribute with
-
buildLockOut
Builds an of operational attribute that represents whether an object is locked out on a target system or application.- Read this attribute from
GetApiOpto determine whether an object is currently locked out. - Use this attribute with
UpdateApiOpto clear the lock-out status of an object (or to set the lock-out status of an object). - Use this attribute with
SearchApiOpto select objects that are currently locked out (or to select objects that are not currently locked out).
- Parameters:
lock- true if the object is locked out; otherwise false.- Returns:
- an
AttributeDeltawith the predefined name for lockout state.
- Read this attribute from
-
buildPasswordExpired
Builds an of operational attribute that represents whether the password of an object is expired on a target system or application.- Read this attribute from
GetApiOpto determine whether the password of an object is currently expired. - Use this attribute with
UpdateApiOpto expire the password of an object (or to clear the expired status of the password of an object). - Use this attribute with
SearchApiOpto select objects that have passwords that are currently expired (or to select objects that have passwords that are not currently expired).
- Parameters:
value- from the API true expires and from the SPI its shows its either expired or not.- Returns:
- an
AttributeDeltawith the predefined name for password expiration state.
- Read this attribute from
-
buildLastLoginDate
Builds an of pre-defined attribute that represents the date and time of the most recent login for an object (such as an account) on a target system or application.- Parameters:
date- The date and time of the last login.- Returns:
- an
AttributeDeltawith the predefined name for password expiration state.
-
buildLastLoginDate
Builds an of pre-defined attribute that represents the date and time of the most recent login for an object (such as an account) on a target system or application.The time parameter is UTC in milliseconds.
- Parameters:
date- The date and time (UTC in milliseconds) of the last login.- Returns:
- an
AttributeDeltawith the predefined name for password expiration state.
-
buildLastPasswordChangeDate
Builds an of pre-defined attribute that represents the date and time that the password was most recently changed for an object (such as an account) on a target system or application.- Parameters:
date- The date and time that the password was most recently changed.- Returns:
- an
AttributeDeltawith the predefined name for password expiration state.
-
buildLastPasswordChangeDate
Builds an of pre-defined attribute that represents the date and time that the password was most recently changed for an object (such as an account) on a target system or application.The time parameter is UTC in milliseconds.
- Parameters:
date- The date and time that the password was most recently changed.- Returns:
- an
AttributeDeltawith the predefined name for password expiration state.
-
buildPasswordChangeInterval
Builds an of pre-defined attribute that represents how often the password must be changed for an object (such as an account) on a target system or application.The value for this attribute is expressed in milliseconds.
- Parameters:
value- The number of milliseconds between the time that the password was most recently changed and the time when the password must be changed again.- Returns:
- an
AttributeDeltawith the predefined name for password expiration state.
-