|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.mail.sdk.ldap.DirectoryAccess
This class provides the Directory management APIs. This set of APIs can be used to create, access and manage various email server directory entries like Mail Users, Public Distribution Lists, Private Addressbook entries (contact infos and private distribution lists). Before a caller can access any of thes APIs, one needs to be authorized. The caller must authenticate with LDAP directory using the class oracle.mail.OESContext. Once authenticated, the instance of oracle.mail.OESContext class representing a trusted session needs to be passed to all the directory APIs.
Constructor Summary | |
DirectoryAccess() |
Method Summary | |
void |
CreateContactInfo(oracle.mail.OESContext oesctx, DirectoryObject contactinfo) This method creates a contact info in the directory for the user logged in. |
java.util.Hashtable |
CreateDistributionList(oracle.mail.OESContext oesctx, DirectoryObject list, java.util.Hashtable members) This method creates a distribution list in the directory. |
void |
CreateMailUser(oracle.mail.OESContext oesctx, java.lang.String publicUserDN, DirectoryObject mailuser) This method creates a mailuser in the directory. |
void |
CreatePrivateList(oracle.mail.OESContext oesctx, DirectoryObject privatelist) This method creates a privatelist in the directory for the user logged in. |
void |
DeleteContactInfo(oracle.mail.OESContext oesctx, java.lang.String contactName) This method deletes a contact info from the directory. |
void |
DeleteDistributionList(oracle.mail.OESContext oesctx, java.lang.String emailId) This method deletes a Distribution List from the directory. |
void |
DeleteMailUser(oracle.mail.OESContext oesctx, java.lang.String emailId) This method deletes a mailuser from the directory and db. |
void |
DeletePrivateList(oracle.mail.OESContext oesctx, java.lang.String listName) This method deletes a private list from the directory. |
java.lang.String[] |
GetAllContacts(oracle.mail.OESContext oesctx) This method retrieves all Contacts for the user logged on. |
java.lang.String[] |
GetAllPrivateLists(oracle.mail.OESContext oesctx) This method retrieves all private lists for the user logged on. |
DirectoryObject |
GetContactInfoMetaData(oracle.mail.OESContext oesctx) This method returns the metadata for a user's private address book contact info object. |
DirectoryObject |
GetDistributionListMetaData(oracle.mail.OESContext oesctx, java.lang.String domain) This method returns the metadata for a public distribution list (DL). |
DirectoryObject |
GetMailUserMetaData(oracle.mail.OESContext oesctx, java.lang.String domain) This method returns the metadata for a mailuser. |
DirectoryObject |
GetPrivateListMetaData(oracle.mail.OESContext oesctx) This method returns the metadata for a user's private list object. |
DirectoryObject |
LookupContactInfo(oracle.mail.OESContext oesctx, java.lang.String contactName) This method looks up a contact for the mailuser logged in. |
DirectoryObject |
LookupDistributionList(oracle.mail.OESContext oesctx, java.lang.String emailId) This method looks up a Distribution List. |
DirectoryObject |
LookupMailUser(oracle.mail.OESContext oesctx, java.lang.String emailId) This method looks up a mailuser. |
DirectoryObject |
LookupPrivateList(oracle.mail.OESContext oesctx, java.lang.String listName) This method looks up a private list for the mailuser logged in. |
void |
ModifyContactInfo(oracle.mail.OESContext oesctx, DirectoryObject contactinfo) This method modifies a contact info in the directory. |
void |
ModifyDistributionList(oracle.mail.OESContext oesctx, java.lang.String emailId, DirectoryObject dl) This method modifies a DL in the directory. |
java.util.Vector |
ModifyDistributionListMembers(oracle.mail.OESContext oesctx, java.lang.String emailId, java.lang.String modificationType, java.lang.String memberType, java.util.Vector members) This method modifies the members of a DL in the directory. |
void |
ModifyMailUser(oracle.mail.OESContext oesctx, java.lang.String emailId, DirectoryObject mailUser) This method modifies a mailuser in the directory. |
void |
ModifyPrivateList(oracle.mail.OESContext oesctx, DirectoryObject privatelist) This method modifies a private list in the directory. |
java.util.Vector |
QueryMailUsers(oracle.mail.OESContext oesctx, java.lang.String queryString, java.lang.String domain) This method queries for mailusers in the directory for the given search criteria. |
java.util.Hashtable |
ResolveDistributionList(oracle.mail.OESContext oesctx, java.lang.String emailId) This method provides resolution of list. |
java.util.Vector |
ResolvePrivateList(oracle.mail.OESContext oesctx, java.lang.String listName, java.lang.String resolutionType) This method resolves the list to the given resolution type. |
java.util.Vector |
RetrieveAttribValueFromCache(oracle.mail.OESContext oesctx, java.lang.String attribute) When a user is authenticated, certain user attributes like the quota, voice quota, user id, user state etc get cached. |
java.lang.String[] |
SearchContacts(oracle.mail.OESContext oesctx, java.lang.String searchCriteria) This method retrieves all Contacts for the user logged on for the given search criteria. |
java.lang.String[] |
SearchPrivateLists(oracle.mail.OESContext oesctx, java.lang.String searchCriteria) This method retrieves all private lists for the user logged on for the given search criteria. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DirectoryAccess()
Method Detail |
public DirectoryObject GetMailUserMetaData(oracle.mail.OESContext oesctx, java.lang.String domain) throws DirectoryException
oesctx
- The caller's OES context. This must have been an authenticated oes context.domain
- The domain under which users will be created. for eg, for us.oracle.comDirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void CreateMailUser(oracle.mail.OESContext oesctx, java.lang.String publicUserDN, DirectoryObject mailuser) throws DirectoryException
oesctx
- The caller's OES context. This must have been an authenticated oes context.publicUser
- The public user dn. This is the public user at the organizational level. This user must have been created prior to creating the mailuser.mailUser
- The mail user attribute and values.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public DirectoryObject LookupMailUser(oracle.mail.OESContext oesctx, java.lang.String emailId) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.emailId
- The fully qualified emailid of the user. For ex., user1@oracle.com.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public java.util.Vector QueryMailUsers(oracle.mail.OESContext oesctx, java.lang.String queryString, java.lang.String domain) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.queryString
- The query string, for eg, * returns mail ids of all users t* returns mails ids of users starting with "t".domain
- The domain where the users are to be searched for, for eg. oracle.comDirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void ModifyMailUser(oracle.mail.OESContext oesctx, java.lang.String emailId, DirectoryObject mailUser) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.emailId
- The fully qualified emailid of the user to be modified. For ex., user1@oracle.com.mailUser
- The new data for modification. It can be set using the modifyAttributeValue method of the DirectoryObject class. The caller needs to specify the type of modification. The list of allowed modifications are as follows.
DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void DeleteMailUser(oracle.mail.OESContext oesctx, java.lang.String emailId) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.emailId
- The fully qualified emailid of the user to be deleted. For ex., user1@oracle.com.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public DirectoryObject GetDistributionListMetaData(oracle.mail.OESContext oesctx, java.lang.String domain) throws DirectoryException
oesctx
- The caller's OES context. This must have been an authenticated oes context.domain
- The domain under which DL will be created. for eg, for us.oracle.comDirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public java.util.Hashtable CreateDistributionList(oracle.mail.OESContext oesctx, DirectoryObject list, java.util.Hashtable members) throws DirectoryException
oesctx
- The caller's OES context. This must have been an authenticated oes context.list
- The DL attributes and values, the mail attribute must contain the fully qualified mailid for the distribution list for example, list1@oracle.com. The attribute valuea can be set as shown above.members
- A hashtable containing the members of the list. The key of the hashtable is a string representing the type of member, it can be one of the following.
DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public DirectoryObject LookupDistributionList(oracle.mail.OESContext oesctx, java.lang.String emailId) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.emailId
- The fully qualified emailid of the DL.For ex., list1@oracle.com.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void ModifyDistributionList(oracle.mail.OESContext oesctx, java.lang.String emailId, DirectoryObject dl) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.emailId
- The fully qualified emailid of the DL to be modified. For ex., list1@oracle.com.dl
- The new data for modification . It can be set using the modifyAttributeValue method of the DirectoryObject class. The caller needs to specify the type of modification. The list of allowed modifications are as follows.
DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void DeleteDistributionList(oracle.mail.OESContext oesctx, java.lang.String emailId) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.emailId
- The fully qualified emailid of the DL to be deleted. For ex., list1@oracle.com.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public java.util.Hashtable ResolveDistributionList(oracle.mail.OESContext oesctx, java.lang.String emailId) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.emailId
- The fully qualified emailid of the DL to be resolved. For ex., list1@oracle.com.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public java.util.Vector ModifyDistributionListMembers(oracle.mail.OESContext oesctx, java.lang.String emailId, java.lang.String modificationType, java.lang.String memberType, java.util.Vector members) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.emailId
- The fully qualified emailid of the DL to be modified. For ex., list1@oracle.com.modificationType
- The type of modification operation. The list of allowed modifications are as follows.
memberType
- The type of members for the modification operaion. The list of allowed membertypes are
members
- The members to be added or deletd. Is a vector of string values depending on the type.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public DirectoryObject GetContactInfoMetaData(oracle.mail.OESContext oesctx) throws DirectoryException
oesctx
- The caller's OES context. This must have been an authenticated oes context belonging to the user logged on.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void CreateContactInfo(oracle.mail.OESContext oesctx, DirectoryObject contactinfo) throws DirectoryException
oesctx
- The caller's OES context. This must have been an authenticated oes context.contactinfo
- The contact info attribute and values.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public DirectoryObject LookupContactInfo(oracle.mail.OESContext oesctx, java.lang.String contactName) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.contactName
- The name of the contact in the user's addressbook.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void ModifyContactInfo(oracle.mail.OESContext oesctx, DirectoryObject contactinfo) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.contactinfo
- The new data for modification. It can be set using the modifyAttributeValue method of the DirectoryObject class. The caller needs to specify the type of modification. The list of allowed modifications are as follows.
DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void DeleteContactInfo(oracle.mail.OESContext oesctx, java.lang.String contactName) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.contactName
- The name of the contact to be deleted.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public java.lang.String[] GetAllContacts(oracle.mail.OESContext oesctx) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public java.lang.String[] SearchContacts(oracle.mail.OESContext oesctx, java.lang.String searchCriteria) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.searchCriteria
- The search criteria in the ldap filter format oes context.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public DirectoryObject GetPrivateListMetaData(oracle.mail.OESContext oesctx) throws DirectoryException
oesctx
- The caller's OES context. This must have been an authenticated oes context belonging to the user logged on.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void CreatePrivateList(oracle.mail.OESContext oesctx, DirectoryObject privatelist) throws DirectoryException
oesctx
- The caller's OES context. This must have been an authenticated oes context.privatelist
- The private list attribute and values.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public DirectoryObject LookupPrivateList(oracle.mail.OESContext oesctx, java.lang.String listName) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.listName
- The name of the private list in the user's addressbook.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void ModifyPrivateList(oracle.mail.OESContext oesctx, DirectoryObject privatelist) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.privatelist
- The new data for modification. It can be set using the modifyAttributeValue method of the DirectoryObject class. The caller needs to specify the type of modification. The list of allowed modifications are as follows.
DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public void DeletePrivateList(oracle.mail.OESContext oesctx, java.lang.String listName) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.listName
- The name of the private list to be deleted.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public java.lang.String[] GetAllPrivateLists(oracle.mail.OESContext oesctx) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public java.lang.String[] SearchPrivateLists(oracle.mail.OESContext oesctx, java.lang.String searchCriteria) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.searchCriteria
- The search criteria in the ldap filter format oes context.DirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public java.util.Vector ResolvePrivateList(oracle.mail.OESContext oesctx, java.lang.String listName, java.lang.String resolutionType) throws DirectoryException
oescxt
- The caller's OES context. This must have been an authenticated oes context.listName
- The name of the private listresolutionType
- The resolution type, which is the attribute name to resolve toDirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.public java.util.Vector RetrieveAttribValueFromCache(oracle.mail.OESContext oesctx, java.lang.String attribute) throws DirectoryException
oescxt
- The authenticated user OES context.attribute
- The name of the attributeDirectoryException
- Throws DirectoryException if any error is encountered. The getMessage method can be used to retrieve error message from this exception.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |