|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.om.security.ldap.BaseLDAPObject
The Base LDAP Object extending DirContext.
Field Summary | |
protected java.lang.String |
Id
|
protected boolean |
isNew
|
protected static java.lang.String |
LDAP_DATE_PATTERN
|
protected LDAPURL |
ldapurl
|
protected javax.naming.directory.Attributes |
myAttrs
|
protected java.lang.String |
name
|
protected static java.lang.String |
OK
|
protected javax.naming.directory.BasicAttributes |
rmAttrs
|
protected boolean |
updated
|
Fields inherited from interface javax.naming.directory.DirContext |
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE |
Fields inherited from interface javax.naming.Context |
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
Constructor Summary | |
BaseLDAPObject()
|
Method Summary | |
java.lang.Object |
addToEnvironment(java.lang.String propName,
java.lang.Object propVal)
|
void |
bind(javax.naming.Name name,
java.lang.Object obj)
|
void |
bind(javax.naming.Name name,
java.lang.Object obj,
javax.naming.directory.Attributes attrs)
|
void |
bind(java.lang.String name,
java.lang.Object obj)
|
void |
bind(java.lang.String name,
java.lang.Object obj,
javax.naming.directory.Attributes attrs)
|
void |
close()
|
javax.naming.Name |
composeName(javax.naming.Name name,
javax.naming.Name prefix)
|
java.lang.String |
composeName(java.lang.String name,
java.lang.String prefix)
|
java.lang.String |
createId(java.lang.String value)
Creates an "LDAP-safe" ID from a String so that the generated ID is as similar as possible to the original value. |
javax.naming.Context |
createSubcontext(javax.naming.Name name)
|
javax.naming.directory.DirContext |
createSubcontext(javax.naming.Name name,
javax.naming.directory.Attributes attrs)
|
javax.naming.Context |
createSubcontext(java.lang.String name)
|
javax.naming.directory.DirContext |
createSubcontext(java.lang.String name,
javax.naming.directory.Attributes attrs)
|
protected java.util.Hashtable |
deserializePerm(java.lang.String permStorageContentsEncoded)
|
void |
destroySubcontext(javax.naming.Name name)
|
void |
destroySubcontext(java.lang.String name)
|
protected java.lang.String |
fastgetutil(java.lang.String field,
javax.naming.directory.Attributes attrs)
|
protected java.lang.String |
formatDate(java.util.Date date)
|
javax.naming.directory.Attributes |
getAttributes(javax.naming.Name name)
|
javax.naming.directory.Attributes |
getAttributes(javax.naming.Name name,
java.lang.String[] ids)
|
javax.naming.directory.Attributes |
getAttributes(java.lang.String name)
|
javax.naming.directory.Attributes |
getAttributes(java.lang.String name,
java.lang.String[] ids)
|
java.util.Hashtable |
getEnvironment()
|
java.lang.String |
getId()
ID Function Return Value of ID property |
LDAPURL |
getldapurl()
|
java.lang.String |
getName()
|
java.lang.String |
getNameInNamespace()
|
javax.naming.NameParser |
getNameParser(javax.naming.Name name)
|
javax.naming.NameParser |
getNameParser(java.lang.String name)
|
javax.naming.directory.DirContext |
getSchema(javax.naming.Name name)
|
javax.naming.directory.DirContext |
getSchema(java.lang.String name)
|
javax.naming.directory.DirContext |
getSchemaClassDefinition(javax.naming.Name name)
|
javax.naming.directory.DirContext |
getSchemaClassDefinition(java.lang.String name)
|
boolean |
getupdated()
Updated Function Return State of updated property |
protected java.lang.String |
getutil(java.lang.String field)
|
protected java.lang.String |
getutil(java.lang.String field,
javax.naming.directory.Attributes attrs)
|
protected java.util.Vector |
getutil(java.lang.String field,
javax.naming.directory.Attributes attrs,
boolean empty)
|
protected java.util.Vector |
getutil(java.lang.String field,
boolean empty)
|
boolean |
isNew()
|
boolean |
isOK(char value)
Checks if the specified character can be used in LDAP attribute name. |
javax.naming.NamingEnumeration |
list(javax.naming.Name name)
|
javax.naming.NamingEnumeration |
list(java.lang.String name)
|
javax.naming.NamingEnumeration |
listBindings(javax.naming.Name name)
|
javax.naming.NamingEnumeration |
listBindings(java.lang.String name)
|
java.lang.Object |
lookup(javax.naming.Name name)
|
java.lang.Object |
lookup(java.lang.String name)
|
java.lang.Object |
lookupLink(javax.naming.Name name)
|
java.lang.Object |
lookupLink(java.lang.String name)
|
void |
modifyAttributes(javax.naming.Name name,
int mod_op,
javax.naming.directory.Attributes attrs)
|
void |
modifyAttributes(javax.naming.Name name,
javax.naming.directory.ModificationItem[] mods)
|
void |
modifyAttributes(java.lang.String name,
int mod_op,
javax.naming.directory.Attributes attrs)
|
void |
modifyAttributes(java.lang.String name,
javax.naming.directory.ModificationItem[] mods)
|
protected java.util.Date |
parseDate(java.lang.String value)
|
protected java.util.Date |
parseDate(java.lang.String value,
boolean initializeIfNotSet)
|
void |
rebind(javax.naming.Name name,
java.lang.Object obj)
|
void |
rebind(javax.naming.Name name,
java.lang.Object obj,
javax.naming.directory.Attributes attrs)
|
void |
rebind(java.lang.String name,
java.lang.Object obj)
|
void |
rebind(java.lang.String name,
java.lang.Object obj,
javax.naming.directory.Attributes attrs)
|
java.lang.Object |
removeFromEnvironment(java.lang.String propName)
|
protected void |
removeutil(java.lang.String field,
boolean updatable)
|
void |
rename(javax.naming.Name oldName,
javax.naming.Name newName)
|
void |
rename(java.lang.String oldName,
java.lang.String newName)
|
javax.naming.NamingEnumeration |
search(javax.naming.Name name,
javax.naming.directory.Attributes matchingAttributes)
|
javax.naming.NamingEnumeration |
search(javax.naming.Name name,
javax.naming.directory.Attributes matchingAttributes,
java.lang.String[] attributesToReturn)
|
javax.naming.NamingEnumeration |
search(javax.naming.Name name,
java.lang.String filterExpr,
java.lang.Object[] filterArgs,
javax.naming.directory.SearchControls cons)
|
javax.naming.NamingEnumeration |
search(javax.naming.Name name,
java.lang.String filter,
javax.naming.directory.SearchControls cons)
|
javax.naming.NamingEnumeration |
search(java.lang.String name,
javax.naming.directory.Attributes matchingAttributes)
|
javax.naming.NamingEnumeration |
search(java.lang.String name,
javax.naming.directory.Attributes matchingAttributes,
java.lang.String[] attributesToReturn)
|
javax.naming.NamingEnumeration |
search(java.lang.String name,
java.lang.String filterExpr,
java.lang.Object[] filterArgs,
javax.naming.directory.SearchControls cons)
|
javax.naming.NamingEnumeration |
search(java.lang.String name,
java.lang.String filter,
javax.naming.directory.SearchControls cons)
|
protected java.lang.String |
serializePerm(java.util.Hashtable permStorage)
|
void |
setId(java.lang.String Id)
ID Function Set Value of ID property |
void |
setLdapUrl(LDAPURL url)
|
void |
setName(java.lang.String name)
|
void |
setObjectClass(java.lang.String name)
Set's the objectClass for this object. |
void |
setObjectClasses(java.lang.String[] names)
Set's multiple objectClasses for this object. |
protected void |
setutil(java.lang.String field,
java.lang.Object value)
|
protected void |
setutil(java.lang.String field,
java.lang.String value)
|
protected void |
setutil(java.lang.String field,
java.util.Vector values)
|
protected void |
setutil(java.lang.String field,
java.util.Vector values,
boolean create)
|
java.lang.String |
toString()
|
void |
unbind(javax.naming.Name name)
|
void |
unbind(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final java.lang.String OK
protected static final java.lang.String LDAP_DATE_PATTERN
protected LDAPURL ldapurl
protected boolean updated
protected java.lang.String name
protected java.lang.String Id
protected javax.naming.directory.Attributes myAttrs
protected boolean isNew
protected javax.naming.directory.BasicAttributes rmAttrs
Constructor Detail |
public BaseLDAPObject()
Method Detail |
public java.lang.String createId(java.lang.String value)
Creates an "LDAP-safe" ID from a String so that the generated ID is as similar as possible to the original value. For example, value "Ryhmä" ("group" in Finnish language) would be converted to "ryhma". If the value contains an unknown character, it will be replaced by letter 'X'.
public boolean isOK(char value)
Checks if the specified character can be used in LDAP attribute name.
public void setObjectClass(java.lang.String name)
Set's the objectClass for this object.
public void setObjectClasses(java.lang.String[] names)
Set's multiple objectClasses for this object.
protected java.lang.String formatDate(java.util.Date date)
protected java.util.Date parseDate(java.lang.String value)
protected java.util.Date parseDate(java.lang.String value, boolean initializeIfNotSet)
protected java.lang.String serializePerm(java.util.Hashtable permStorage) throws java.lang.Exception
java.lang.Exception
protected java.util.Hashtable deserializePerm(java.lang.String permStorageContentsEncoded) throws java.lang.Exception
java.lang.Exception
public boolean getupdated()
public java.lang.String getId()
public void setId(java.lang.String Id)
Id
- ID property valuepublic java.lang.String getName()
public void setName(java.lang.String name)
public LDAPURL getldapurl()
public void setLdapUrl(LDAPURL url)
public boolean isNew()
protected void removeutil(java.lang.String field, boolean updatable)
protected void setutil(java.lang.String field, java.lang.String value)
protected void setutil(java.lang.String field, java.util.Vector values)
protected void setutil(java.lang.String field, java.util.Vector values, boolean create)
protected void setutil(java.lang.String field, java.lang.Object value)
protected java.lang.String getutil(java.lang.String field)
protected java.util.Vector getutil(java.lang.String field, boolean empty)
protected java.lang.String getutil(java.lang.String field, javax.naming.directory.Attributes attrs)
protected java.lang.String fastgetutil(java.lang.String field, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
javax.naming.NamingException
protected java.util.Vector getutil(java.lang.String field, javax.naming.directory.Attributes attrs, boolean empty)
public javax.naming.directory.Attributes getAttributes(java.lang.String name) throws javax.naming.NamingException
getAttributes
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.directory.Attributes getAttributes(javax.naming.Name name) throws javax.naming.NamingException
getAttributes
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.directory.Attributes getAttributes(java.lang.String name, java.lang.String[] ids) throws javax.naming.NamingException
getAttributes
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.directory.Attributes getAttributes(javax.naming.Name name, java.lang.String[] ids) throws javax.naming.NamingException
getAttributes
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public java.lang.String toString()
public java.lang.Object lookup(javax.naming.Name name) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.String getNameInNamespace() throws javax.naming.NamingException
getNameInNamespace
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookup(java.lang.String name) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
javax.naming.NamingException
public void bind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
javax.naming.NamingException
public void bind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
javax.naming.NamingException
public void rebind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
rebind
in interface javax.naming.Context
javax.naming.NamingException
public void rebind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
rebind
in interface javax.naming.Context
javax.naming.NamingException
public void unbind(javax.naming.Name name) throws javax.naming.NamingException
unbind
in interface javax.naming.Context
javax.naming.NamingException
public void unbind(java.lang.String name) throws javax.naming.NamingException
unbind
in interface javax.naming.Context
javax.naming.NamingException
public void rename(javax.naming.Name oldName, javax.naming.Name newName) throws javax.naming.NamingException
rename
in interface javax.naming.Context
javax.naming.NamingException
public void rename(java.lang.String oldName, java.lang.String newName) throws javax.naming.NamingException
rename
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration list(javax.naming.Name name) throws javax.naming.NamingException
list
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration list(java.lang.String name) throws javax.naming.NamingException
list
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration listBindings(javax.naming.Name name) throws javax.naming.NamingException
listBindings
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration listBindings(java.lang.String name) throws javax.naming.NamingException
listBindings
in interface javax.naming.Context
javax.naming.NamingException
public void destroySubcontext(javax.naming.Name name) throws javax.naming.NamingException
destroySubcontext
in interface javax.naming.Context
javax.naming.NamingException
public void destroySubcontext(java.lang.String name) throws javax.naming.NamingException
destroySubcontext
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Context createSubcontext(javax.naming.Name name) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Context createSubcontext(java.lang.String name) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookupLink(javax.naming.Name name) throws javax.naming.NamingException
lookupLink
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookupLink(java.lang.String name) throws javax.naming.NamingException
lookupLink
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NameParser getNameParser(javax.naming.Name name) throws javax.naming.NamingException
getNameParser
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NameParser getNameParser(java.lang.String name) throws javax.naming.NamingException
getNameParser
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.String composeName(java.lang.String name, java.lang.String prefix) throws javax.naming.NamingException
composeName
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Name composeName(javax.naming.Name name, javax.naming.Name prefix) throws javax.naming.NamingException
composeName
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object addToEnvironment(java.lang.String propName, java.lang.Object propVal) throws javax.naming.NamingException
addToEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object removeFromEnvironment(java.lang.String propName) throws javax.naming.NamingException
removeFromEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.util.Hashtable getEnvironment() throws javax.naming.NamingException
getEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public void close() throws javax.naming.NamingException
close
in interface javax.naming.Context
javax.naming.NamingException
public void modifyAttributes(javax.naming.Name name, int mod_op, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
modifyAttributes
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public void modifyAttributes(java.lang.String name, int mod_op, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
modifyAttributes
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public void modifyAttributes(javax.naming.Name name, javax.naming.directory.ModificationItem[] mods) throws javax.naming.NamingException
modifyAttributes
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public void modifyAttributes(java.lang.String name, javax.naming.directory.ModificationItem[] mods) throws javax.naming.NamingException
modifyAttributes
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public void bind(javax.naming.Name name, java.lang.Object obj, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
bind
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public void bind(java.lang.String name, java.lang.Object obj, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
bind
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public void rebind(javax.naming.Name name, java.lang.Object obj, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
rebind
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public void rebind(java.lang.String name, java.lang.Object obj, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
rebind
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.directory.DirContext createSubcontext(javax.naming.Name name, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.directory.DirContext createSubcontext(java.lang.String name, javax.naming.directory.Attributes attrs) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.directory.DirContext getSchema(javax.naming.Name name) throws javax.naming.NamingException
getSchema
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.directory.DirContext getSchema(java.lang.String name) throws javax.naming.NamingException
getSchema
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.directory.DirContext getSchemaClassDefinition(javax.naming.Name name) throws javax.naming.NamingException
getSchemaClassDefinition
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.directory.DirContext getSchemaClassDefinition(java.lang.String name) throws javax.naming.NamingException
getSchemaClassDefinition
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.NamingEnumeration search(javax.naming.Name name, javax.naming.directory.Attributes matchingAttributes, java.lang.String[] attributesToReturn) throws javax.naming.NamingException
search
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.NamingEnumeration search(java.lang.String name, javax.naming.directory.Attributes matchingAttributes, java.lang.String[] attributesToReturn) throws javax.naming.NamingException
search
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.NamingEnumeration search(javax.naming.Name name, javax.naming.directory.Attributes matchingAttributes) throws javax.naming.NamingException
search
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.NamingEnumeration search(java.lang.String name, javax.naming.directory.Attributes matchingAttributes) throws javax.naming.NamingException
search
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.NamingEnumeration search(javax.naming.Name name, java.lang.String filter, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
search
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.NamingEnumeration search(java.lang.String name, java.lang.String filter, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
search
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.NamingEnumeration search(javax.naming.Name name, java.lang.String filterExpr, java.lang.Object[] filterArgs, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
search
in interface javax.naming.directory.DirContext
javax.naming.NamingException
public javax.naming.NamingEnumeration search(java.lang.String name, java.lang.String filterExpr, java.lang.Object[] filterArgs, javax.naming.directory.SearchControls cons) throws javax.naming.NamingException
search
in interface javax.naming.directory.DirContext
javax.naming.NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |