public interface IDirServiceBizPolicy extends IBizPolicy, IViewableContainerPolicy
Modifier and Type | Method and Description |
---|---|
void |
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.
|
IDirPrincipal |
createPrincipal(IContext context,
IThingID dirServiceID,
int type,
String uid,
Map properties)
Creates a new principal associated with this Directory Service
|
void |
deletePrincipal(IContext context,
IURI principalURI)
Deletes a principal
|
IThingID |
initializePrincipal(IContext context,
IURI principalURI)
Initializes a principal (user/group/role).
|
IDirPrincipalList |
listPrincipals(IContext context,
IThingID dirServiceID,
int type,
int start,
int end)
List the registered principals, either users or roles
|
IDirPrincipalList |
listPrincipalsEx(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.
|
IDirPrincipalList |
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 ids
|
IDirPrincipalList |
searchDirectory(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 ids
|
IDirPrincipalList |
searchDirectoryRefined(IContext context,
IThingID dirServiceID,
int type,
ISearchQuery searchQuery)
Query for principals using an ISearchQuery object rather than a single keyword
|
IDirPrincipalList |
searchDirectoryRefined(IContext context,
IThingID dirServiceID,
int type,
ISearchQuery searchQuery,
IPagingCookie pagingCookie)
Query for principals using an ISearchQuery object rather than a single keyword
|
getPagingCookie, getPagingCookie, pageBackward, pageForeward, setPagingCookie
getIcon, view
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
IDirPrincipalList listPrincipals(IContext context, IThingID dirServiceID, int type, int start, int end) throws BizException
context
- dirServiceID
- the thingid of the directory servicetype
- either IDirConstants.TYPE_USER
or IDirConstants.TYPE_GROUP
start
- 0 is the first possible entryend
- must be greater then start or -1 for allIDirPrincipalList
BizException
IDirPrincipalList listPrincipalsEx(IContext context, IThingID dirServiceID, int type, IPagingCookie pagingCookie) throws BizException
context
- dirServiceID
- the thingid of the directory servicetype
- either IDirConstants.TYPE_USER
or IDirConstants.TYPE_GROUP
pagingCookie
- IPagingCookie
IDirPrincipalList
BizException
listPrincipals(com.webmethods.portal.bizPolicy.IContext, com.webmethods.portal.service.meta2.thing.IThingID, int, int, int)
,
IViewablePolicy.getPagingCookie(com.webmethods.portal.bizPolicy.IContext, com.webmethods.portal.system.IURI, String)
IDirPrincipalList searchDirectory(IContext context, IThingID dirServiceID, int type, String queryString) throws BizException
context
- dirServiceID
- the thingid of the directory servicetype
- either IDirConstants.TYPE_USER
or IDirConstants.TYPE_GROUP
queryString
- IDirPrincipalList
BizException
IDirPrincipalList searchDirectory(IContext context, IThingID dirServiceID, int type, String queryString, IPagingCookie pagingCookie) throws BizException
context
- dirServiceID
- the thingid of the directory servicetype
- either IDirConstants.TYPE_USER
or IDirConstants.TYPE_GROUP
queryString
- pagingCookie
- IDirPrincipalList
BizException
IDirPrincipalList searchDirectoryRefined(IContext context, IThingID dirServiceID, int type, ISearchQuery searchQuery) throws BizException
context
- dirServiceID
- the thingid of the directory servicetype
- either IDirConstants.TYPE_USER
or IDirConstants.TYPE_GROUP
searchQuery
- pagingCookie
- IDirPrincipalList
BizException
IDirPrincipalList searchDirectoryRefined(IContext context, IThingID dirServiceID, int type, ISearchQuery searchQuery, IPagingCookie pagingCookie) throws BizException
context
- dirServiceID
- the thingid of the directory servicetype
- either IDirConstants.TYPE_USER
or IDirConstants.TYPE_GROUP
searchQuery
- pagingCookie
- IDirPrincipalList
BizException
IThingID initializePrincipal(IContext context, IURI principalURI) throws BizException
context
- principalURI
- BizException
IDirPrincipal createPrincipal(IContext context, IThingID dirServiceID, int type, String uid, Map properties) throws BizException
type
- either IDirConstants.TYPE_USER
or IDirConstants.TYPE_GROUP
uid
- properties
- name-value pairsBizException
void deletePrincipal(IContext context, IURI principalURI) throws BizException
principalURI
- BizException
void addPrincipalToGroup(IContext context, IURI principalURI, IURI groupURI) throws BizException
IDirService
principalURI
- groupURI
- BizException
void addPrincipalToRole(IContext context, IURI principalURI, IURI roleURI) throws BizException
principalURI
- roleURI
- BizException
void removePrincipalFromGroup(IContext context, IURI principalURI, IURI groupURI) throws BizException
IDirService
principalURI
- groupURI
- BizException
void removePrincipalFromRole(IContext context, IURI principalURI, IURI roleURI) throws BizException
principalURI
- roleURI
- BizException