oracle.workspaces.template
Class CwWorkspaceTemplate
java.lang.Object
oracle.workspaces.template.CwWorkspaceTemplate
- Direct Known Subclasses:
- CwSubWorkspaceTemplate
- public class CwWorkspaceTemplate
- extends java.lang.Object
An instance of this class represents a workspace template.
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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