public interface IDirSystemMechanics extends IViewableMechanics
COMMENTS_LINK_TYPE, CONTENT_LINK_TYPE, DEFAULT_ORDER, DEFAULT_PAGE_SIZE, DEFAULT_SORT, DETAILS_LINK_TYPE, LARGE_ICON_TYPE, LINK_TYPE, LINK_TYPE_COMMENTS, LINK_TYPE_CONTENT, LINK_TYPE_DETAILS, LINK_TYPE_EDIT, LINK_TYPE_HELP, LINK_TYPE_HELP_MAXIMIZED, LINK_TYPE_MAXIMIZED, LINK_TYPE_MINIMIZED, LINK_TYPE_PERMISSIONS, LINK_TYPE_PORTAL_CONTENT, LINK_TYPE_PORTLET_STANDALONE, LINK_TYPE_PROPERTIES, LINK_TYPE_RESTORED, LINK_TYPE_SUBSCRIPTIONS, LINK_TYPE_THUMBNAILS, LINK_TYPE_VERSIONS, PERMISSIONS_LINK_TYPE, PORTAL_CONTENT_LINK_TYPE, PROPERTIES_LINK_TYPE, PROPERTY_LINK_TARGET, PROPERTY_OWNER_NAME, PROPERTY_PARENT_NAME, PROPERTY_TOOLTIP, REFERENCE_ICON_TYPE, SUBSCRIPTIONS_LINK_TYPE, THUMBNAIL_ICON_TYPE, THUMBNAILS_LINK_TYPE, VERSIONS_LINK_TYPE
Modifier and Type | Method and Description |
---|---|
IDirUser |
authenticateUser(String userid,
String password)
Attempts to authenticate the user based on the credentials
with any registered directory service in their configured search order.
|
default IDirUser |
authenticateUser(String userid,
String password,
String oneTimePassword) |
IDirRole |
getAdminRole() |
IThingID |
getAdminRoleID() |
IDirUser |
getAdminUser() |
IThingID |
getAdminUserID() |
IDirGroup |
getEveryoneGroup() |
IThingID |
getEveryoneGroupID() |
IDirUser |
getGuestUser() |
IThingID |
getGuestUserID() |
boolean |
hasAdminRole(IDirPrincipal dirPrincipal) |
IThingIDList |
listDirectoryServices(IThingID userID)
Retrieves the list of
IThing s which
are portlets which implement the IDirService
interface and are currently configured. |
IThingIDList |
listDirectoryServiceTypes()
Retrieves the list of
IThing s that
are portlets which implement the IDirService interface. |
IThingIDList |
listPrincipalAttributeProviders(int type)
Gets all the avaliable
IPrincipalAttributeProvider for a specific type |
IThingIDList |
listRoleProviders(IThingID userID)
Retrieves the list of
IThing s which
are portlets which implement the IRoleProvider
interface and are currently configured. |
IThingIDList |
listRoles()
List the available roles
|
IDirPrincipal |
lookupPrincipalByAlias(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(String principalDN,
int type)
Attempts to lookup a principal by their dn.
|
IDirPrincipal |
lookupPrincipalByID(String principalID,
int type)
Attempts to lookup a principal by their id.
|
IDirPrincipal |
lookupPrincipalByURI(IURI principalUri)
Attempts to lookup a principal by their dn.
|
IThingID |
lookupPrincipalThingIDByAlias(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
|
canView, checkView, createPagingCookie, fireViewEvent, getCss, getCss, getDefaultLinkType, getFormattedProperty, getHierachicalUri, getIcon, getIcon, getLink, getLink, getListProperty, isEnabled, view, view
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
IThingID getAdminUserID() throws PortalException
IThingID
of the admin userPortalException
IDirUser getAdminUser() throws PortalException
IDirUser
of the admin userPortalException
IThingID getEveryoneGroupID() throws PortalException
IThingID
of the everyone groupPortalException
IDirGroup getEveryoneGroup() throws PortalException
IDirGroup
of the everyone groupPortalException
IThingID getGuestUserID() throws PortalException
IThingID
of the guest userPortalException
IDirUser getGuestUser() throws PortalException
IDirUser
of the guest userPortalException
IThingID getAdminRoleID() throws PortalException
IThingID
of the admin rolePortalException
IDirRole getAdminRole() throws PortalException
IDirRole
of the admin rolePortalException
boolean hasAdminRole(IDirPrincipal dirPrincipal) throws PortalException
dirPrincipal
- PortalException
IDirPrincipal lookupPrincipalByID(String principalID, int type) throws PortalException
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
PortalException
IDirPrincipal lookupPrincipalByDN(String principalDN, int type) throws PortalException
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
PortalException
IDirPrincipal lookupPrincipalByURI(IURI principalUri) throws PortalException
principalUri
- PortalException
IDirPrincipal lookupPrincipalByAlias(String alias) throws PortalException
PortalException
IThingID lookupPrincipalThingIDByAlias(String alias) throws PortalException
PortalException
IDirUser authenticateUser(String userid, String password) throws PortalException, AuthenticationException
userid
- password
- IDirUser
which holds critical information describing the userAuthenticationException
PortalException
default IDirUser authenticateUser(String userid, String password, String oneTimePassword) throws PortalException
userid
- password
- oneTimePassword
- Time-Based One-Time Password for two-factor identificationIDirUser
which holds critical information describing the userPortalException
IThingIDList listRoles() throws PortalException
PortalException
IThingIDList listDirectoryServices(IThingID userID) throws PortalException
IThing
s which
are portlets which implement the IDirService
interface and are currently configured.userID
- PortalException
IThingIDList listRoleProviders(IThingID userID) throws PortalException
IThing
s which
are portlets which implement the IRoleProvider
interface and are currently configured.userID
- PortalException
IThingIDList listDirectoryServiceTypes() throws PortalException
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.PortalException
IThingIDList listPrincipalAttributeProviders(int type) throws PortalException
IPrincipalAttributeProvider
for a specific typetype
- 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
PortalException