Interface IDirSystemBizPolicy

All Superinterfaces:
IBizPolicy, IComponent, IDirConstants, IInitializable, ISystemHandler

public interface IDirSystemBizPolicy extends IBizPolicy, IDirConstants
Provides system level biz policies (commands) for the directory system
  • Method Details

    • authenticateUser

      IDirUser authenticateUser(IContext context, String userid, String password) throws BizException
      Attempts to authenticate the user based on the credentials with any registered directory service in their configured search order.
      Parameters:
      context -
      userid -
      password -
      Returns:
      an instance of IDirUser which holds critical information describing the user
      Throws:
      BizException
    • authenticateUser

      IDirUser authenticateUser(IContext context, String userid, String password, boolean impersonate) throws BizException
      Attempts to authenticate the user based on the credentials with any registered directory service in their configured search order.
      Parameters:
      context -
      userid -
      password -
      impersonate - true if the current user context should switch to the authenticated user
      Returns:
      an instance of IDirUser which holds critical information describing the user
      Throws:
      BizException
    • authenticateUser

      default IDirUser authenticateUser(IContext context, String userID, String password, String oneTimePassword) throws BizException
      Attempts to authenticate the user based on the credentials with any registered directory service in their configured search order.
      Parameters:
      context -
      userid -
      password -
      Time - -Based One-Time Password for two-factor identification
      Returns:
      an instance of IDirUser which holds critical information describing the user
      Throws:
      BizException
    • authenticateUser

      default IDirUser authenticateUser(IContext context, String userID, String password, String oneTimePassword, boolean impersonate) throws BizException
      Attempts to authenticate the user based on the credentials with any registered directory service in their configured search order.
      Parameters:
      context -
      userid -
      password -
      time - -based one-time password for two-factor identification
      impersonate - true if the current user context should switch to the authenticated user
      Returns:
      an instance of IDirUser which holds critical information describing the user
      Throws:
      BizException
    • listRoles

      IThingIDList listRoles(IContext context) throws BizException
      List the available roles
      Parameters:
      context -
      Returns:
      the list of registered roles
      Throws:
      BizException
    • listDirectoryServices

      IThingIDList listDirectoryServices(IContext context) throws BizException
      Retrieves the list of IThings which are portlets which implement the IDirService interface and are currently configured.
      Parameters:
      context -
      Returns:
      list of IThingIDs
      Throws:
      BizException
    • listDirectoryServiceTypes

      IThingIDList listDirectoryServiceTypes(IContext context) throws BizException
      Retrieves the list of IThings 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.
      Parameters:
      context -
      Returns:
      list of IThingIDs
      Throws:
      BizException
    • listPrincipalAttributeProviders

      IThingIDList listPrincipalAttributeProviders(IContext context, int type) throws BizException
      Gets all the avaliable IPrincipalAttributeProvider for a specific type
      Parameters:
      context -
      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
      Returns:
      list of thingids
      Throws:
      BizException
    • lookupPrincipalByID

      IDirPrincipal lookupPrincipalByID(IContext context, String principalID, int type) throws BizException
      Attempts to lookup a principal by their id. Delegates to the directory service in their configured search order. If found, this principal will be guaranteed to be initialized
      Parameters:
      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
      Returns:
      the found IDirPrincipal or null
      Throws:
      BizException
    • lookupPrincipalByDN

      IDirPrincipal lookupPrincipalByDN(IContext context, String principalDN, int type) throws BizException
      Attempts to lookup a principal by their dn. Delegates to the directory service in their configured search order. If found, this principal will be guaranteed to be initialized
      Parameters:
      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
      Returns:
      the found IDirPrincipal or null
      Throws:
      BizException
    • lookupPrincipalByURI

      IDirPrincipal lookupPrincipalByURI(IContext context, IURI principalUri) throws BizException
      Attempts to lookup a principal by their dn. Delegates to the directory service in their configured search order. If found, this principal will be guaranteed to be initialized
      Parameters:
      context -
      principalUri -
      Returns:
      the found IDirPrincipal or null
      Throws:
      BizException
    • lookupPrincipalByAlias

      IDirPrincipal lookupPrincipalByAlias(IContext context, String alias) throws BizException
      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
      Throws:
      BizException