Class TaskProperty
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.tasks.TaskProperty
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class TaskProperty
extends Object
implements Serializable
This class provides information about a property that may be used to schedule
a task.
Elements of a task property include:
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Elements of a task property include:
- The name of the LDAP attribute used to store values for this property.
- A user-friendly display name for the property.
- A user-friendly description for the property.
- The expected data type for values of the property.
- An optional set of allowed values for the property. If this is defined, then the property will not be allowed to have any value that is not included in this set.
- A flag that indicates whether the property is required when scheduling the corresponding type of task.
- A flag that indicates whether the property is allowed to have multiple values.
- A flag that indicates whether the property should be considered advanced and therefore may be hidden from users if a simplified interface is to be presented.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTaskProperty(String attributeName, String displayName, String description, Class<?> dataType, boolean required, boolean multiValued, boolean advanced) Creates a new task property with the provided information.TaskProperty(String attributeName, String displayName, String description, Class<?> dataType, boolean required, boolean multiValued, boolean advanced, Object[] allowedValues) Creates a new task property with the provided information. -
Method Summary
Modifier and TypeMethodDescriptionObject[]Retrieves the set of values that may be used for this task property.Retrieves the name of the LDAP attribute associated with this task property.Class<?> Retrieves the data type for this task property, which represents the expected data type for the value(s) of this property.Retrieves the human-readable description for this task property.Retrieves the human-readable display name for this task property.booleanIndicates whether this task property is considered advanced.booleanIndicates whether this task property is allowed to have multiple values.booleanIndicates whether this task property is required to be provided in order to schedule a task.toString()Retrieves a string representation of this task property.voidtoString(StringBuilder buffer) Appends a string representation of this task property to the provided buffer.
-
Constructor Details
-
TaskProperty
public TaskProperty(@NotNull String attributeName, @NotNull String displayName, @NotNull String description, @NotNull Class<?> dataType, boolean required, boolean multiValued, boolean advanced) Creates a new task property with the provided information.- Parameters:
attributeName- The name of the LDAP attribute associated with this task property. It must not benull.displayName- The human-readable display name for this task property. It must not benull.description- The human-readable description for this task property. It must not benull.dataType- A class representing the data type for this property. Allowed data type classes include:Boolean,Date,Long, andString. It must not benull.required- Indicates whether this property must be provided when scheduling a task.multiValued- Indicates whether this property is allowed to have multiple values.advanced- Indicates whether this property may be considered advanced and doesn't necessarily need to be presented to the user. Advanced properties must not be required.
-
TaskProperty
public TaskProperty(@NotNull String attributeName, @NotNull String displayName, @NotNull String description, @NotNull Class<?> dataType, boolean required, boolean multiValued, boolean advanced, @Nullable Object[] allowedValues) Creates a new task property with the provided information.- Parameters:
attributeName- The name of the LDAP attribute associated with this task property. It must not benull.displayName- The human-readable display name for this task property. It must not benull.description- The human-readable description for this task property. It must not benull.dataType- A class representing the data type for this property. Allowed data type classes include:Boolean,Date,Long, andString. It must not benull.required- Indicates whether this property must be provided when scheduling a task.multiValued- Indicates whether this property is allowed to have multiple values.advanced- Indicates whether this property may be considered advanced and doesn't necessarily need to be presented to the user. Advanced properties must not be required.allowedValues- The set of allowed values for this task property. It may benullif there is not a predefined set of acceptable values. If it is provided, then all values must be objects of the class specified as the data type.
-
-
Method Details
-
getAttributeName
Retrieves the name of the LDAP attribute associated with this task property.- Returns:
- The name of the LDAP attribute associated with this task property.
-
getDisplayName
Retrieves the human-readable display name for this task property.- Returns:
- The human-readable display name for this task property.
-
getDescription
Retrieves the human-readable description for this task property.- Returns:
- The human-readable description for this task property.
-
getDataType
Retrieves the data type for this task property, which represents the expected data type for the value(s) of this property. Supported data types includeBoolean,Date,Long, andString.- Returns:
- The data type for this task property.
-
isRequired
Indicates whether this task property is required to be provided in order to schedule a task.- Returns:
trueif this task property is required, orfalseif it is not.
-
isMultiValued
Indicates whether this task property is allowed to have multiple values.- Returns:
trueif this task property is allowed to have multiple values, orfalseif it may only have a single value.
-
isAdvanced
Indicates whether this task property is considered advanced. Advanced properties are not necessarily required to schedule the task and may be hidden from the user if simplicity is desired over flexibility.- Returns:
trueif this task property is considered advanced, orfalseif not.
-
getAllowedValues
Retrieves the set of values that may be used for this task property.- Returns:
- The set of values that may be used for this task property, or
nullif there is not a predefined set of allowed values.
-
toString
Retrieves a string representation of this task property. -
toString
Appends a string representation of this task property to the provided buffer.- Parameters:
buffer- The buffer to which the string representation should be appended.
-