Interface IDirPrincipalProvider
- All Superinterfaces:
IDirAuthenticator
,IDirAuthenticatorEx
The IDirPrincipalProvider is where an
IDirService
manages it's users and groups. It can add/update/delete these principals.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.webmethods.portal.service.dir.IDirAuthenticatorEx
IDirAuthenticatorEx.IDirAuthenticationCallback
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPrincipalToGroup
(IURI principalURI, IURI groupURI) Adds a principal to a group.createPrincipal
(int type, String uid, Map<String, ? extends Object> properties) Creates a new principal associated with this Directory Servicevoid
deletePrincipal
(IURI principalURI) Deletes a principalgetGroupMembership
(IURI principalURI) Retrieve the group membership for this principalgetMembers
(IURI principalURI) Get the members of this collection.getRoleMembership
(IURI principalURI) Retrieve the role membership for this principalinitializePrincipal
(IURI principalURI) Initializes a principal (user or group).void
removePrincipalFromGroup
(IURI principalURI, IURI groupURI) Removes a principal from a group.default void
updateUserMemberships
(IDirPrincipal principal) Methods inherited from interface com.webmethods.portal.service.dir.IDirAuthenticator
authenticateUser
Methods inherited from interface com.webmethods.portal.service.dir.IDirAuthenticatorEx
authenticateUserEx
-
Method Details
-
initializePrincipal
Initializes a principal (user or group). This implies registration with the portal's internal data store- Parameters:
principalURI
-- Throws:
PortalException
-
getGroupMembership
Retrieve the group membership for this principal- Parameters:
principalURI
-- Returns:
- the
IDirPrincipalList
- Throws:
PortalException
-
getRoleMembership
Retrieve the role membership for this principal- Parameters:
principalURI
-- Returns:
- the
IDirPrincipalList
- Throws:
PortalException
-
getMembers
Get the members of this collection. Not valid for users, only groups and roles- Parameters:
principalURI
-- Returns:
- a membership list
- Throws:
PortalException
-
createPrincipal
IDirPrincipal createPrincipal(int type, String uid, Map<String, ? extends Object> properties) throws PortalExceptionCreates a new principal associated with this Directory Service- Parameters:
type
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
uid
-properties
- name-value pairs- Returns:
- a new IDirPrincipal
- Throws:
PortalException
-
deletePrincipal
Deletes a principal- Parameters:
principalURI
-- Throws:
PortalException
-
addPrincipalToGroup
Adds a principal to a group. Note, both the principal and the group must belong to the sameIDirService
- Parameters:
principalURI
-groupURI
-- Throws:
PortalException
-
removePrincipalFromGroup
Removes a principal from a group. Note, both the principal and the group must belong to the sameIDirService
- Parameters:
principalURI
-groupURI
-- Throws:
PortalException
-
updateUserMemberships
- Throws:
PortalException
-