public DocumentTypeDefinition getDocumentTypeDefinition(String
type) - Returns the type definition object for the given type. Example types
include cm:content, wf:adhocTask,
cm:person.
Attention: This method was introduced with SDK version 1.4.
Parameters
- String type
- The specified type, for example cm:content, wf:adhocTask, cm:person.
Returns
Returns a DocumentTypeDefinition object for the specified type. An exception with an error code of 1301 is returned if the type is null or unknown.
Exception
Throws an UnsupportedMethodException if the method is not supported by the platform.
Example
getDocumentTypeDefinition
public DocumentTypeDefinition getDocumentTypeDefinition(Document
document) - Returns the type definition object for the given Document. The
returned definition will also include all properties from all applied aspects.
Attention: This method was introduced with SDK version 1.4.
Parameters
- Document document
- The specified document.
Returns
Returns a DocumentTypeDefinition object for the specified document.
Exception
Throws an UnsupportedMethodException if the method is not supported by the platform.