Interface IDirSystem
- All Superinterfaces:
IComponent
,IComponentProvider
,IDirConstants
,IInitializable
,IURIResolver
The IDirSystem manages the lifecycle of all
IDirService
s.
If you need to obtain a reference or discover an IDirService
then you start with the IDirSystem.
The IDirSystem also extends IComponentProvider
so it can participate in the IURIResolver.acquireURI(String)
and the
IComponentProvider.lookup(com.webmethods.portal.system.IURI)
apis.The IDirSystem uses lazy-initialization for all of its apis.
-
Field Summary
Fields inherited from interface com.webmethods.portal.system.IComponentProvider
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
Fields inherited from interface com.webmethods.portal.service.dir.IDirConstants
ADMIN_ROLE_ALIAS, ADMIN_USER_ALIAS, ADMINISTRATOR, 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearCache
(IURI uri) Clears any caches for this urigetDirectoryServiceDefaultValues
(String dirServiceXType, String subType) Returns theIDirService
portlet which is associated with this IThingIDReturns the IThingID which represents theIDirService
getDirectoryServiceFromThingID
(IThingID thingID) Returns theIDirService
portlet which is associated with this IThingIDdefault IDirService
getDirectoryServiceFromThingID
(IThingID thingID, boolean includeDisabled) Returns theIDirService
portlet which is associated with this IThingIDRetrieves the list ofIThing
s which are portlets which implement theIDirService
interface and are currently configured.default IThingIDList
getDirectoryServices
(boolean includeDisabled) Retrieves the list ofIThing
s which are portlets which implement theIDirService
interface and are currently configured.getDirectoryServices
(IThingID userID) Retrieves the list ofIThing
s which are portlets which implement theIDirService
interface and are currently configured.getDirectoryServices
(IThingID userID, boolean filterNonEditable) Retrieves the list ofIThing
s which are portlets which implement theIDirService
interface and are currently configured, filtered by editable directory servicegetPrincipalAttributeProvider
(IThingID thingID) Get the Principal Attribute ProvidergetPrincipalAttributeProviders
(int type) Gets all the avaliableIPrincipalAttributeProvider
for a specific typeRetrieves the list ofIThing
s that are portlets which implement theIDirService
interface.Returns the IThingID which represents theISecurityService
getSecurityServiceFromThingID
(IThingID thingID) Returns theISecurityService
portlet which is associated with this IThingIDRetrieves the list ofIThing
s which are portlets which implement theISecurityService
interface and are currently configured.getSecurityServices
(IThingID userID) Retrieves the list ofIThing
s which are portlets which implement theISecurityService
interface and are currently configured.Returns the internal System directory serviceMethods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.IComponentProvider
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.system.IURIResolver
acquireURI, acquireURI
-
Method Details
-
getDirectoryServices
Retrieves the list ofIThing
s which are portlets which implement theIDirService
interface and are currently configured.- Returns:
- list of IThingIDs
- Throws:
PortalException
- See Also:
-
getDirectoryServices
Retrieves the list ofIThing
s which are portlets which implement theIDirService
interface and are currently configured.- Parameters:
includeDisabled
- - include the services which are disabled- Returns:
- list of IThingIDs
- Throws:
PortalException
- See Also:
-
getDirectoryServices
Retrieves the list ofIThing
s which are portlets which implement theIDirService
interface and are currently configured.- Parameters:
userID
- filtered for the current user- Returns:
- list of IThingIDs
- Throws:
PortalException
- See Also:
-
getDirectoryServices
IThingIDList getDirectoryServices(IThingID userID, boolean filterNonEditable) throws PortalException Retrieves the list ofIThing
s which are portlets which implement theIDirService
interface and are currently configured, filtered by editable directory service- Parameters:
userID
- filtered for the current userfilterNonEditable
- only include editable directory services- Returns:
- list of IThingIDs
- Throws:
PortalException
- See Also:
-
getRegisteredDirectoryServiceTypes
Retrieves the list ofIThing
s that are portlets which implement theIDirService
interface. These are default instances that are available to be published and configured, but are not currently active. Think of these as templates.- Returns:
- list of IThingIDs
- Throws:
PortalException
- See Also:
-
getDirectoryServiceFromName
Returns the IThingID which represents theIDirService
- Parameters:
name
- of the service- Returns:
- the IThingID associated with the portlet that implements an
IDirService
- Throws:
PortalException
- See Also:
-
getDirectoryServiceFromThingID
default IDirService getDirectoryServiceFromThingID(IThingID thingID, boolean includeDisabled) throws PortalException Returns theIDirService
portlet which is associated with this IThingID- Parameters:
thingID
-includeDisabled
- - return the service even if it is disabled- Returns:
- an
IDirService
- Throws:
PortalException
-
getDirectoryServiceFromThingID
Returns theIDirService
portlet which is associated with this IThingID- Parameters:
thingID
-- Returns:
- an
IDirService
- Throws:
PortalException
-
getDirectoryServiceDefaultValues
default Map<String,Object> getDirectoryServiceDefaultValues(String dirServiceXType, String subType) throws PortalException Returns theIDirService
portlet which is associated with this IThingID- Parameters:
dirServiceXType
- - valid values are "wm_xt_ldapdirsvc", "wm_xt_extdirsvc" , "wm_xt_dbdirsvc"subType
- - optional(only used for LDAP type) valid values are "adsi", "adam"- Returns:
- an {Map<String, Object>} containing all the default keys and their default values for the particular dir service type
- Throws:
PortalException
-
getSystemDirectoryService
Returns the internal System directory service- Throws:
PortalException
-
getPrincipalAttributeProviders
Gets all the avaliableIPrincipalAttributeProvider
for a specific type- Parameters:
type
- eitherIDirConstants.TYPE_USER
IDirConstants.TYPE_GROUP
orIDirConstants.TYPE_ROLE
- Returns:
- a list of thingids
- Throws:
PortalException
-
getPrincipalAttributeProvider
Get the Principal Attribute Provider- Parameters:
thingID
-- Returns:
- the principal Attribute provider
- Throws:
PortalException
-
getSecurityServices
Retrieves the list ofIThing
s which are portlets which implement theISecurityService
interface and are currently configured.- Returns:
- list of IThingIDs
- Throws:
PortalException
- See Also:
-
getSecurityServices
Retrieves the list ofIThing
s which are portlets which implement theISecurityService
interface and are currently configured.- Parameters:
userID
- filtered for the current user- Returns:
- list of IThingIDs
- Throws:
PortalException
- See Also:
-
getSecurityServiceFromName
Returns the IThingID which represents theISecurityService
- Parameters:
name
- of the service- Returns:
- the IThingID associated with the portlet that implements an
ISecurityService
- Throws:
PortalException
-
getSecurityServiceFromThingID
Returns theISecurityService
portlet which is associated with this IThingID- Parameters:
thingID
-- Returns:
- an
ISecurityService
- Throws:
PortalException
-
getRoleSystem
IRoleSystem getRoleSystem()- Returns:
- the Directory System's role system
- See Also:
-
clearCache
Clears any caches for this uri- Throws:
PortalException
-