public interface IBizPolicyManager extends IComponentProvider
IBizPolicyManager manages all the registered IBizPolicy
s. This includes lifetime events (installation,
uninstallation) as well as access to the IBizPolicy
s.
The IBizPolicyManager extends IThingComponentProvider
and therefore stores all of the metadata about
which policies are available, registered, enabled, etc in the database as instances of
com.webmethods.portal.service.meta2.storage.impl.ComponentData
stored in a system folder.
In order to access an IBizPolicy
use one of the getBizPolicy(java.lang.String)
APIs.
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_POLICY
Deprecated.
use
IBizPolicyNames.ACCESS instead. |
static String |
ALIAS_POLICY
Deprecated.
use
IBizPolicyNames.ALIAS instead. |
static String |
BASIC_POLICY
Deprecated.
use
IBizPolicyNames.BASIC instead. |
static String |
DIRECTORY_POLICY
Deprecated.
use
IBizPolicyNames#DIRECTORY instead. |
static String |
FOLDER_POLICY
Deprecated.
use
IBizPolicyNames.FOLDER instead. |
static String |
INSTALL_POLICY
Deprecated.
use
IBizPolicyNames.INSTALL instead. |
static String |
META_POLICY
Deprecated.
use
IBizPolicyNames.BASIC instead. |
static String |
SYSTEM_POLICY
Deprecated.
use
IBizPolicyNames.SYSTEM instead. |
static String |
TOPIC_POLICY
Deprecated.
use
IBizPolicyNames.TOPIC instead. |
static String |
TOPICSPACE_POLICY
Deprecated.
use
IBizPolicyNames#TOPIC_SPACE instead. |
static String |
USER_POLICY
Deprecated.
use
IBizPolicyNames.USER instead. |
static String |
VERSIONABLE_POLICY
Deprecated.
use
IBizPolicyNames.VERSIONABLE instead. |
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
Modifier and Type | Method and Description |
---|---|
IBizPolicy |
getBizPolicy(IURI uri)
Returns an appropriate interface for the specified resource.
|
IBizPolicy |
getBizPolicy(String bizPolicyName)
Retrieve an
IBizPolicy by name. |
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
acquireURI, acquireURI
@Deprecated static final String SYSTEM_POLICY
IBizPolicyNames.SYSTEM
instead.ISystemPolicy
,
Constant Field Values@Deprecated static final String META_POLICY
IBizPolicyNames.BASIC
instead.IBasicPolicy
,
Constant Field Values@Deprecated static final String ACCESS_POLICY
IBizPolicyNames.ACCESS
instead.IAccessPolicy
,
Constant Field Values@Deprecated static final String ALIAS_POLICY
IBizPolicyNames.ALIAS
instead.IAliasPolicy
,
Constant Field Values@Deprecated static final String TOPICSPACE_POLICY
IBizPolicyNames#TOPIC_SPACE
instead.ITopicSpacePolicy
,
Constant Field Values@Deprecated static final String BASIC_POLICY
IBizPolicyNames.BASIC
instead.IBasicPolicy
,
Constant Field Values@Deprecated static final String FOLDER_POLICY
IBizPolicyNames.FOLDER
instead.IContainerPolicy
,
Constant Field Values@Deprecated static final String TOPIC_POLICY
IBizPolicyNames.TOPIC
instead.IContainerPolicy
,
Constant Field Values@Deprecated static final String VERSIONABLE_POLICY
IBizPolicyNames.VERSIONABLE
instead.IVersionPolicy
,
Constant Field Values@Deprecated static final String DIRECTORY_POLICY
IBizPolicyNames#DIRECTORY
instead.com.webmethods.portal.bizPolicy.biz.directory.IDirectoryPolicy
,
Constant Field Values@Deprecated static final String USER_POLICY
IBizPolicyNames.USER
instead.com.webmethods.portal.bizPolicy.biz.directory.IUserPolicy
,
Constant Field Values@Deprecated static final String INSTALL_POLICY
IBizPolicyNames.INSTALL
instead.IInstallPolicy
,
Constant Field ValuesIBizPolicy getBizPolicy(String bizPolicyName) throws BizException
Retrieve an IBizPolicy
by name. You can use the IBizPolicyNames
(recommended) or the defines in IBizPolicyManager
.
In order to use the IBizPolicy
, cast the returned object to the specific
interface. For example: IBasicPolicy
.
bizPolicyName
- the name of the registered business policy.BizException
- if unable to find the requested bizPolicy interface.IBizPolicy getBizPolicy(IURI uri) throws BizException
Returns an appropriate interface for the specified resource. So for example, if you have an
IThingID
, this will return the appropriate
interface such as IContainerPolicy
if the resource
happens to be an IContainer
.
uri
- the IURI
of the resourceBizException
- if unable to find the appropriate bizPolicy interface.