Interface IWebSpacePolicy
- All Superinterfaces:
IBizPolicy
,IComponent
,IInitializable
,ISystemHandler
Class IWebSpacePolicy
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWebSpace
(IContext context, IThingID webspaceID, String alias) Add given uri as a webspace.getWebSpaceName
(IContext context, IThingID webspaceID) Returns webspace name for the given uri.listWebSpaces
(IContext context) Lists all registred webspacesvoid
removeWebSpace
(IContext context, IThingID webspaceID) Removes given uri from the list of webspacesMethods 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
-
Method Details
-
getWebSpaceName
Returns webspace name for the given uri. If uri is a valid webspace then webspace name is a its alias- Parameters:
context
-webspaceID
- uri of portal resource that represents webspace- Returns:
- name of the webspace, null if uri is not a webspace
- Throws:
BizException
-
listWebSpaces
Lists all registred webspaces- Parameters:
context
-- Returns:
- Throws:
BizException
-
addWebSpace
Add given uri as a webspace. Exception is thrown if given uri does not have an alias that could be used as a webspace name- Parameters:
alias
-- Throws:
BizException
-
removeWebSpace
Removes given uri from the list of webspaces- Parameters:
uri
-- Throws:
BizException
-