Interface IExternalDirDataService
public interface IExternalDirDataService
-
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticateImpl
(String uid, int type, Object credentials) Concrete directory service provider must implement thisgetMembership
(int type, boolean parents_or_children, String dn, int resultSize) default List<IPrincipalModel>
getMembershipShortCut
(int type, String userDN) Should return all groups the principal is member of.int
getTotalPrincipalCount
(int type) Return the total count of users or groupsdefault boolean
isActive()
default boolean
listPrincipals
(int type, int start, int end) List the registered principals, either users or groupslookupByID
(int type, String uid) Lookup a principal based on its uidsearch
(int type, ISearchQuery query, IPagingCookie cookie) This isn't an LDAP query, but merely a wildcard query, such as 'bob'void
setConfigData
(String data) Setter for config data that comes from the originating Directory Servicedefault boolean
Indicates whether the service supports a one call search for all nested groups the user is member of.default boolean
Indicates whether the service supports nested groups.
-
Method Details
-
authenticateImpl
Concrete directory service provider must implement this -
search
List<IPrincipalModel> search(int type, ISearchQuery query, IPagingCookie cookie) 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
-- Throws:
PortalException
-
lookupByID
Lookup a principal based on its uid- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
uid
-- Throws:
PortalException
-
getMembership
List<IPrincipalModel> getMembership(int type, boolean parents_or_children, String dn, int resultSize) - Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
dn
-parents_or_children
- if true returns groups the principal is member of, else returns the members of the principal or empty list in case of userresultSize
-- Returns:
- ALL groups the principal is member of or ALL children of the principal
-
listPrincipals
List the registered principals, either users or groups -
getTotalPrincipalCount
int getTotalPrincipalCount(int type) Return the total count of users or groups -
setConfigData
Setter for config data that comes from the originating Directory Service -
supportsNestedGroups
default boolean supportsNestedGroups()Indicates whether the service supports nested groups. Default is false. -
supportsMembershipShortCut
default boolean supportsMembershipShortCut()Indicates whether the service supports a one call search for all nested groups the user is member of. Default is false. -
getMembershipShortCut
Should return all groups the principal is member of. Called only if the service's supportsNestedGroups() and supportsMembershipShortCut() methods return true. -
isActive
default boolean isActive() -
isConnected
default boolean isConnected()- Returns:
- Whether a connection is established to the external directory service
-