public interface IExternalDirDataService
Modifier and Type | Method and Description |
---|---|
boolean |
authenticateImpl(String uid,
int type,
Object credentials)
Concrete directory service provider must implement this
|
List<IPrincipalModel> |
getMembership(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 groups
|
default boolean |
isActive() |
List<IPrincipalModel> |
listPrincipals(int type,
int start,
int end)
List the registered principals, either users or groups
|
IPrincipalModel |
lookupByID(int type,
String uid)
Lookup a principal based on its uid
|
List<IPrincipalModel> |
search(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 Service
|
default boolean |
supportsMembershipShortCut()
Indicates whether the service supports a one call search for all nested groups the user is member of.
|
default boolean |
supportsNestedGroups()
Indicates whether the service supports nested groups.
|
boolean authenticateImpl(String uid, int type, Object credentials)
List<IPrincipalModel> search(int type, ISearchQuery query, IPagingCookie cookie) throws PortalException
type
- either IDirConstants.TYPE_USER
or IDirConstants.TYPE_GROUP
queryString
- pagingCookie
- PortalException
IPrincipalModel lookupByID(int type, String uid)
type
- either IDirConstants.TYPE_USER
or IDirConstants.TYPE_GROUP
uid
- PortalException
List<IPrincipalModel> getMembership(int type, boolean parents_or_children, String dn, int resultSize)
type
- either IDirConstants.TYPE_USER
or IDirConstants.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
- List<IPrincipalModel> listPrincipals(int type, int start, int end)
int getTotalPrincipalCount(int type)
void setConfigData(String data)
default boolean supportsNestedGroups()
default boolean supportsMembershipShortCut()
default List<IPrincipalModel> getMembershipShortCut(int type, String userDN)
default boolean isActive()