com.arsdigita.cms.installer
Class ServiceInstaller

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

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

Provides methods to install the CMS Service application, which is used by the Content Management System as a store for global resources and assets.

Version:
$Revision: #6 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Michael Pih (pihman@arsdigita.com)

Field Summary
static String PACKAGE_KEY
           
static String versionId
           
 
Constructor Summary
ServiceInstaller()
           
 
Method Summary
protected static com.arsdigita.kernel.PackageInstance createPackageInstance()
          Create an instance of the CMS service package type.
protected static com.arsdigita.kernel.PackageType createPackageType()
          Create the CMS services package type.
protected static com.arsdigita.kernel.SiteNode mountPackageInstance(com.arsdigita.kernel.PackageInstance instance, String location)
          Mount the CMS services package 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

ServiceInstaller

public ServiceInstaller()
Method Detail

createPackageType

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

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

createPackageInstance

protected static com.arsdigita.kernel.PackageInstance createPackageInstance()
                                                                     throws com.arsdigita.domain.DataObjectNotFoundException
Create an instance of the CMS service package type.

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

mountPackageInstance

protected static com.arsdigita.kernel.SiteNode mountPackageInstance(com.arsdigita.kernel.PackageInstance instance,
                                                                    String location)
Mount the CMS services package instance.

Parameters:
instance - The package instance
location - The URL where the package instance will be mounted
Returns:
The SiteNode where the instance was mounted

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