Interface IDirServiceBizPolicy
- All Superinterfaces:
IBizPolicy
,IComponent
,IInitializable
,ISystemHandler
,IViewableContainerPolicy
,IViewablePolicy
Provides service level biz policies (commands) for the directory system
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPrincipalToGroup
(IContext context, IURI principalURI, IURI groupURI) Adds a principal to a group.void
addPrincipalToRole
(IContext context, IURI principalURI, IURI roleURI) Adds a principal to a role.createPrincipal
(IContext context, IThingID dirServiceID, int type, String uid, Map properties) Creates a new principal associated with this Directory Servicevoid
deletePrincipal
(IContext context, IURI principalURI) Deletes a principalinitializePrincipal
(IContext context, IURI principalURI) Initializes a principal (user/group/role).listPrincipals
(IContext context, IThingID dirServiceID, int type, int start, int end) List the registered principals, either users or roleslistPrincipalsEx
(IContext context, IThingID dirServiceID, int type, IPagingCookie pagingCookie) void
removePrincipalFromGroup
(IContext context, IURI principalURI, IURI groupURI) Removes a principal from a group.void
removePrincipalFromRole
(IContext context, IURI principalURI, IURI roleURI) Removes a principal from a role.searchDirectory
(IContext context, IThingID dirServiceID, int type, String queryString) This isn't an LDAP query, but merely a wildcard query, such as 'bob' that searches for idssearchDirectory
(IContext context, IThingID dirServiceID, int type, String queryString, IPagingCookie pagingCookie) This isn't an LDAP query, but merely a wildcard query, such as 'bob' that searches for idssearchDirectoryRefined
(IContext context, IThingID dirServiceID, int type, ISearchQuery searchQuery) Query for principals using an ISearchQuery object rather than a single keywordsearchDirectoryRefined
(IContext context, IThingID dirServiceID, int type, ISearchQuery searchQuery, IPagingCookie pagingCookie) Query for principals using an ISearchQuery object rather than a single keywordMethods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.bizPolicy.biz.view.IViewableContainerPolicy
getPagingCookie, getPagingCookie, pageBackward, pageForeward, setPagingCookie
Methods inherited from interface com.webmethods.portal.bizPolicy.biz.view.IViewablePolicy
getIcon, view
-
Method Details
-
listPrincipals
IDirPrincipalList listPrincipals(IContext context, IThingID dirServiceID, int type, int start, int end) throws BizException List the registered principals, either users or roles- Parameters:
context
-dirServiceID
- the thingid of the directory servicetype
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
start
- 0 is the first possible entryend
- must be greater then start or -1 for all- Returns:
- the
IDirPrincipalList
- Throws:
BizException
-
listPrincipalsEx
IDirPrincipalList listPrincipalsEx(IContext context, IThingID dirServiceID, int type, IPagingCookie pagingCookie) throws BizException - Parameters:
context
-dirServiceID
- the thingid of the directory servicetype
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
pagingCookie
-IPagingCookie
- Returns:
- the
IDirPrincipalList
- Throws:
BizException
- See Also:
-
searchDirectory
IDirPrincipalList searchDirectory(IContext context, IThingID dirServiceID, int type, String queryString) throws BizException This isn't an LDAP query, but merely a wildcard query, such as 'bob' that searches for ids- Parameters:
context
-dirServiceID
- the thingid of the directory servicetype
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
queryString
-- Returns:
- the
IDirPrincipalList
- Throws:
BizException
-
searchDirectory
IDirPrincipalList searchDirectory(IContext context, IThingID dirServiceID, int type, String queryString, IPagingCookie pagingCookie) throws BizException This isn't an LDAP query, but merely a wildcard query, such as 'bob' that searches for ids- Parameters:
context
-dirServiceID
- the thingid of the directory servicetype
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
queryString
-pagingCookie
-- Returns:
- the
IDirPrincipalList
- Throws:
BizException
-
searchDirectoryRefined
IDirPrincipalList searchDirectoryRefined(IContext context, IThingID dirServiceID, int type, ISearchQuery searchQuery) throws BizException Query for principals using an ISearchQuery object rather than a single keyword- Parameters:
context
-dirServiceID
- the thingid of the directory servicetype
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
searchQuery
-pagingCookie
-- Returns:
- the
IDirPrincipalList
- Throws:
BizException
-
searchDirectoryRefined
IDirPrincipalList searchDirectoryRefined(IContext context, IThingID dirServiceID, int type, ISearchQuery searchQuery, IPagingCookie pagingCookie) throws BizException Query for principals using an ISearchQuery object rather than a single keyword- Parameters:
context
-dirServiceID
- the thingid of the directory servicetype
- eitherIDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
searchQuery
-pagingCookie
-- Returns:
- the
IDirPrincipalList
- Throws:
BizException
-
initializePrincipal
Initializes a principal (user/group/role). This implies registration with the portal's internal data store- Parameters:
context
-principalURI
-- Throws:
BizException
-
createPrincipal
IDirPrincipal createPrincipal(IContext context, IThingID dirServiceID, int type, String uid, Map properties) throws BizException Creates 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:
BizException
-
deletePrincipal
Deletes a principal- Parameters:
principalURI
-- Throws:
BizException
-
addPrincipalToGroup
Adds a principal to a group. Note, both the principal and the group must belong to the sameIDirService
- Parameters:
principalURI
-groupURI
-- Throws:
BizException
-
addPrincipalToRole
Adds a principal to a role. Note, not all roles can be modified- Parameters:
principalURI
-roleURI
-- Throws:
BizException
-
removePrincipalFromGroup
void removePrincipalFromGroup(IContext context, IURI principalURI, IURI groupURI) throws BizException Removes a principal from a group. Note, both the principal and the group must belong to the sameIDirService
- Parameters:
principalURI
-groupURI
-- Throws:
BizException
-
removePrincipalFromRole
Removes a principal from a role. Note, not all roles can be modified- Parameters:
principalURI
-roleURI
-- Throws:
BizException
-