|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ldaptive.provider.netscape.NetscapeUtils
public class NetscapeUtils
Provides methods for converting between Netscape specific objects and ldaptive specific objects.
| Field Summary | |
|---|---|
protected static String[] |
DEFAULT_BINARY_ATTRS
Default binary attributes. |
| Constructor Summary | |
|---|---|
NetscapeUtils()
Default constructor. |
|
NetscapeUtils(org.ldaptive.SortBehavior sb)
Creates a new netscape util. |
|
| Method Summary | |
|---|---|
netscape.ldap.LDAPModificationSet |
fromAttributeModification(org.ldaptive.AttributeModification[] am)
Returns netscape modifications using the supplied attribute modifications. |
netscape.ldap.LDAPAttribute |
fromLdapAttribute(org.ldaptive.LdapAttribute la)
Returns a netscape attribute that represents the values in the supplied ldap attribute. |
netscape.ldap.LDAPAttributeSet |
fromLdapAttributes(Collection<org.ldaptive.LdapAttribute> c)
Returns a list of netscape attribute that represents the values in the supplied ldap attributes. |
netscape.ldap.LDAPEntry |
fromLdapEntry(org.ldaptive.LdapEntry le)
Returns a netscape ldap entry that represents the supplied ldap entry. |
static netscape.ldap.LDAPSortKey[] |
fromSortKey(org.ldaptive.control.SortKey[] sk)
Returns netscape sort keys using the supplied sort keys. |
List<String> |
getBinaryAttributes()
Returns the list of binary attributes. |
protected static int |
getModificationType(org.ldaptive.AttributeModificationType am)
Returns the netscape modification type for the supplied attribute modification type. |
void |
setBinaryAttributes(String[] s)
Sets the list of binary attributes. |
org.ldaptive.LdapAttribute |
toLdapAttribute(netscape.ldap.LDAPAttribute a)
Returns an ldap attribute using the supplied netscape attribute. |
org.ldaptive.SearchEntry |
toSearchEntry(netscape.ldap.LDAPEntry e,
org.ldaptive.control.ResponseControl[] c,
int id)
Returns a search entry using the supplied netscape entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String[] DEFAULT_BINARY_ATTRS
| Constructor Detail |
|---|
public NetscapeUtils()
public NetscapeUtils(org.ldaptive.SortBehavior sb)
sb - sort behavior| Method Detail |
|---|
public List<String> getBinaryAttributes()
public void setBinaryAttributes(String[] s)
s - binary attributespublic netscape.ldap.LDAPAttribute fromLdapAttribute(org.ldaptive.LdapAttribute la)
la - ldap attribute
public org.ldaptive.LdapAttribute toLdapAttribute(netscape.ldap.LDAPAttribute a)
a - netscape attribute
public netscape.ldap.LDAPAttributeSet fromLdapAttributes(Collection<org.ldaptive.LdapAttribute> c)
c - ldap attributes
public org.ldaptive.SearchEntry toSearchEntry(netscape.ldap.LDAPEntry e,
org.ldaptive.control.ResponseControl[] c,
int id)
e - netscape entryc - response controlsid - message id
public netscape.ldap.LDAPEntry fromLdapEntry(org.ldaptive.LdapEntry le)
le - ldap entry
public netscape.ldap.LDAPModificationSet fromAttributeModification(org.ldaptive.AttributeModification[] am)
am - attribute modifications
public static netscape.ldap.LDAPSortKey[] fromSortKey(org.ldaptive.control.SortKey[] sk)
sk - sort keys
protected static int getModificationType(org.ldaptive.AttributeModificationType am)
am - attribute modification type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||