Interface IDirQueryProvider
public interface IDirQueryProvider
Provider which can search and list users and groups
-
Method Summary
Modifier and TypeMethodDescriptionIf your directory service has a short cut or optization to get users group membership.listPrincipals
(int type, int start, int end) List the registered principals, either users or roleslistPrincipals
(int type, IPagingCookie pagingCookie) Lookup a principal based on its urilookupByDN
(int type, String dn) Lookup a principal based on its dnlookupByID
(int type, String uid) Lookup a principal based on its uiddefault IDirPrincipal
lookupByID
(String uid) Lookup a principal based on its uid.default IDirPrincipal
lookupByUUID
(int type, String uuid) Lookup a principal based on its uuidsearch
(int type, ISearchQuery searchQuery) Query for principals using the criteria contained in a ISearchQuery instancesearch
(int type, ISearchQuery searchQuery, IPagingCookie pagingCoookie) Query for principals using the criteria contained in a ISearchQuery instance (with paging)This isn't an LDAP query, but merely a wildcard query, such as 'bob'search
(int type, String queryString, IPagingCookie pagingCookie) This isn't an LDAP query, but merely a wildcard query, such as 'bob'Most of the time, the query provider will wrap your query appropriately...
-
Method Details
-
getMemberShipShortCut
If your directory service has a short cut or optization to get users group membership.- Parameters:
dn
- of the user to get groups for- Returns:
- the
IDirPrincipalList
- Throws:
PortalException
-
listPrincipals
List the registered principals, either users or roles- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
start
- 0 is the first possible entryend
- must be greater then start or -1 for all- Returns:
- the
IDirPrincipalList
- Throws:
PortalException
-
listPrincipals
- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
pagingCookie
-IPagingCookie
- Returns:
- the
IDirPrincipalList
- Throws:
PortalException
- See Also:
-
search
This isn't an LDAP query, but merely a wildcard query, such as 'bob'- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
queryString
-- Returns:
- the
IDirPrincipalList
- Throws:
PortalException
-
search
IDirPrincipalList search(int type, String queryString, IPagingCookie pagingCookie) throws PortalException This isn't an LDAP query, but merely a wildcard query, such as 'bob'- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
queryString
-pagingCookie
-- Returns:
- the
IDirPrincipalList
- Throws:
PortalException
-
search
Query for principals using the criteria contained in a ISearchQuery instance- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
searchQuery
-- Returns:
- the
IDirPrincipalList
- Throws:
PortalException
-
search
IDirPrincipalList search(int type, ISearchQuery searchQuery, IPagingCookie pagingCoookie) throws PortalException Query for principals using the criteria contained in a ISearchQuery instance (with paging)- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
queryString
-pagingCookie
-- Returns:
- the
IDirPrincipalList
- Throws:
PortalException
-
searchRaw
Most of the time, the query provider will wrap your query appropriately... This will not be wrapped- Parameters:
type
-queryString
-- Returns:
- the
IDirPrincipalList
- Throws:
PortalException
-
lookup
Lookup a principal based on its uri- Parameters:
principalURI
-- Throws:
PortalException
-
lookupByID
Lookup a principal based on its uid- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
uid
-- Throws:
PortalException
-
lookupByID
Lookup a principal based on its uid. First a lookup for group is done, then for a user.- Parameters:
uid
-- Throws:
PortalException
-
lookupByUUID
Lookup a principal based on its uuid- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
uuid
-- Throws:
PortalException
-
lookupByDN
Lookup a principal based on its dn- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
dn
-- Throws:
PortalException
-