com.arsdigita.cms.installer
Class WorkspaceInstaller

java.lang.Object
  extended bycom.arsdigita.cms.installer.WorkspaceInstaller
All Implemented Interfaces:
com.arsdigita.kernel.PackageEventListener

public class WorkspaceInstaller
extends Object
implements com.arsdigita.kernel.PackageEventListener

Provides methods to install the Content Center application, which is used by the Content Management System.

Version:
$Revision: #9 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Michael Pih (pihman@arsdigita.com), Jack Chung (flattop@arsdigita.com)

Field Summary
static String PACKAGE_KEY
           
static String versionId
           
 
Constructor Summary
WorkspaceInstaller()
           
 
Method Summary
protected  com.arsdigita.kernel.PackageInstance createPackageInstance()
          Create the Content Center application instance.
protected  com.arsdigita.kernel.PackageType createPackageType()
          Create the CMS package type.
protected  String getDispatcherClass()
          Returns the name of the dispatcher class to use
 String getInstanceName()
          Returns this workspace's instance name
 String getPackageKey()
          Returns this workspace's instance name
protected  com.arsdigita.kernel.SiteNode mountPackageInstance(com.arsdigita.kernel.PackageInstance instance, String location)
          Mount the Content Center application instance.
 void onCreate(com.arsdigita.kernel.PackageInstance pkg)
          This method is called when a new package instance is created.
 void onDelete(com.arsdigita.kernel.PackageInstance pkg)
          Describe onDelete method here.
 void onMount(com.arsdigita.kernel.SiteNode siteNode, com.arsdigita.kernel.PackageInstance pkg)
          This method is called when a package instance is mounted on a siteNode.
 void onUnmount(com.arsdigita.kernel.SiteNode siteNode, com.arsdigita.kernel.PackageInstance pkg)
          This method is called when a package instance is unmounted from a siteNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

PACKAGE_KEY

public static final String PACKAGE_KEY
See Also:
Constant Field Values
Constructor Detail

WorkspaceInstaller

public WorkspaceInstaller()
Method Detail

getPackageKey

public String getPackageKey()
Returns this workspace's instance name


getInstanceName

public String getInstanceName()
Returns this workspace's instance name


getDispatcherClass

protected String getDispatcherClass()
Returns the name of the dispatcher class to use


createPackageType

protected com.arsdigita.kernel.PackageType createPackageType()
                                                      throws com.arsdigita.domain.DataObjectNotFoundException
Create the CMS package type.

Returns:
The Content Center package type
Throws:
com.arsdigita.domain.DataObjectNotFoundException

createPackageInstance

protected com.arsdigita.kernel.PackageInstance createPackageInstance()
                                                              throws com.arsdigita.domain.DataObjectNotFoundException
Create the Content Center application instance.

Returns:
The Content Center package instance
Throws:
com.arsdigita.domain.DataObjectNotFoundException

mountPackageInstance

protected com.arsdigita.kernel.SiteNode mountPackageInstance(com.arsdigita.kernel.PackageInstance instance,
                                                             String location)
Mount the Content Center application instance.

Parameters:
instance - The package instance
location - The location of the Content Center
Returns:
The SiteNode where the Content Center is mounted at

onMount

public void onMount(com.arsdigita.kernel.SiteNode siteNode,
                    com.arsdigita.kernel.PackageInstance pkg)
This method is called when a package instance is mounted on a siteNode. It does nothing.

Specified by:
onMount in interface com.arsdigita.kernel.PackageEventListener
Parameters:
siteNode - The SiteNode where the instance is mounted.
pkg - The instance being mounted.

onUnmount

public void onUnmount(com.arsdigita.kernel.SiteNode siteNode,
                      com.arsdigita.kernel.PackageInstance pkg)
This method is called when a package instance is unmounted from a siteNode. It does nothing.

Specified by:
onUnmount in interface com.arsdigita.kernel.PackageEventListener
Parameters:
siteNode - The SiteNode where the instance is mounted.
pkg - The instance being unmounted.

onCreate

public void onCreate(com.arsdigita.kernel.PackageInstance pkg)
This method is called when a new package instance is created. It does nothing

Specified by:
onCreate in interface com.arsdigita.kernel.PackageEventListener
Parameters:
pkg - a PackageInstance value

onDelete

public void onDelete(com.arsdigita.kernel.PackageInstance pkg)
Describe onDelete method here.

Specified by:
onDelete in interface com.arsdigita.kernel.PackageEventListener
Parameters:
pkg - a PackageInstance value


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC