public interface IDirSystemBizPolicy extends IBizPolicy, IDirConstants
ADMIN_ROLE_ALIAS, ADMIN_USER_ALIAS, ATTR_DISABLED, ATTR_DN, ATTR_EMAIL, ATTR_NAME, ATTR_PASSWORD, CATEGORY_DIRECTORY, CHANGE_PASS, CHANGE_PASS_SUCCESS_ATTR, CONFIRM_PASSWORD_PARAM, DELETED_THINGS_USER, DIR_SVC_CONTAINER, DIR_SVC_TYPE_CONTAINER, DIRECTORY_ROOT, DISPLAY_URI_SEGMENT, DOMAIN_PREFIX_SEPARATOR, EVERYONE_GROUP_ALIAS, FIRST_NAME, FULL_NAME, GROUP_DN_SEGMENT, GROUP_NAME, GUEST_USER_ALIAS, IS_SYSADMIN_ATTR, LAST_NAME, NEW_PASSWORD_PARAM, PAP_GROUP_TYPE_CONTAINER, PAP_PORTAL_ATTRIBUTES, PAP_ROLE_TYPE_CONTAINER, PAP_USER_TYPE_CONTAINER, PROPERTY_PASSWORDVALIDUNTIL, ROLE_CURRENT_ROLES, ROLE_DN_PREFIX, ROLE_DN_SEGMENT, ROLE_PROVIDER_CONTAINER, ROLE_RELATION, ROLE_STORAGE_CONTAINER, SECURITY_SVC_CONTAINER, SKIP_CHECK_AUTH_ATTR, SYSADMIN, SYSTEM_DIRECTORY_SERVICE_ALIAS, TOTP_ADMIN_ALIAS, TOTP_AUTH, TOTP_CATEGORY, TOTP_CREDENTIALS, TOTP_PREFIX, TOTP_SERVICE_TOKEN, TOTP_TOKEN_NAME, TYPE_GROUP, TYPE_NAME_DIRECTORY_ROOT, TYPE_NAME_GROUP, TYPE_NAME_PRINCIPAL, TYPE_NAME_ROLE, TYPE_NAME_SERVICE, TYPE_NAME_USER, TYPE_ROLE, TYPE_USER, USER_DN_SEGMENT, USER_UUID
Modifier and Type | Method and Description |
---|---|
IDirUser |
authenticateUser(IContext context,
String userid,
String password)
Attempts to authenticate the user based on the credentials
with any registered directory service in their configured search order.
|
IDirUser |
authenticateUser(IContext context,
String userid,
String password,
boolean impersonate)
Attempts to authenticate the user based on the credentials
with any registered directory service in their configured search order.
|
default IDirUser |
authenticateUser(IContext context,
String userID,
String password,
String oneTimePassword)
Attempts to authenticate the user based on the credentials
with any registered directory service in their configured search order.
|
default IDirUser |
authenticateUser(IContext context,
String userID,
String password,
String oneTimePassword,
boolean impersonate)
Attempts to authenticate the user based on the credentials
with any registered directory service in their configured search order.
|
IThingIDList |
listDirectoryServices(IContext context)
Retrieves the list of
IThing s which
are portlets which implement the IDirService
interface and are currently configured. |
IThingIDList |
listDirectoryServiceTypes(IContext context)
Retrieves the list of
IThing s that
are portlets which implement the IDirService interface. |
IThingIDList |
listPrincipalAttributeProviders(IContext context,
int type)
Gets all the avaliable
IPrincipalAttributeProvider for a specific type |
IThingIDList |
listRoles(IContext context)
List the available roles
|
IDirPrincipal |
lookupPrincipalByAlias(IContext context,
String alias)
The aliases can be one of the following:
ADMIN_USER_ALIAS: dir.admin.user
EVERYONE_GROUP_ALIAS: dir.everyone.group
GUEST_USER_ALIAS: dir.guest.user
ADMIN_ROLE_ALIAS: dir.admin.role
|
IDirPrincipal |
lookupPrincipalByDN(IContext context,
String principalDN,
int type)
Attempts to lookup a principal by their dn.
|
IDirPrincipal |
lookupPrincipalByID(IContext context,
String principalID,
int type)
Attempts to lookup a principal by their id.
|
IDirPrincipal |
lookupPrincipalByURI(IContext context,
IURI principalUri)
Attempts to lookup a principal by their dn.
|
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
IDirUser authenticateUser(IContext context, String userid, String password) throws BizException
context
- userid
- password
- IDirUser
which holds critical information describing the userBizException
IDirUser authenticateUser(IContext context, String userid, String password, boolean impersonate) throws BizException
context
- userid
- password
- impersonate
- true if the current user context should switch to the authenticated userIDirUser
which holds critical information describing the userBizException
default IDirUser authenticateUser(IContext context, String userID, String password, String oneTimePassword) throws BizException
context
- userid
- password
- Time-Based
- One-Time Password for two-factor identificationIDirUser
which holds critical information describing the userBizException
default IDirUser authenticateUser(IContext context, String userID, String password, String oneTimePassword, boolean impersonate) throws BizException
context
- userid
- password
- time-based
- one-time password for two-factor identificationimpersonate
- true if the current user context should switch to the authenticated userIDirUser
which holds critical information describing the userBizException
IThingIDList listRoles(IContext context) throws BizException
context
- BizException
IThingIDList listDirectoryServices(IContext context) throws BizException
IThing
s which
are portlets which implement the IDirService
interface and are currently configured.context
- BizException
IThingIDList listDirectoryServiceTypes(IContext context) throws BizException
IThing
s that
are portlets which implement the IDirService
interface. These are default instances that are available
to be published and configured, but are not currently active. Think of these as templates.context
- BizException
IThingIDList listPrincipalAttributeProviders(IContext context, int type) throws BizException
IPrincipalAttributeProvider
for a specific typecontext
- type
- one of com.webmethods.portal.service.dir.IDirSystem.TYPE_USER
com.webmethods.portal.service.dir.IDirSystem.TYPE_GROUP
or com.webmethods.portal.service.dir.IDirSystem.TYPE_ROLE
BizException
IDirPrincipal lookupPrincipalByID(IContext context, String principalID, int type) throws BizException
context
- principalID
- type
- one of com.webmethods.portal.service.dir.IDirSystem.TYPE_USER
com.webmethods.portal.service.dir.IDirSystem.TYPE_GROUP
or com.webmethods.portal.service.dir.IDirSystem.TYPE_ROLE
BizException
IDirPrincipal lookupPrincipalByDN(IContext context, String principalDN, int type) throws BizException
context
- principalDN
- type
- one of com.webmethods.portal.service.dir.IDirSystem.TYPE_USER
com.webmethods.portal.service.dir.IDirSystem.TYPE_GROUP
or com.webmethods.portal.service.dir.IDirSystem.TYPE_ROLE
BizException
IDirPrincipal lookupPrincipalByURI(IContext context, IURI principalUri) throws BizException
context
- principalUri
- BizException
IDirPrincipal lookupPrincipalByAlias(IContext context, String alias) throws BizException
BizException