com.webmethods.portal.bizPolicy.biz.system
Interface ISystemPolicy


public interface ISystemPolicy

System wide available Policies


Method Summary
 List computeDependenciesFromXMLImport(IContext context, String xmlLocation)
          Returns a list of strings specifying the xtypes required in order to import the xml
 void createUserFolders(IContext context)
          Create the users standard folders if they do not exist.
 List importCoreComponents(IContext context, IComponentProvider provider, String configLocation)
          This will import any core components defined in an existing location for a specific provider.
 void shutdown(IContext context, int status)
          Initiates portal system shutdown
 List xmlImport(IContext context, Element configElement, IURI parent)
          Performs a bulk import of objects described by the configElement Please refer to the XMLImport Mini-Spec for details.
 List xmlMacro(IContext context, IURI xmlTemplate, Map properties)
          Performs a bulk import of objects described by the xml in the xmlTemplate, replacing the entities from the name value pairs in the properties map
 

Method Detail

xmlImport

List xmlImport(IContext context,
               Element configElement,
               IURI parent)
               throws BizException
Performs a bulk import of objects described by the configElement Please refer to the XMLImport Mini-Spec for details.

Parameters:
context - the context from which to create data
configElement - the config element which describes the data.
parent - the URI describing where to start. Maybe NULL
Returns:
a list of URI's describing what's been created
Throws:
BizException
See Also:
com.webmethods.portal.bizPolicy.command.system.xml.XMLImport

xmlMacro

List xmlMacro(IContext context,
              IURI xmlTemplate,
              Map properties)
              throws BizException
Performs a bulk import of objects described by the xml in the xmlTemplate, replacing the entities from the name value pairs in the properties map

Throws:
BizException
See Also:
com.webmethods.portal.bizPolicy.command.system.xml.XMLImport

createUserFolders

void createUserFolders(IContext context)
                       throws BizException
Create the users standard folders if they do not exist.

Parameters:
context -
Throws:
BizException

importCoreComponents

List importCoreComponents(IContext context,
                          IComponentProvider provider,
                          String configLocation)
                          throws BizException
This will import any core components defined in an existing location for a specific provider.

Parameters:
context - the context from which to create data
provider - component provider to re-initialize
configLocation - optional - the location to find the config files...
Returns:
a list of all imported com.webmethods.portal.system.IComponents
Throws:
BizException

computeDependenciesFromXMLImport

List computeDependenciesFromXMLImport(IContext context,
                                      String xmlLocation)
                                      throws BizException
Returns a list of strings specifying the xtypes required in order to import the xml

Parameters:
xmlLocation - location of the xmlFile
Throws:
BizException

shutdown

void shutdown(IContext context,
              int status)
              throws PortalException
Initiates portal system shutdown

Parameters:
context -
status -
Throws:
PortalException