|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.services.BaseInitable org.apache.turbine.services.BaseService org.apache.turbine.services.TurbineBaseService org.apache.jetspeed.services.ldap.LDAPService
Field Summary | |
static int |
BASE
|
static int |
DEFAULT_LIMIT
|
static int |
DEFAULT_PORT
|
static int |
DEFAULT_SSLPORT
|
static int |
DEFAULT_TIMEOUT
|
static int |
DEFAULT_VERSION
|
static int |
ONE
|
static java.lang.String |
SERVICE_NAME
|
static int |
SUB
|
Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
Constructor Summary | |
LDAPService()
|
Method Summary | |
boolean |
addAttribute(LDAPURL url,
javax.naming.directory.Attribute at)
Add Attribute Function add given attribute to given LDAPURL . |
boolean |
addEntry(LDAPURL url,
javax.naming.directory.Attributes at)
Add entry Function tries to add object with given LDAPURL and
with given attributes. |
LDAPURL |
buildURL(java.lang.String DN)
Build LDAPURL Function Build LDAPURL with given DN. |
boolean |
checkAndCloseContext(javax.naming.Context context)
|
int |
compare(LDAPURL srcUrl,
LDAPURL dstUrl)
Compare Function Compare given LDAPURL s. |
javax.naming.directory.DirContext |
connect(LDAPURL url)
Connection Function tries to connect given LDAPURL . |
boolean |
deleteAttribute(LDAPURL url,
javax.naming.directory.Attribute at)
Delete Atrribute Function Delete given attribute for given LDAPURL . |
boolean |
deleteAttrs(LDAPURL url,
javax.naming.directory.Attributes ats)
Delete Attributes Function Delete Attributes for given LDAPURL . |
boolean |
deleteEntry(LDAPURL url)
Delete Entry Function Delete given LDAPURL . |
boolean |
deleteTree(LDAPURL url)
Delete Tree Function Delete record with all child node LDAPURL . |
boolean |
disconnect()
Disconnection Function tries to disconnect all connection. |
boolean |
exists(LDAPURL url)
Query existense of an Object Function tries to locate given LDAPURL . |
LDAPURL |
findEntryName(LDAPURL url)
Find Entry Name Function Return entry name for given LDAPURL . |
java.lang.String |
getName(java.lang.String dn)
Return Name Function Return name for given DN. |
LDAPURL |
getReferralUrl(javax.naming.ReferralException e)
Get Referral URL Function Return LDAPURL extracted from exception. |
int |
importEntry(LDAPURL url,
java.lang.String dn,
javax.naming.directory.Attributes entry,
int type)
Import Function Import given LDAPURL to another dn. |
void |
init()
This is the late initialization method called by the Turbine Service framework |
void |
init(javax.servlet.ServletConfig conf)
This is the early initialization method called by the Turbine Service framework |
javax.naming.Name |
parse(java.lang.String dn)
Return Name Function Add Base DN to given DN. |
javax.naming.directory.Attributes |
read(LDAPURL url)
Read Attributes Function Return attributes for given LDAPURL . |
java.lang.String |
removeAttrName(java.lang.String attrvalue)
Get value Function Return value for attribute value pair. |
boolean |
renameEntry(LDAPURL url,
java.lang.String newDN)
Rename Entry Function Rename given LDAPURL with given DN. |
javax.naming.NamingEnumeration |
search(javax.naming.directory.DirContext ctx,
java.lang.String dn,
java.lang.String filter,
java.lang.String[] attribs,
int type)
Search Function Search objects for given Base DN and filter. |
java.util.Vector |
search(LDAPURL url,
java.lang.String filter,
java.lang.String[] attribs,
boolean subTreeScope)
Search Function Search objects for given BaseURL and filter. |
boolean |
synchEntry(LDAPURL url,
javax.naming.directory.Attributes ats)
Sync Entry Function Sync given LDAPURL with given atrributes. |
boolean |
transfer(LDAPURL fromUrl,
LDAPURL toUrl,
boolean delete,
boolean replace,
boolean withChildren)
Transfer Function Transfer given LDAPURL to other LDAPURL . |
boolean |
transferEntry(LDAPURL fromUrl,
javax.naming.directory.Attributes ats,
LDAPURL toUrl,
boolean delete,
boolean replace)
Transfer with updates Function Transfer updated LDAPURL with given modification items
to other LDAPURL . |
boolean |
transferEntry(LDAPURL fromUrl,
LDAPURL toUrl,
boolean delete,
boolean replace)
Transfer without updates Function Transfer LDAPURL to other LDAPURL . |
boolean |
updateAttribute(LDAPURL url,
javax.naming.directory.Attribute at)
Update Atribute Function Update an attribute for given LDAPURL . |
boolean |
updateEntry(LDAPURL url,
javax.naming.directory.Attributes at)
Update Atributes Function Update attributes for given LDAPURL . |
boolean |
updateEntry(LDAPURL url,
javax.naming.directory.Attributes ats,
boolean replace)
Update Entry Function Update attributes for given LDAPURL . |
Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, shutdown |
Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, setInitableBroker |
Field Detail |
public static java.lang.String SERVICE_NAME
public static final int BASE
public static final int ONE
public static final int SUB
public static final int DEFAULT_PORT
public static final int DEFAULT_SSLPORT
public static final int DEFAULT_LIMIT
public static final int DEFAULT_TIMEOUT
public static final int DEFAULT_VERSION
Constructor Detail |
public LDAPService()
Method Detail |
public javax.naming.directory.DirContext connect(LDAPURL url)
LDAPURL
.
url
- LDAPURL
which locate server to connect.
public boolean disconnect()
public boolean checkAndCloseContext(javax.naming.Context context)
public boolean deleteAttribute(LDAPURL url, javax.naming.directory.Attribute at)
LDAPURL
.
url
- object affected.at
- Atribute to delete
public boolean addAttribute(LDAPURL url, javax.naming.directory.Attribute at)
LDAPURL
.
url
- object affected.at
- Atribute to add
public boolean addEntry(LDAPURL url, javax.naming.directory.Attributes at)
LDAPURL
and
with given attributes.
url
- object to create.at
- Atributes to add
public boolean exists(LDAPURL url)
LDAPURL
.
url
- object affected.
public int compare(LDAPURL srcUrl, LDAPURL dstUrl)
LDAPURL
s.
srcUrl
- object affected.dstUrl
- object affected.
public int importEntry(LDAPURL url, java.lang.String dn, javax.naming.directory.Attributes entry, int type)
LDAPURL
to another dn.
url
- object to import.dn
- Dn of new object.entry
- attributes.type
- 0 addnew, 1 update, 2 sync.
public LDAPURL buildURL(java.lang.String DN)
LDAPURL
with given DN.
DN
- DN value for object.
public javax.naming.directory.Attributes read(LDAPURL url)
LDAPURL
.
url
- object to read attributes.
public boolean renameEntry(LDAPURL url, java.lang.String newDN)
LDAPURL
with given DN.
url
- object to modify.newDN
- DN value for new object.
public boolean synchEntry(LDAPURL url, javax.naming.directory.Attributes ats)
LDAPURL
with given atrributes.
url
- object to sync.ats
- Modification items.
public boolean deleteAttrs(LDAPURL url, javax.naming.directory.Attributes ats)
LDAPURL
.
url
- object to modify.ats
- Attributes to delete.
public boolean deleteEntry(LDAPURL url)
LDAPURL
.
url
- object to delete.
public LDAPURL findEntryName(LDAPURL url)
LDAPURL
.
url
- object to modify.
public boolean deleteTree(LDAPURL url)
LDAPURL
.
url
- object to modify.
public boolean transfer(LDAPURL fromUrl, LDAPURL toUrl, boolean delete, boolean replace, boolean withChildren)
LDAPURL
to other LDAPURL
.
fromUrl
- object to transfer.toUrl
- target object.delete
- delete after transfer.replace
- replace if exist.withChildren
- transfer with childs.
public boolean transferEntry(LDAPURL fromUrl, javax.naming.directory.Attributes ats, LDAPURL toUrl, boolean delete, boolean replace)
LDAPURL
with given modification items
to other LDAPURL
.
fromUrl
- object to transfer.toUrl
- target object.delete
- delete after transfer.replace
- replace if exist.ats
- attributes to update.
public boolean transferEntry(LDAPURL fromUrl, LDAPURL toUrl, boolean delete, boolean replace)
LDAPURL
to other LDAPURL
.
fromUrl
- object to transfer.toUrl
- target object.delete
- delete after transfer.replace
- replace if exist.
public boolean updateAttribute(LDAPURL url, javax.naming.directory.Attribute at)
LDAPURL
.
url
- object to update.at
- atrribute to update.
public boolean updateEntry(LDAPURL url, javax.naming.directory.Attributes at)
LDAPURL
.
url
- object to update.at
- atrributes to update.
public boolean updateEntry(LDAPURL url, javax.naming.directory.Attributes ats, boolean replace)
LDAPURL
.
url
- object to update.ats
- atrributes to update.replace
- replace if exist.
public javax.naming.NamingEnumeration search(javax.naming.directory.DirContext ctx, java.lang.String dn, java.lang.String filter, java.lang.String[] attribs, int type) throws javax.naming.NamingException
ctx
- directory context.dn
- Base search DN.filter
- Search filter.attribs
- attributes to receive.type
- search scope 1 Subscope, else 0.
javax.naming.NamingException
public java.util.Vector search(LDAPURL url, java.lang.String filter, java.lang.String[] attribs, boolean subTreeScope)
url
- Base URL .filter
- Search filter.attribs
- attributes to receive.subTreeScope
- true subtree else false.
public java.lang.String removeAttrName(java.lang.String attrvalue)
attrvalue
- input.
public java.lang.String getName(java.lang.String dn)
dn
- DN.
public javax.naming.Name parse(java.lang.String dn)
dn
- full DN.
public LDAPURL getReferralUrl(javax.naming.ReferralException e)
LDAPURL
extracted from exception.
e
- Exception to extract.
public void init(javax.servlet.ServletConfig conf) throws org.apache.turbine.services.InitializationException
Service
framework
conf
- The ServletConfig
org.apache.turbine.services.InitializationException
- if the service fails to initializepublic void init() throws org.apache.turbine.services.InitializationException
Service
framework
org.apache.turbine.services.InitializationException
- if the service fails to initialize
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |