|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.cms.installer.Installer
Provides methods to install the Content Management System.
This class includes methods to:
Create the CMS package type.
Create the CMS package instance.
Create a default content section.
Mount a CMS package instance (and content section).
Field Summary | |
static String |
DISPATCHER_CLASS
|
static String |
LISTENER_CLASS
|
static String |
PACKAGE_KEY
|
static String |
STYLESHEET
|
static String |
versionId
|
Constructor Summary | |
Installer()
|
Method Summary | |
protected static void |
createDefaultResources(ContentSection section)
Creates and maps default resources to the content section. |
protected static com.arsdigita.kernel.PackageInstance |
createPackageInstance(String name)
Creates the CMS package type. |
protected static com.arsdigita.kernel.PackageType |
createPackageType()
Creates the CMS package type. |
protected static com.arsdigita.categorization.Category |
createRootCategory(String name)
Creates the root category for a content section. |
protected static Folder |
createRootFolder(String name)
Creates the root folder for a content section. |
protected static com.arsdigita.kernel.SiteNode |
mountPackageInstance(com.arsdigita.kernel.PackageInstance instance,
String location)
Mounts a CMS 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)
This method is called when a package instance is deleted. |
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 |
public static final String versionId
public static final String PACKAGE_KEY
public static final String DISPATCHER_CLASS
public static final String LISTENER_CLASS
public static final String STYLESHEET
Constructor Detail |
public Installer()
Method Detail |
protected static com.arsdigita.kernel.PackageType createPackageType() throws com.arsdigita.domain.DataObjectNotFoundException
Creates the CMS package type.
This includes creating and registering XSL stylesheets to the CMS . package type and registering privileges for use by CMS.
com.arsdigita.domain.DataObjectNotFoundException
protected static com.arsdigita.kernel.PackageInstance createPackageInstance(String name) throws com.arsdigita.domain.DataObjectNotFoundException
Creates the CMS package type.
This includes creating and registering XSL stylesheets to the CMS . package type and registering privileges for use by CMS.
name
- The name of the package instance
com.arsdigita.domain.DataObjectNotFoundException
protected static com.arsdigita.kernel.SiteNode mountPackageInstance(com.arsdigita.kernel.PackageInstance instance, String location)
Mounts a CMS package instance.
This includes creating and registering XSL stylesheets to the CMS . package type and registering privileges for use by CMS.
instance
- The package instancelocation
- The location of the package instance (and content section)
protected static void createDefaultResources(ContentSection section)
section
- The content section
MP: create resource types.
MP: use the resources API.
MP: only create resources once.protected static Folder createRootFolder(String name)
name
- The name of the content section
protected static com.arsdigita.categorization.Category createRootCategory(String name)
name
- The name of the content section
public void onMount(com.arsdigita.kernel.SiteNode siteNode, com.arsdigita.kernel.PackageInstance pkg)
onMount
in interface com.arsdigita.kernel.PackageEventListener
siteNode
- The SiteNode where the instance is mounted.pkg
- The instance being mounted.public void onUnmount(com.arsdigita.kernel.SiteNode siteNode, com.arsdigita.kernel.PackageInstance pkg)
onUnmount
in interface com.arsdigita.kernel.PackageEventListener
siteNode
- The SiteNode where the instance is mounted.pkg
- The instance being unmounted.public void onCreate(com.arsdigita.kernel.PackageInstance pkg)
onCreate
in interface com.arsdigita.kernel.PackageEventListener
pkg
- a PackageInstance
valuepublic void onDelete(com.arsdigita.kernel.PackageInstance pkg)
onDelete
in interface com.arsdigita.kernel.PackageEventListener
pkg
- a PackageInstance
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |