Interface VirtualAttributeCfgClient
-
- All Superinterfaces:
ConfigurationClient
- All Known Subinterfaces:
CollectiveAttributeSubentriesVirtualAttributeCfgClient,EntityTagVirtualAttributeCfgClient,EntryDNVirtualAttributeCfgClient,EntryUUIDVirtualAttributeCfgClient,GoverningStructureRuleVirtualAttributeCfgClient,HasSubordinatesVirtualAttributeCfgClient,IsMemberOfVirtualAttributeCfgClient,MemberVirtualAttributeCfgClient,NumSubordinatesVirtualAttributeCfgClient,PasswordExpirationTimeVirtualAttributeCfgClient,PasswordPolicySubentryVirtualAttributeCfgClient,StructuralObjectClassVirtualAttributeCfgClient,SubschemaSubentryVirtualAttributeCfgClient,UserDefinedVirtualAttributeCfgClient
public interface VirtualAttributeCfgClient extends ConfigurationClient
A client-side interface for reading and modifying Virtual Attribute settings.Virtual Attributes are responsible for dynamically generating attribute values that appear in entries but are not persistently stored in the backend.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends VirtualAttributeCfgClient,? extends VirtualAttributeCfg>definition()Get the configuration definition associated with this Virtual Attribute.org.forgerock.opendj.ldap.schema.AttributeTypegetAttributeType()Gets the "attribute-type" property.SortedSet<org.forgerock.opendj.ldap.DN>getBaseDN()Gets the "base-dn" property.VirtualAttributeCfgDefn.ConflictBehaviorgetConflictBehavior()Gets the "conflict-behavior" property.SortedSet<String>getFilter()Gets the "filter" property.SortedSet<org.forgerock.opendj.ldap.DN>getGroupDN()Gets the "group-dn" property.StringgetJavaClass()Gets the "java-class" property.VirtualAttributeCfgDefn.ScopegetScope()Gets the "scope" property.BooleanisEnabled()Gets the "enabled" property.voidsetAttributeType(org.forgerock.opendj.ldap.schema.AttributeType value)Sets the "attribute-type" property.voidsetBaseDN(Collection<org.forgerock.opendj.ldap.DN> values)Sets the "base-dn" property.voidsetConflictBehavior(VirtualAttributeCfgDefn.ConflictBehavior value)Sets the "conflict-behavior" property.voidsetEnabled(boolean value)Sets the "enabled" property.voidsetFilter(Collection<String> values)Sets the "filter" property.voidsetGroupDN(Collection<org.forgerock.opendj.ldap.DN> values)Sets the "group-dn" property.voidsetJavaClass(String value)Sets the "java-class" property.voidsetScope(VirtualAttributeCfgDefn.Scope value)Sets the "scope" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends VirtualAttributeCfgClient,? extends VirtualAttributeCfg> definition()
Get the configuration definition associated with this Virtual Attribute.- Specified by:
definitionin interfaceConfigurationClient- Returns:
- Returns the configuration definition associated with this Virtual Attribute.
-
getAttributeType
org.forgerock.opendj.ldap.schema.AttributeType getAttributeType()
Gets the "attribute-type" property.Specifies the attribute type for the attribute whose values are to be dynamically assigned by the virtual attribute.
- Returns:
- Returns the value of the "attribute-type" property.
-
setAttributeType
void setAttributeType(org.forgerock.opendj.ldap.schema.AttributeType value) throws PropertyExceptionSets the "attribute-type" property.Specifies the attribute type for the attribute whose values are to be dynamically assigned by the virtual attribute.
- Parameters:
value- The value of the "attribute-type" property.- Throws:
PropertyException- If the new value is invalid.
-
getBaseDN
SortedSet<org.forgerock.opendj.ldap.DN> getBaseDN()
Gets the "base-dn" property.Specifies the base DNs for the branches containing entries that are eligible to use this virtual attribute.
If no values are given, then the server generates virtual attributes anywhere in the server.
- Returns:
- Returns the values of the "base-dn" property.
-
setBaseDN
void setBaseDN(Collection<org.forgerock.opendj.ldap.DN> values) throws PropertyException
Sets the "base-dn" property.Specifies the base DNs for the branches containing entries that are eligible to use this virtual attribute.
If no values are given, then the server generates virtual attributes anywhere in the server.
- Parameters:
values- The values of the "base-dn" property.- Throws:
PropertyException- If one or more of the new values are invalid.
-
getConflictBehavior
VirtualAttributeCfgDefn.ConflictBehavior getConflictBehavior()
Gets the "conflict-behavior" property.Specifies the behavior that the server is to exhibit for entries that already contain one or more real values for the associated attribute.
- Returns:
- Returns the value of the "conflict-behavior" property.
-
setConflictBehavior
void setConflictBehavior(VirtualAttributeCfgDefn.ConflictBehavior value) throws PropertyException
Sets the "conflict-behavior" property.Specifies the behavior that the server is to exhibit for entries that already contain one or more real values for the associated attribute.
- Parameters:
value- The value of the "conflict-behavior" property.- Throws:
PropertyException- If the new value is invalid.
-
isEnabled
Boolean isEnabled()
Gets the "enabled" property.Indicates whether the Virtual Attribute is enabled for use.
- Returns:
- Returns the value of the "enabled" property.
-
setEnabled
void setEnabled(boolean value) throws PropertyExceptionSets the "enabled" property.Indicates whether the Virtual Attribute is enabled for use.
- Parameters:
value- The value of the "enabled" property.- Throws:
PropertyException- If the new value is invalid.
-
getFilter
SortedSet<String> getFilter()
Gets the "filter" property.Specifies the search filters to be applied against entries to determine if the virtual attribute is to be generated for those entries.
If no values are given, then any entry is eligible to have the value generated. If one or more filters are specified, then only entries that match at least one of those filters are allowed to have the virtual attribute.
- Returns:
- Returns the values of the "filter" property.
-
setFilter
void setFilter(Collection<String> values) throws PropertyException
Sets the "filter" property.Specifies the search filters to be applied against entries to determine if the virtual attribute is to be generated for those entries.
If no values are given, then any entry is eligible to have the value generated. If one or more filters are specified, then only entries that match at least one of those filters are allowed to have the virtual attribute.
- Parameters:
values- The values of the "filter" property.- Throws:
PropertyException- If one or more of the new values are invalid.
-
getGroupDN
SortedSet<org.forgerock.opendj.ldap.DN> getGroupDN()
Gets the "group-dn" property.Specifies the DNs of the groups whose members can be eligible to use this virtual attribute.
If no values are given, then group membership is not taken into account when generating the virtual attribute. If one or more group DNs are specified, then only members of those groups are allowed to have the virtual attribute.
- Returns:
- Returns the values of the "group-dn" property.
-
setGroupDN
void setGroupDN(Collection<org.forgerock.opendj.ldap.DN> values) throws PropertyException
Sets the "group-dn" property.Specifies the DNs of the groups whose members can be eligible to use this virtual attribute.
If no values are given, then group membership is not taken into account when generating the virtual attribute. If one or more group DNs are specified, then only members of those groups are allowed to have the virtual attribute.
- Parameters:
values- The values of the "group-dn" property.- Throws:
PropertyException- If one or more of the new values are invalid.
-
getJavaClass
String getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the virtual attribute provider class that generates the attribute values.
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
void setJavaClass(String value) throws PropertyException
Sets the "java-class" property.Specifies the fully-qualified name of the virtual attribute provider class that generates the attribute values.
- Parameters:
value- The value of the "java-class" property.- Throws:
PropertyException- If the new value is invalid.
-
getScope
VirtualAttributeCfgDefn.Scope getScope()
Gets the "scope" property.Specifies the LDAP scope associated with base DNs for entries that are eligible to use this virtual attribute.
- Returns:
- Returns the value of the "scope" property.
-
setScope
void setScope(VirtualAttributeCfgDefn.Scope value) throws PropertyException
Sets the "scope" property.Specifies the LDAP scope associated with base DNs for entries that are eligible to use this virtual attribute.
- Parameters:
value- The value of the "scope" property.- Throws:
PropertyException- If the new value is invalid.
-
-