com.filenet.wcm.toolkit.server.util

Class BaseTemplate

  1. java.lang.Object
  2. extended bycom.filenet.wcm.toolkit.server.util.BaseTemplate
Direct known subclasses:
DeclareRecordsTemplate, WcmEntryTemplate

  1. public class BaseTemplate
  2. extends java.lang.Object
Supplies functionality for creating, modifying, and maintaining the contents of an Template and launching the specified workflow.

Field Summary

Modifier and Type Field and Description
  1. protected
  2. WcmAuthoringDataProvider
adp
  1. protected
  2. WcmDocumentImpl
doc
  1. protected static
  2. java.lang.String
ELEM_DEFINED
  1. protected static
  2. java.lang.String
ELEM_ENTRYTEMPLATE
  1. protected static
  2. java.lang.String
ELEM_FILE
  1. protected static
  2. java.lang.String
ELEM_INSTRUCTION
  1. protected static
  2. java.lang.String
ELEM_INSTRUCTIONS
  1. protected static
  2. java.lang.String
ELEM_NAME
  1. protected static
  2. java.lang.String
ELEM_PROPERTIES
  1. protected static
  2. java.lang.String
ELEM_PROPERTY
  1. protected static
  2. java.lang.String
ELEM_STYLE
  1. protected static
  2. java.lang.String
ELEM_TEMPLATETYPE
  1. protected static
  2. java.lang.String
ELEM_TYPE
  1. protected static
  2. java.lang.String
ELEM_VALUE
  1. protected static
  2. java.lang.String
ELEM_VERSION
  1. protected static
  2. java.lang.String
invalidChars
  1. static
  2. java.lang.String
TYPE_CUSTOM_OBJECT
String representing a Custom Object object type.
  1. static
  2. java.lang.String
TYPE_DOCUMENT
String representing a Document object type.
  1. static
  2. java.lang.String
TYPE_FOLDER
String representing a Folder object type.
  1. protected static
  2. java.lang.String
XPATH_CLASSDESC
  1. protected static
  2. java.lang.String
XPATH_ENTRYTEMPLATE
  1. protected static
  2. java.lang.String
XPATH_FILE
  1. protected static
  2. java.lang.String
XPATH_FOLDER
  1. protected static
  2. java.lang.String
XPATH_INSTNAME
  1. protected static
  2. java.lang.String
XPATH_INSTRUCTION
  1. protected static
  2. java.lang.String
XPATH_INSTRUCTIONS
  1. protected static
  2. java.lang.String
XPATH_INSTVALUE
  1. protected static
  2. java.lang.String
XPATH_OBJECTSTORE
  1. protected static
  2. java.lang.String
XPATH_PROPDESCS
  1. protected static
  2. java.lang.String
XPATH_PROPERTIES
  1. protected static
  2. java.lang.String
XPATH_PROPERTY
  1. protected static
  2. java.lang.String
XPATH_TEMPLATETYPE
  1. protected static
  2. java.lang.String
XPATH_TYPE
  1. protected static
  2. java.lang.String
XPATH_VERSION

Constructor Summary

Constructor and Description
BaseTemplate()

Method Summary

Modifier and Type Method and Description
  1. void
addPropDescData(java.lang.String symName,java.lang.String dispName,java.lang.String dataType,java.lang.String objectType,java.lang.String nameValue,java.lang.String value,boolean required,boolean editable,boolean hidden)
Add the property description node's of data.
  1. void
addPropDescData(java.lang.String symName,java.lang.String dispName,java.lang.String dataType,java.lang.String objectType,java.lang.String nameValue,java.lang.String value,boolean required,boolean editable,boolean hidden,boolean overrideIfFound)
Add the property description node's of data.
  1. protected
  2. void
checkInvalidChars(java.lang.String filename)
Check for invalid file name characters
  1. protected static
  2. boolean
checkParam(java.lang.Object o)
Make sure object is not null and has some value.
  1. void
doLoadFromId(java.lang.String objectStoreName,java.lang.String id)
Get the Template contents fromt he Content Engine and parse the Template into a DOM document.
  1. void
doLoadFromStream(com.filenet.wcm.api.TransportInputStream tis)
Parse the Template into a DOM document
  1. org.w3c.dom.Node
getClassDesc()
Return a Node holding class information
  1. java.lang.String
getClassDescId()
Return the Class Id from holding class information
  1. java.lang.String
getClassDescName()
Return the Class Name from holding class information
  1. com.filenet.wcm.api.TransportInputStream
getContents()
Get the Etry Template contents as an input stream.
  1. com.filenet.wcm.api.TransportInputStream
getContents(java.lang.String filename)
Get the Etry Template contents as an input stream.
  1. org.w3c.dom.Document
getDocumentElement()
Return the org.w3c.dom.Document's document object currently using.
  1. protected
  2. org.w3c.dom.Element
getEntryTemplate()
Get or create a entry template.
  1. org.w3c.dom.Node
getFile()
Returns the file specified in the Template.
  1. java.lang.String
getFilePath()
Return the filename of content to add.
  1. org.w3c.dom.Node
getFolder()
Return a Node holding folder information
  1. java.lang.String
getFolderId()
Return a folder id from node holding folder information
  1. org.w3c.dom.Node
getInstruction(java.lang.String name)
Return the instruction node that contains the specified name
  1. org.w3c.dom.NodeList
getInstructions()
Return the instructions node list.
  1. java.lang.String
getInstructionValue(java.lang.String name)
Return the value of the specified instruction.
  1. protected static
  2. org.w3c.dom.Document
getNormalizedDOM()
Return a xml in context on Buzz xml structure.
  1. org.w3c.dom.Node
getObjectStore()
Return node holding Object Store element
  1. java.lang.String
getObjectStoreName()
Return the name of Object Store from holding Object Store element
  1. protected
  2. java.lang.String
getObjectTypeName()
Returns the object type such as document, folder or custom object defined by the Entry Template type.
  1. org.w3c.dom.Node
getPropDesc(java.lang.String name)
Return a Node of property description by its name from node list.
  1. org.w3c.dom.NodeList
getPropDescs()
Return a node list of elements.
  1. java.util.ArrayList
getPropDescsList()
Return a array list of elements.
  1. org.w3c.dom.Document
getPropDescsNormalized()
Return property descriptions xml in context on Buzz xml structure.
  1. java.lang.String[]
getPropDescValue(org.w3c.dom.Element propDesc)
Get the default value of the property description node.
  1. java.lang.String[]
getPropDescValue(java.lang.String symName)
Get the property description propdef data.
  1. org.w3c.dom.Document
getPropertiesNormalized()
Return properties xml in context of Java API xml structure.
  1. org.w3c.dom.Document
getPropertiesNormalized(boolean condensed)
Return properties xml in context of Java API xml structure.
  1. org.w3c.dom.Document
getPropertiesNormalized(boolean condensed,boolean addDefaultState)
Return properties xml in context of Java API xml structure.
  1. org.w3c.dom.Document
getPropertiesNormalized(java.util.List propDescsList,boolean condensed)
Return properties xml in context of Java API xml structure.
  1. org.w3c.dom.Document
getPropertiesNormalized(java.util.List propDescsList,org.w3c.dom.Document propertiesXML,boolean condensed)
Return properties xml in context of Java API xml structure.
  1. org.w3c.dom.Document
getPropertiesNormalized(java.util.List propDescsList,org.w3c.dom.Document propertiesCE,java.lang.String typeName,boolean condensed)
Return properties xml in context of Java API xml structure.
  1. org.w3c.dom.Document
getPropertiesNormalized(java.util.List propDescsList,org.w3c.dom.Document propertiesCE,java.lang.String typeName,boolean condensed,boolean addDefaultState)
Return properties xml in context of Java API xml structure.
  1. org.w3c.dom.Document
getPropertiesNormalized(java.util.List propDescsList,java.lang.String typeName,boolean condensed)
Return properties xml in context of Java API xml structure.
  1. org.w3c.dom.Document
getPropertiesNormalized(org.w3c.dom.NodeList propDescs,boolean condensed)
Deprecated. Use new getPropertiesNormalized method with List parameter
  1. org.w3c.dom.Document
getPropertiesNormalized(org.w3c.dom.NodeList propDescs,org.w3c.dom.Document propertiesXML,boolean condensed)
Deprecated. Use new getPropertiesNormalized method with List parameter
  1. protected
  2. org.w3c.dom.Document
getPropertiesNormalized(org.w3c.dom.NodeList propDescs,org.w3c.dom.Document propDescsCE,java.lang.String typeName,boolean condensed)
Deprecated. Use new getPropertiesNormalized method with List parameter
  1. protected
  2. org.w3c.dom.Document
getPropertiesNormalized(org.w3c.dom.NodeList propDescs,java.lang.String typeName,boolean condensed)
Deprecated. Use new getPropertiesNormalized method with List parameter
  1. java.lang.String
getPropertyValue(java.lang.String objectStoreName,java.lang.String id,int type,java.lang.String property)
Helper method for retrieving the value of a particular property
  1. protected
  2. java.lang.String
getTemplateName()
You should overide this method to return correct template type
  1. org.w3c.dom.Node
getTemplateType()
Returns the template type specified in the Template.
  1. org.w3c.dom.Node
getType()
Returns the object type specified in the Template.
  1. java.lang.String
getTypeName()
Returns the entry template type name specified in the Template.
  1. protected
  2. void
removeChoicesList()
remove choice list from property description
  1. protected
  2. boolean
replaceValue(java.lang.String xPath,java.lang.String value)
Replace element value with new value.
  1. void
setAuthoringDataProvider(WcmAuthoringDataProvider dp)
Set up the Authoring Data Provider.
  1. void
setClassDesc(java.lang.String id,java.lang.String name)
Set the class information therefore can be returned by getClassDesc call.
  1. void
setFile(java.lang.String file)
Set the file location.
  1. void
setFolder(java.lang.String id)
Set the folder information therefore can be returned by getFolder call.
  1. void
setInstruction(java.lang.String name,java.lang.String value)
Set or add the instruction to the list.
  1. void
setObjectStore(java.lang.String id,java.lang.String name)
Set the Object Store properties therefore can be returned by getObjectStore call.
  1. void
setPropDesc(org.w3c.dom.Node propDesc)
Can used this method to set a user specified behavior into the property description element.
  1. void
setPropDescData(java.lang.String name,java.lang.String value,boolean required,boolean editable,boolean hidden)
Set the property description node's of data.
  1. void
setPropDescData(java.lang.String symName,java.lang.String value,java.lang.String dataType,java.lang.String objectType,java.lang.String nameValue,boolean required,boolean editable,boolean hidden)
Set the property description node's of data.
  1. void
setPropDescs(org.w3c.dom.NodeList newPropDescs)
Set the property descriptions.
  1. void
setPropDescValue(org.w3c.dom.Node propDesc,java.lang.String[] values)
Set the property description propdef data.
  1. void
setPropDescValue(java.lang.String name,java.lang.String[] values)
Set the property description propdef data.
  1. protected
  2. void
setTemplateType(java.lang.String type)
Set the object type properties.
  1. void
setType(java.lang.String type)
Set the object type properties.
  1. void
toXML(java.lang.StringBuffer buffer)
Append an XML string, that represents this object, to the end of the buffer passed to this method.
  1. void
writeToFile(java.lang.String pathname)
Save the Template to local storage as indicated by pathname parameter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

TYPE_DOCUMENT

  1. public static final java.lang.String TYPE_DOCUMENT
String representing a Document object type.
See Also:

TYPE_FOLDER

  1. public static final java.lang.String TYPE_FOLDER
String representing a Folder object type.
See Also:

TYPE_CUSTOM_OBJECT

  1. public static final java.lang.String TYPE_CUSTOM_OBJECT
String representing a Custom Object object type.
See Also:

XPATH_ENTRYTEMPLATE

  1. protected static final java.lang.String XPATH_ENTRYTEMPLATE
See Also:

XPATH_CLASSDESC

  1. protected static final java.lang.String XPATH_CLASSDESC
See Also:

XPATH_FOLDER

  1. protected static final java.lang.String XPATH_FOLDER
See Also:

XPATH_FILE

  1. protected static final java.lang.String XPATH_FILE
See Also:

XPATH_OBJECTSTORE

  1. protected static final java.lang.String XPATH_OBJECTSTORE
See Also:

XPATH_PROPDESCS

  1. protected static final java.lang.String XPATH_PROPDESCS
See Also:

XPATH_PROPERTIES

  1. protected static final java.lang.String XPATH_PROPERTIES
See Also:

XPATH_PROPERTY

  1. protected static final java.lang.String XPATH_PROPERTY
See Also:

XPATH_TYPE

  1. protected static final java.lang.String XPATH_TYPE
See Also:

XPATH_TEMPLATETYPE

  1. protected static final java.lang.String XPATH_TEMPLATETYPE
See Also:

XPATH_VERSION

  1. protected static final java.lang.String XPATH_VERSION
See Also:

XPATH_INSTRUCTIONS

  1. protected static final java.lang.String XPATH_INSTRUCTIONS
See Also:

XPATH_INSTRUCTION

  1. protected static final java.lang.String XPATH_INSTRUCTION
See Also:

XPATH_INSTNAME

  1. protected static final java.lang.String XPATH_INSTNAME
See Also:

XPATH_INSTVALUE

  1. protected static final java.lang.String XPATH_INSTVALUE
See Also:

ELEM_ENTRYTEMPLATE

  1. protected static final java.lang.String ELEM_ENTRYTEMPLATE
See Also:

ELEM_TEMPLATETYPE

  1. protected static final java.lang.String ELEM_TEMPLATETYPE
See Also:

ELEM_DEFINED

  1. protected static final java.lang.String ELEM_DEFINED
See Also:

ELEM_FILE

  1. protected static final java.lang.String ELEM_FILE
See Also:

ELEM_INSTRUCTIONS

  1. protected static final java.lang.String ELEM_INSTRUCTIONS
See Also:

ELEM_INSTRUCTION

  1. protected static final java.lang.String ELEM_INSTRUCTION
See Also:

ELEM_NAME

  1. protected static final java.lang.String ELEM_NAME
See Also:

ELEM_PROPERTIES

  1. protected static final java.lang.String ELEM_PROPERTIES
See Also:

ELEM_PROPERTY

  1. protected static final java.lang.String ELEM_PROPERTY
See Also:

ELEM_STYLE

  1. protected static final java.lang.String ELEM_STYLE
See Also:

ELEM_TYPE

  1. protected static final java.lang.String ELEM_TYPE
See Also:

ELEM_VALUE

  1. protected static final java.lang.String ELEM_VALUE
See Also:

ELEM_VERSION

  1. protected static final java.lang.String ELEM_VERSION
See Also:

adp

  1. protected WcmAuthoringDataProvider adp

doc

  1. protected WcmDocumentImpl doc

invalidChars

  1. protected static final java.lang.String invalidChars
See Also:

Constructor Detail

BaseTemplate

  1. public BaseTemplate()

Method Detail

setAuthoringDataProvider

  1. public void setAuthoringDataProvider( WcmAuthoringDataProvider dp)
Set up the Authoring Data Provider. If this is not being set before calling doLoad.. method then those methods will throw.
Parameters:
dp - Authoring Data Provider

getDocumentElement

  1. public org.w3c.dom.Document getDocumentElement( )
  2. throws java.lang.Exception
Return the org.w3c.dom.Document's document object currently using.
Returns:
Document object.
Throws:
java.lang.Exception

doLoadFromStream

  1. public void doLoadFromStream(com.filenet.wcm.api.TransportInputStream tis)
  2. throws java.lang.Exception
Parse the Template into a DOM document
Parameters:
tis - The Input Stream item containing an entry template.
Throws:
java.lang.Exception

getContents

  1. public com.filenet.wcm.api.TransportInputStream getContents( java.lang.String filename)
  2. throws java.lang.Exception
Get the Etry Template contents as an input stream. The stream can be cused to pass to the Authoring Data Provider to add the Template.
Parameters:
filename - String file name.
Returns:
TransportInputStream.
Throws:
java.lang.Exception

getContents

  1. public com.filenet.wcm.api.TransportInputStream getContents( )
  2. throws java.lang.Exception
Get the Etry Template contents as an input stream. The stream can be cused to pass to the Authoring Data Provider to add the Template.
Returns:
TransportInputStream.
Throws:
java.lang.Exception

writeToFile

  1. public void writeToFile(java.lang.String pathname)
  2. throws java.lang.Exception
Save the Template to local storage as indicated by pathname parameter
Parameters:
pathname - String holding local storage path and file name ("c:/tmp/myfile.xml")
Throws:
java.lang.Exception

doLoadFromId

  1. public void doLoadFromId(java.lang.String objectStoreName,
  2. java.lang.String id)
  3. throws java.lang.Exception
Get the Template contents fromt he Content Engine and parse the Template into a DOM document.
Parameters:
objectStoreName - Object Store Id.
id - String holding template id.
Throws:
java.lang.Exception

getObjectStore

  1. public org.w3c.dom.Node getObjectStore( )
  2. throws java.lang.Exception
Return node holding Object Store element
Returns:
Node Object Store's node.
Throws:
java.lang.Exception

getObjectStoreName

  1. public java.lang.String getObjectStoreName( )
  2. throws java.lang.Exception
Return the name of Object Store from holding Object Store element
Returns:
Object Store name.
Throws:
java.lang.Exception

setObjectStore

  1. public void setObjectStore(java.lang.String id,
  2. java.lang.String name)
  3. throws java.lang.Exception
Set the Object Store properties therefore can be returned by getObjectStore call.
Parameters:
id - Object Store id.
name - Object Store name.
Throws:
java.lang.Exception

getTypeName

  1. public java.lang.String getTypeName( )
  2. throws java.lang.Exception
Returns the entry template type name specified in the Template. Current values are document, folder, and custom object.
Returns:
String The type node value.
Throws:
java.lang.Exception

getObjectTypeName

  1. protected java.lang.String getObjectTypeName( )
  2. throws java.lang.Exception
Returns the object type such as document, folder or custom object defined by the Entry Template type. A sub class can override this method to return the object type corresponding to the entry template type. For example, a WCM entry template can override this method and return a document object type for a page type entry template since a page is a document object.
Returns:
String The object type defined by the Entry Template type.
Throws:
java.lang.Exception

getType

  1. public org.w3c.dom.Node getType( )
  2. throws java.lang.Exception
Returns the object type specified in the Template. Current types supported are document, folder, and custom object.
Returns:
Node Object type node.
Throws:
java.lang.Exception

setType

  1. public void setType(java.lang.String type)
  2. throws java.lang.Exception
Set the object type properties.
Parameters:
type - Document, Folder, or Custom object.
Throws:
java.lang.Exception

getTemplateType

  1. public org.w3c.dom.Node getTemplateType( )
  2. throws java.lang.Exception
Returns the template type specified in the Template.
Returns:
Node Object type node.
Throws:
java.lang.Exception

setTemplateType

  1. protected void setTemplateType( java.lang.String type)
  2. throws java.lang.Exception
Set the object type properties.
Parameters:
type - EntryTemplate, DeclareRecords....
Throws:
java.lang.Exception

getClassDesc

  1. public org.w3c.dom.Node getClassDesc( )
  2. throws java.lang.Exception
Return a Node holding class information
Returns:
Node Class node.
Throws:
java.lang.Exception

getClassDescId

  1. public java.lang.String getClassDescId( )
  2. throws java.lang.Exception
Return the Class Id from holding class information
Returns:
String Return the Class Id from holding class information
Throws:
java.lang.Exception

getClassDescName

  1. public java.lang.String getClassDescName( )
  2. throws java.lang.Exception
Return the Class Name from holding class information
Returns:
String Return the Class Name from holding class information
Throws:
java.lang.Exception

setClassDesc

  1. public void setClassDesc(java.lang.String id,
  2. java.lang.String name)
  3. throws java.lang.Exception
Set the class information therefore can be returned by getClassDesc call.
Parameters:
id - Class id.
name - Class name.
Throws:
java.lang.Exception

getFolder

  1. public org.w3c.dom.Node getFolder( )
  2. throws java.lang.Exception
Return a Node holding folder information
Returns:
Node Folder node.
Throws:
java.lang.Exception

getFolderId

  1. public java.lang.String getFolderId( )
  2. throws java.lang.Exception
Return a folder id from node holding folder information
Returns:
Folder id in GUID format.
Throws:
java.lang.Exception

setFolder

  1. public void setFolder(java.lang.String id)
  2. throws java.lang.Exception
Set the folder information therefore can be returned by getFolder call.
Parameters:
id - Folder id.
Throws:
java.lang.Exception

getPropDescs

  1. public org.w3c.dom.NodeList getPropDescs( )
  2. throws java.lang.Exception
Return a node list of elements.
Returns:
NodeList A node list of property description
Throws:
java.lang.Exception

getPropDescsList

  1. public java.util.ArrayList getPropDescsList( )
  2. throws java.lang.Exception
Return a array list of elements.
Returns:
ArrayList A array list of property description elements
Throws:
java.lang.Exception

getPropDescsNormalized

  1. public org.w3c.dom.Document getPropDescsNormalized( )
  2. throws java.lang.Exception
Return property descriptions xml in context on Buzz xml structure. The element structure looks somethings like:
Returns:
Document Normalized Docuemnt object.
Throws:
java.lang.Exception

setPropDescs

  1. public void setPropDescs(org.w3c.dom.NodeList newPropDescs)
  2. throws java.lang.Exception
Set the property descriptions.
Parameters:
newPropDescs - A node list of property description.
Throws:
java.lang.Exception

getPropDesc

  1. public org.w3c.dom.Node getPropDesc( java.lang.String name)
  2. throws java.lang.Exception
Return a Node of property description by its name from node list.
Parameters:
name - Property Description symbolic name.
Returns:
node A node of found property description.
Throws:
java.lang.Exception

setPropDesc

  1. public void setPropDesc(org.w3c.dom.Node propDesc)
  2. throws java.lang.Exception
Can used this method to set a user specified behavior into the property description element.
Parameters:
propDesc - A property description object.
Throws:
java.lang.Exception

setPropDescValue

  1. public void setPropDescValue(java.lang.String name,
  2. java.lang.String[] values)
  3. throws java.lang.Exception
Set the property description propdef data. This method assume node already exist. If it is not then a Item not found exception will be thrown.
Parameters:
name - Property definition symbolic name(etc DocumentTitle, Description);
values - String array of value. If this property definition is single value, it take first value from array and set it.
Throws:
java.lang.Exception

setPropDescValue

  1. public void setPropDescValue(org.w3c.dom.Node propDesc,
  2. java.lang.String[] values)
  3. throws java.lang.Exception
Set the property description propdef data. Also, set the state element value to be modified
Parameters:
propDesc - Node holding the Property definition
values - String array of value. If this property definition is single value, it take first value from array and set it.
Throws:
java.lang.Exception

setPropDescData

  1. public void setPropDescData(java.lang.String name,
  2. java.lang.String value,
  3. boolean required,
  4. boolean editable,
  5. boolean hidden)
  6. throws java.lang.Exception
Set the property description node's of data. This method assume node already exist.
Parameters:
name - property description name.
value - Default value.
required - Required?.
editable - Editable?.
hidden - Hidden?.
Throws:
java.lang.Exception

setPropDescData

  1. public void setPropDescData(java.lang.String symName,
  2. java.lang.String value,
  3. java.lang.String dataType,
  4. java.lang.String objectType,
  5. java.lang.String nameValue,
  6. boolean required,
  7. boolean editable,
  8. boolean hidden)
  9. throws java.lang.Exception
Set the property description node's of data. This method assumes the node already exists.
Parameters:
symName - property description symbolic name.
value - Default value.
dataType - The data type of the property description
objectType - The object type of a object value property (may be null)
nameValue - The symbolic property name for the name property of a object value property (may be null)
required - Required?.
editable - Editable?.
hidden - Hidden?.
Throws:
java.lang.Exception

addPropDescData

  1. public void addPropDescData(java.lang.String symName,
  2. java.lang.String dispName,
  3. java.lang.String dataType,
  4. java.lang.String objectType,
  5. java.lang.String nameValue,
  6. java.lang.String value,
  7. boolean required,
  8. boolean editable,
  9. boolean hidden)
  10. throws java.lang.Exception
Add the property description node's of data. Throws an error if the node already exists.
Parameters:
symName - String property description symbolic name.
dispName - String property description display name.
dataType - String the property data type
objectType - String the object type (applies only if object value property dataType = "7")
nameValue - String Name property for object (applies only if object value property dataType = "7")
value - Default value.
required - Required?.
editable - Editable?.
hidden - Hidden?.
Throws:
java.lang.Exception

addPropDescData

  1. public void addPropDescData(java.lang.String symName,
  2. java.lang.String dispName,
  3. java.lang.String dataType,
  4. java.lang.String objectType,
  5. java.lang.String nameValue,
  6. java.lang.String value,
  7. boolean required,
  8. boolean editable,
  9. boolean hidden,
  10. boolean overrideIfFound)
  11. throws java.lang.Exception
Add the property description node's of data. Throws an error if the node already exists.
Parameters:
symName - String property description symbolic name.
dispName - String property description display name.
dataType - String the property data type
objectType - String the object type (applies only if object value property dataType = "7")
nameValue - String Name property for object (applies only if object value property dataType = "7")
value - Default value.
required - Required?.
editable - Editable?.
hidden - Hidden?.
overrideIfFound - true to override the the prop description data if the property description already existed
Throws:
java.lang.Exception

getPropertiesNormalized

  1. public org.w3c.dom.Document getPropertiesNormalized( org.w3c.dom.NodeList propDescs,
  2. boolean condensed)
  3. throws java.lang.Exception
Deprecated. Use new getPropertiesNormalized method with List parameter
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
propDescs - NodeList of property descriptions to use to create the properties from
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. public org.w3c.dom.Document getPropertiesNormalized( org.w3c.dom.NodeList propDescs,
  2. org.w3c.dom.Document propertiesXML,
  3. boolean condensed)
  4. throws java.lang.Exception
Deprecated. Use new getPropertiesNormalized method with List parameter
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
propDescs - NodeList of property descriptions to use to create the properties from
propertiesXML - Document The object properties XML. Copy values from the properties XML to the new output properties XML.
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. protected org.w3c.dom.Document getPropertiesNormalized( org.w3c.dom.NodeList propDescs,
  2. java.lang.String typeName,
  3. boolean condensed)
  4. throws java.lang.Exception
Deprecated. Use new getPropertiesNormalized method with List parameter
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
propDescs - NodeList of property descriptions to use to create the properties from
typeName - String the entryTemplate type name.
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. protected org.w3c.dom.Document getPropertiesNormalized( org.w3c.dom.NodeList propDescs,
  2. org.w3c.dom.Document propDescsCE,
  3. java.lang.String typeName,
  4. boolean condensed)
  5. throws java.lang.Exception
Deprecated. Use new getPropertiesNormalized method with List parameter
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
propDescs - NodeList of property descriptions to use to create the properties from
propDescsCE - Document The Class Property Descriptions XML. This is used to determine if the default value is different from the server value.
typeName - String the entryTemplate type name.
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. public org.w3c.dom.Document getPropertiesNormalized( )
  2. throws java.lang.Exception
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Returns:
A property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. public org.w3c.dom.Document getPropertiesNormalized( boolean condensed)
  2. throws java.lang.Exception
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. public org.w3c.dom.Document getPropertiesNormalized( boolean condensed,
  2. boolean addDefaultState)
  3. throws java.lang.Exception
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
addDefaultState - boolean flag for specifying whether the property elements should be created with modified state
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. public org.w3c.dom.Document getPropertiesNormalized( java.util.List propDescsList,
  2. boolean condensed)
  3. throws java.lang.Exception
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
propDescsList - ArrayList of property descriptions to use to create the properties from
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. public org.w3c.dom.Document getPropertiesNormalized( java.util.List propDescsList,
  2. org.w3c.dom.Document propertiesXML,
  3. boolean condensed)
  4. throws java.lang.Exception
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
propDescsList - List of property descriptions to use to create the properties from
propertiesXML - Document The object properties XML. Copy values from the properties XML to the new output properties XML.
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. public org.w3c.dom.Document getPropertiesNormalized( java.util.List propDescsList,
  2. java.lang.String typeName,
  3. boolean condensed)
  4. throws java.lang.Exception
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
propDescsList - ArrayList of property descriptions to use to create the properties from
typeName - String the entryTemplate type name.
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. public org.w3c.dom.Document getPropertiesNormalized( java.util.List propDescsList,
  2. org.w3c.dom.Document propertiesCE,
  3. java.lang.String typeName,
  4. boolean condensed)
  5. throws java.lang.Exception
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
propDescsList - List of property descriptions to use to create the properties from
propertiesCE - dom.Document object holding properties XML (maybe null)
typeName - String the entryTemplate type name.
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getPropertiesNormalized

  1. public org.w3c.dom.Document getPropertiesNormalized( java.util.List propDescsList,
  2. org.w3c.dom.Document propertiesCE,
  3. java.lang.String typeName,
  4. boolean condensed,
  5. boolean addDefaultState)
  6. throws java.lang.Exception
Return properties xml in context of Java API xml structure. The data in this xml is "baked up" from the property description information including mainly the default values. The element structure looks something like:
Parameters:
propDescsList - List of property descriptions to use to create the properties from
propertiesCE - dom.Document object holding properties XML (maybe null)
typeName - String the entryTemplate type name.
condensed - boolean True if you want smaller condensed version (used primarily at run time), False otherwise (typically design time).
addDefaultState - boolean flag for specifying whether the property objects should be created with a modified state
Returns:
org.w3c.dom.Document Property DOM in context of Java API xml structure.
Throws:
java.lang.Exception

getFile

  1. public org.w3c.dom.Node getFile( )
  2. throws java.lang.Exception
Returns the file specified in the Template.
Returns:
Node Object file node.
Throws:
java.lang.Exception

getFilePath

  1. public java.lang.String getFilePath( )
  2. throws java.lang.Exception
Return the filename of content to add.
Returns:
Filename String holding path to file content.
Throws:
java.lang.Exception

setFile

  1. public void setFile(java.lang.String file)
  2. throws java.lang.Exception
Set the file location.
Parameters:
file - String file path on local machine
Throws:
java.lang.Exception

getInstructions

  1. public org.w3c.dom.NodeList getInstructions( )
  2. throws java.lang.Exception
Return the instructions node list.
Returns:
Instruction node list.
Throws:
java.lang.Exception

setInstruction

  1. public void setInstruction(java.lang.String name,
  2. java.lang.String value)
  3. throws java.lang.Exception
Set or add the instruction to the list.
Parameters:
name - Instruction name
value - Instruction value.
Throws:
java.lang.Exception

getInstruction

  1. public org.w3c.dom.Node getInstruction( java.lang.String name)
  2. throws java.lang.Exception
Return the instruction node that contains the specified name
Parameters:
name - Instruction node name.
Returns:
Node Found node.
Throws:
java.lang.Exception

getInstructionValue

  1. public java.lang.String getInstructionValue( java.lang.String name)
  2. throws java.lang.Exception
Return the value of the specified instruction.
Parameters:
name - Instruction name.
Returns:
String The value of the specified instruction.
Throws:
java.lang.Exception

getPropertyValue

  1. public java.lang.String getPropertyValue( java.lang.String objectStoreName,
  2. java.lang.String id,
  3. int type,
  4. java.lang.String property)
  5. throws java.lang.Exception
Helper method for retrieving the value of a particular property
Parameters:
objectStoreName - Object Store name.
id - Object id.
type - Object type.
property - Symbolic name for request property value
Returns:
String Return vlue of particular property
Throws:
java.lang.Exception - If there are problems retrieving data or with an invalid parameter.

getPropDescValue

  1. public java.lang.String[] getPropDescValue( java.lang.String symName)
  2. throws java.lang.Exception
Get the property description propdef data. This method assume node already exist. If it is not then a Item not found exception will be thrown.
Parameters:
symName - Property definition symbolic name (etc DocumentTitle, Description)
Throws:
java.lang.Exception

getPropDescValue

  1. public java.lang.String[] getPropDescValue( org.w3c.dom.Element propDesc)
  2. throws java.lang.Exception
Get the default value of the property description node. This method assume node already exist. If it is not then a Item not found exception will be thrown.
Parameters:
propDesc - Element holding a property description node
Throws:
java.lang.Exception

toXML

  1. public void toXML(java.lang.StringBuffer buffer)
  2. throws java.lang.Exception
Append an XML string, that represents this object, to the end of the buffer passed to this method.
Parameters:
buffer - StringBuffer to append XML data.
Throws:
java.lang.Exception - If there are problems retrieving data or with an invalid parameter.

checkParam

  1. protected static boolean checkParam( java.lang.Object o)
  2. throws java.lang.Exception
Make sure object is not null and has some value. For now it only works with String type.
Parameters:
o - XML object key name.
Returns:
boolean Return true if object is a string and not null.
Throws:
java.lang.Exception - If there are problems retrieving data or with an invalid parameter.

getNormalizedDOM

  1. protected static org.w3c.dom.Document getNormalizedDOM( )
  2. throws javax.xml.parsers.ParserConfigurationException
Return a xml in context on Buzz xml structure. The element structure looks somethings like: 1
Returns:
a Template DOM with proper xml heading.
Throws:
javax.xml.parsers.ParserConfigurationException

getEntryTemplate

  1. protected org.w3c.dom.Element getEntryTemplate( )
  2. throws java.lang.Exception
Get or create a entry template.
Returns:
an Template element.
Throws:
java.lang.Exception

getTemplateName

  1. protected java.lang.String getTemplateName( )
You should overide this method to return correct template type
Returns:
template name

replaceValue

  1. protected boolean replaceValue( java.lang.String xPath,
  2. java.lang.String value)
  3. throws java.lang.Exception
Replace element value with new value.
Parameters:
xPath - XPath expression of node location.
value - New value.
Returns:
boolean Operation success or not.
Throws:
java.lang.Exception

checkInvalidChars

  1. protected void checkInvalidChars( java.lang.String filename)
  2. throws java.lang.Exception
Check for invalid file name characters
Parameters:
filename - File Name to check.
Throws:
java.lang.Exception

removeChoicesList

  1. protected void removeChoicesList( )
  2. throws java.lang.Exception
remove choice list from property description
Throws:
java.lang.Exception