Copyright© 2008-2022 Sitevision AB, all rights reserved.
public interface DirectoryAttributes
Interface exposing directory attributes of an internal directory object. The attribute name is the LDAP / Directory attribute name which is not the same thing as the internal field name represented by Field.Id. The mapping between field name and attribute name is defined in the attribute mapping in LdapSchema.
This API can also be used to get / set attributes "outside" of the schema. Set methods operates directly to the LDAP source! The methods will never throw exceptions. Any problem will be written to the server log.
Note! an initial lookup in the UserObjectProperties will be made to see if the attribute is available. If a lookup to a Directory/LDAP source is required, the resulting value will be stored in the UserObjectProperties to avoid further calls.
Deprecation note! This is a deprecated legacy interface for operating on "internal" Sitevision objects.
Use DirectoryUtil
to get LDAP values for a directory object Node
.
Modifier and Type | Method and Description |
---|---|
Object |
getAttributeValue(String anAttributeName)
Returns the directory attribute value for the given attribute name.
|
Object |
getAttributeValue(String anAttributeName,
boolean returnAsString)
Returns the directory attribute value as a
String if returnAsString
equals true . |
List |
getAttributeValues(String anAttributeName)
Returns the directory attribute values for the given attribute name.
|
void |
setAttributeValue(String anAttributeName,
String aValue)
Sets directory attributes on a directory object.
|
void |
setAttributeValues(String anAttributeName,
List aValues)
Sets directory attributes on a directory object.
|
List getAttributeValues(String anAttributeName)
anAttributeName
- The attribute name for which to get the attribute value for.null
if no value maps to the given name.void setAttributeValues(String anAttributeName, List aValues)
anAttributeName
- The directory attribute to set.aValues
- The directory values to be set.Object getAttributeValue(String anAttributeName)
anAttributeName
- The attribute name for which to get the attribute value for.null
if no value maps to the given name.void setAttributeValue(String anAttributeName, String aValue)
anAttributeName
- The directory attribute to set.aValue
- The directory value to be set.Object getAttributeValue(String anAttributeName, boolean returnAsString)
String
if returnAsString
equals true
.anAttributeName
- The attribute name for which to get the attribute value for.returnAsString
- If true
the value is returned as a String
.String
if returnAsString
equals true
or null
if no value maps to the given name.Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.