Oracle® Collaboration Suite Workspaces API Reference
10g (10.1.1.0.2)

Part No. B16233-01


oracle.workspaces.template
Class CwWorkspaceTemplate

java.lang.Object
  extended byoracle.workspaces.template.CwWorkspaceTemplate

Direct Known Subclasses:
CwSubWorkspaceTemplate

public class CwWorkspaceTemplate
extends java.lang.Object

An instance of this class represents a workspace template.


Field Summary
static int ADDRESS_BOOK_TYPE
static java.lang.String BASIC_TEAM_TEMPLATE
static int CALENDAR_TYPE
static int DISCUSSIONS_TYPE
static int EMAIL_TYPE
static java.lang.String EMPTY_WORKSPACE_TEMPLATE
static java.lang.String EXTERNAL_TEMPLATE
static int FILES_TYPE
static int LISTS_TYPE
static java.lang.String NEW_PRODUCT_LAUNCH_MARKETING_TEMPLATE
static java.lang.String PROJECT_MANAGEMENT_WORKSPACE_TEMPLATE
static int VIEWS_TYPE
static int WEB_CONFERENCING_TYPE

Constructor Summary
CwWorkspaceTemplate(org.w3c.dom.Document tmplDoc)
Creates a workspace template based on a given DOM of template XML specification.
CwWorkspaceTemplate(java.lang.String tmplSpec)
Creates a workspace template based on a given XML specification.

Method Summary
static java.lang.String getContentLoc(java.util.Map contentLocMap, java.lang.String contentID)
java.lang.String getTemplateAboutURL()
java.lang.String getTemplateCategory()
java.lang.String getTemplateCreatedBy()
java.lang.String getTemplateCreatedOn()
java.lang.String getTemplateDescription()
java.lang.String getTemplateName()
CwWorkspaceSpecification getWorkspaceSpecification()
boolean isStored()
It returns true if the template is stored in the CW repository.
void print(java.io.PrintWriter pw)
Prints out the XML specification of the template.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

ADDRESS_BOOK_TYPE

public static final int ADDRESS_BOOK_TYPE
See Also:
Constant Field Values

BASIC_TEAM_TEMPLATE

public static final java.lang.String BASIC_TEAM_TEMPLATE
See Also:
Constant Field Values

CALENDAR_TYPE

public static final int CALENDAR_TYPE
See Also:
Constant Field Values

DISCUSSIONS_TYPE

public static final int DISCUSSIONS_TYPE
See Also:
Constant Field Values

EMAIL_TYPE

public static final int EMAIL_TYPE
See Also:
Constant Field Values

EMPTY_WORKSPACE_TEMPLATE

public static final java.lang.String EMPTY_WORKSPACE_TEMPLATE
See Also:
Constant Field Values

EXTERNAL_TEMPLATE

public static final java.lang.String EXTERNAL_TEMPLATE
See Also:
Constant Field Values

FILES_TYPE

public static final int FILES_TYPE
See Also:
Constant Field Values

LISTS_TYPE

public static final int LISTS_TYPE
See Also:
Constant Field Values

NEW_PRODUCT_LAUNCH_MARKETING_TEMPLATE

public static final java.lang.String NEW_PRODUCT_LAUNCH_MARKETING_TEMPLATE
See Also:
Constant Field Values

PROJECT_MANAGEMENT_WORKSPACE_TEMPLATE

public static final java.lang.String PROJECT_MANAGEMENT_WORKSPACE_TEMPLATE
See Also:
Constant Field Values

VIEWS_TYPE

public static final int VIEWS_TYPE
See Also:
Constant Field Values

WEB_CONFERENCING_TYPE

public static final int WEB_CONFERENCING_TYPE
See Also:
Constant Field Values

Constructor Detail

CwWorkspaceTemplate

public CwWorkspaceTemplate(org.w3c.dom.Document tmplDoc)
Creates a workspace template based on a given DOM of template XML specification. The template is not stored in the CW repository (use CwSession.storeWorkspaceTemplate for storing the template).
Parameters:
tmplDoc - XML specification for the template that conforms to the XML schema for workspace templates (http://www.oracle.com/cw/wstemplate)
Throws:
CwException - if an invalid template specification is passed

CwWorkspaceTemplate

public CwWorkspaceTemplate(java.lang.String tmplSpec)
                    throws CwException
Creates a workspace template based on a given XML specification. The template is not stored in the CW repository (use CwSession.storeWorkspaceTemplate for storing the template).
Throws:
CwException - if an invalid template specification is passed

Method Detail

getContentLoc

public static java.lang.String getContentLoc(java.util.Map contentLocMap,
                                             java.lang.String contentID)
                                      throws CwException
Throws:
CwException

getTemplateAboutURL

public java.lang.String getTemplateAboutURL()

getTemplateCategory

public java.lang.String getTemplateCategory()

getTemplateCreatedBy

public java.lang.String getTemplateCreatedBy()

getTemplateCreatedOn

public java.lang.String getTemplateCreatedOn()

getTemplateDescription

public java.lang.String getTemplateDescription()

getTemplateName

public java.lang.String getTemplateName()

getWorkspaceSpecification

public CwWorkspaceSpecification getWorkspaceSpecification()
                                                   throws CwException
Throws:
CwException

isStored

public boolean isStored()
It returns true if the template is stored in the CW repository. If the template is a user-supplied template or a system template that has been modified by the user, it returns false.

print

public void print(java.io.PrintWriter pw)
           throws CwException
Prints out the XML specification of the template.
Throws:
CwException

Copyright © 2001, 2005, Oracle. All rights reserved.