Interface IWebSpacePolicy

All Superinterfaces:
IBizPolicy, IComponent, IInitializable, ISystemHandler

public interface IWebSpacePolicy extends IBizPolicy
Class IWebSpacePolicy
  • Method Details

    • getWebSpaceName

      String getWebSpaceName(IContext context, IThingID webspaceID) throws BizException
      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

      IListView<IView> listWebSpaces(IContext context) throws BizException
      Lists all registred webspaces
      Parameters:
      context -
      Returns:
      Throws:
      BizException
    • addWebSpace

      void addWebSpace(IContext context, IThingID webspaceID, String alias) throws BizException
      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

      void removeWebSpace(IContext context, IThingID webspaceID) throws BizException
      Removes given uri from the list of webspaces
      Parameters:
      uri -
      Throws:
      BizException