Package wt.doc
Class WTDocument
java.lang.Object
wt.fc._WTObject
- All Implemented Interfaces:
com.ptc.windchill.bac._BACManaged,com.ptc.windchill.bac.BACManaged,Externalizable,Serializable,wt.access._AccessControlled,wt.access._AccessControlList,wt.access._AdHocControlled,wt.access._IdentityAccessControlled,wt.access._PolicyAccessControlled,wt.access._SecurityLabeled,AccessControlled,wt.access.AccessControlList,AdHocControlled,wt.access.IdentityAccessControlled,wt.access.PolicyAccessControlled,SecurityLabeled,wt.admin._DomainAdministered,DomainAdministered,wt.change2._Changeable2,wt.change2._ChangeableIfc,Changeable2,ChangeableIfc,wt.content._ContentHolder,wt.content._FormatContentHolder,ContentHolder,FormatContentHolder,wt.doc._Document,wt.doc._DocumentVersion,wt.doc._WTDocumentTypeInterface,Document,wt.doc.DocumentVersion,wt.doc.WTDocumentTypeInterface,wt.eff._EffManagedVersion,wt.eff._EffRecordable,EffManagedVersion,EffRecordable,wt.enterprise._Templateable,wt.enterprise.Templateable,wt.esi._Releasable,Releasable,wt.facade.persistedcollection._PersistedCollectable,PersistedCollectable,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,wt.fc.adminlock._AdministrativelyLockable,AdministrativelyLockable,wt.fc.archive._Archiveable,wt.fc.archive._ArchiveablePrimary,wt.fc.archive.Archiveable,wt.fc.archive.ArchiveablePrimary,wt.fc.BusinessInformation,NetFactor,ObjectMappable,Persistable,wt.federation._FederatedLinkHolder,wt.federation._RemotelyLinkable,wt.federation.FederatedLinkHolder,wt.federation.RemotelyLinkable,wt.folder._CabinetBased,wt.folder._Foldered,wt.folder._FolderEntry,wt.folder._FolderServiceManaged,wt.folder._IteratedFoldered,CabinetBased,Foldered,FolderEntry,wt.folder.FolderServiceManaged,wt.folder.history.Movable,IteratedFoldered,wt.iba.value._IBAHolder,wt.iba.value.IBAHolder,DisplayIdentification,wt.index._Indexable,Indexable,wt.inf.container._WTContained,wt.inf.container._WTContainedFilterable,WTContained,wt.inf.container.WTContainedFilterable,wt.lifecycle._IteratedLifeCycleManaged,_LifeCycleManaged,IteratedLifeCycleManaged,LifeCycleManaged,wt.locks._Lockable,Lockable,wt.maturity._Promotable,Promotable,wt.meeting.actionitem._IteratedSubjectOfActionItem,wt.meeting.actionitem._SubjectOfActionItem,wt.meeting.actionitem.IteratedSubjectOfActionItem,wt.meeting.actionitem.SubjectOfActionItem,wt.notify._Notifiable,Notifiable,_OrganizationOwned,wt.org._OrganizationOwnedVersion,wt.org.electronicIdentity._ElectronicallySignable,wt.org.electronicIdentity.ElectronicallySignable,OrganizationOwned,OrganizationOwnedVersion,wt.ownership._Ownable,wt.ownership.Ownable,wt.projmgmt.deliverable._SubjectOfDeliverable,wt.projmgmt.deliverable._VersionedSubjectOfDeliverable,wt.projmgmt.deliverable.SubjectOfDeliverable,wt.projmgmt.deliverable.VersionedSubjectOfDeliverable,wt.recent.RecentlyVisited,wt.representation._Representable,wt.representation._RepresentablesAndMasters,wt.representation._RepresentationContributor,Representable,wt.representation.RepresentablesAndMasters,wt.representation.RepresentationContributor,wt.sandbox._Interoperable,wt.sandbox.Interoperable,_TeamManaged,TeamManaged,wt.trace._IteratedTraceable,wt.trace._Traceable,IteratedTraceable,Traceable,wt.type._Typed,wt.type._TypeManaged,wt.type.FlexTyped,wt.type.Typed,wt.type.TypeManaged,wt.ufid._Federatable,wt.ufid.Federatable,_Iterated,wt.vc._OneOffVersioned,wt.vc._Versionable,wt.vc._Versioned,wt.vc.baseline._Baselineable,Baselineable,Iterated,OneOffVersioned,Versionable,Versioned,wt.vc.wip._Workable,Workable,wt.viewmarkup._Viewable,wt.viewmarkup.Viewable,wt.workflow.forum._IteratedSubjectOfForum,wt.workflow.forum._SubjectOfForum,wt.workflow.forum.IteratedSubjectOfForum,SubjectOfForum,wt.workflow.notebook._IteratedSubjectOfNotebook,wt.workflow.notebook._SubjectOfNotebook,wt.workflow.notebook.IteratedSubjectOfNotebook,wt.workflow.notebook.SubjectOfNotebook,wt.workflow.requirement._RequirementsManageable,wt.workflow.requirement.RequirementsManageable
- Direct Known Subclasses:
_ProxyDocument
@GenAsPersistable(superClass=RevisionControlled.class,interfaces={wt.doc.DocumentVersion.class,FormatContentHolder.class,Baselineable.class,wt.viewmarkup.Viewable.class,wt.workflow.requirement.RequirementsManageable.class,wt.type.Typed.class,WTContained.class,wt.enterprise.Templateable.class,Representable.class,OrganizationOwnedVersion.class,OneOffVersioned.class,wt.ufid.Federatable.class,Releasable.class,wt.access.IdentityAccessControlled.class,wt.fc.archive.ArchiveablePrimary.class,wt.sandbox.Interoperable.class,PersistedCollectable.class,wt.folder.history.Movable.class,wt.doc.WTDocumentTypeInterface.class,EffManagedVersion.class,wt.projmgmt.deliverable.VersionedSubjectOfDeliverable.class,IteratedTraceable.class},extendable=true,versions={-8938629559560808781L,545931576889465110L},properties={@GeneratedProperty(name="title",type=java.lang.String.class,supportedAPI=PUBLIC,javaDoc="The official title of a document.",constraints=@PropertyConstraints(upperLimit=64)),@GeneratedProperty(name="description",type=java.lang.String.class,supportedAPI=PUBLIC,javaDoc="Some text describing the document or noting important information that should be kept about a document.",constraints=@PropertyConstraints(upperLimit=4000)),@GeneratedProperty(name="department",type=DepartmentList.class,supportedAPI=PUBLIC,constraints=@PropertyConstraints(upperLimit=30,required=true)),@GeneratedProperty(name="docType",type=DocumentType.class,supportedAPI=PUBLIC,constraints=@PropertyConstraints(changeable=VIA_OTHER_MEANS,required=true))},foreignKeys=@GeneratedForeignKey(foreignKeyRole=@ForeignKeyRole(name="master",type=WTDocumentMaster.class,cascade=false,constraints=@PropertyConstraints(required=true),accessors=@PropertyAccessors(getAccess=PRIVATE)),myRole=@MyRole(name="iteration",cascade=false,accessors=@PropertyAccessors(getAccess=PRIVATE,setAccess=PROTECTED))),derivedProperties={@DerivedProperty(name="name",derivedFrom="master>name",supportedAPI=PUBLIC),@DerivedProperty(name="number",derivedFrom="master>number",supportedAPI=PUBLIC)},tableProperties=@TableProperties(compositeIndex2="+ docType + state.state",compositeIndex3="+ docType + state.state",compositeIndex5="+ domainRef.key.id",compositeUnique1="+oneOffVersionInfo.identifier.oneOffVersionId",oracleTableSize=HUGE),iconProperties=@IconProperties(standardIcon="netmarkets/images/doc_document.gif",openIcon="netmarkets/images/doc_document.gif"))
public class WTDocument
extends _WTDocument
The reference implementation of a DocumentVersion. It can be checked
in and out, revised and holds content (one or more files). A document
is visually recognized by an icon that represents the type of file content
it contains. Each particular iteration and version of a document may
have a different title, description and department.
In order to provide for possible table partitioning of WTDocument data
based on the type of document, the type field from WTDocumentMaster is
duplicated in the WTDocument. Programmatic controls don't allow changing
the document type once the document has been saved in the database. The
type is constant for all versions.
If WTDocument is extended to provide explicit java classes for new kinds
of documents, then corresponding entries should be added DocumentTypeRB
and the constructor methods implemented so that the java class carefully
controls the docType property of the object
.
Use the newWTDocument static factory method(s), not the
WTDocument constructor, to construct instances of this class.
Instances must be constructed using the static factory(s), in order
to ensure proper initialization of the instance.
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class wt.doc._WTDocument
DEPARTMENT, DESCRIPTION, DOC_TYPE, NAME, NUMBER, TITLEFields inherited from interface wt.vc._Iterated
CONTROL_BRANCH, CREATOR_EMAIL, CREATOR_FULL_NAME, CREATOR_NAME, ITERATION_IDENTIFIER, ITERATION_NOTE, LATEST_ITERATION, MASTER, MASTER_REFERENCE, MODIFIER, MODIFIER_EMAIL, MODIFIER_FULL_NAME, MODIFIER_NAMEFields inherited from interface wt.lifecycle._LifeCycleManaged
LIFE_CYCLE_STATE, STATEFields inherited from interface wt.org._OrganizationOwned
ORGANIZATION_CODING_SYSTEM, ORGANIZATION_NAME, ORGANIZATION_UNIQUE_IDENTIFIERFields inherited from interface wt.team._TeamManaged
TEAM_ID, TEAM_TEMPLATE_ID -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the value of the attribute: NAME.Gets the value of the attribute: NUMBER.Gets the value of the attribute: ORGANIZATION.Gets the value of the attribute: ORGANIZATION_UNIQUE_IDENTIFIER.protected voidinitialize(String number, String name, DocumentType type) Supports initialization, following construction of an instance.protected voidinitialize(WTDocumentMaster master) Supports initialization, following construction of an instance.static WTDocumentConstruct a new WTDocument instance.static WTDocumentnewWTDocument(String number, String name, DocumentType type) Constructs a General Document with the given name and number.static WTDocumentnewWTDocument(WTDocumentMaster master) Create a new Specification Document.voidsetDocType(DocumentType a_DocType) Sets the object for the association that plays role: DOC_TYPE.voidSets the value of the attribute: NAME.voidSets the value of the attribute: NUMBER.voidsetOrganization(WTOrganization a_Organization) Sets the value of the attribute: ORGANIZATION.Methods inherited from class wt.doc._WTDocument
getDepartment, getDescription, getDocType, getOrganizationCodingSystem, getOrganizationName, getTitle, setDepartment, setDescription, setTitleMethods inherited from class wt.enterprise._RevisionControlled
getControlBranch, getCreatorEMail, getCreatorFullName, getCreatorName, getIterationIdentifier, getIterationNote, getLifeCycleState, getMaster, getMasterReference, getModifier, getModifierEMail, getModifierFullName, getModifierName, getState, getTeamId, getTeamTemplateId, isLatestIteration, setMaster, setMasterReferenceMethods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface wt.vc._Iterated
getControlBranch, getCreatorEMail, getCreatorFullName, getCreatorName, getIterationIdentifier, getIterationNote, getMaster, getMasterReference, getModifier, getModifierEMail, getModifierFullName, getModifierName, isLatestIteration, setMaster, setMasterReference
-
Method Details
-
getName
Gets the value of the attribute: NAME.
Supported API: true- Specified by:
getNamein interfaceCabinetBased- Specified by:
getNamein interfacewt.projmgmt.deliverable.SubjectOfDeliverable- Overrides:
getNamein class_WTDocument- Returns:
- String
- See Also:
-
setName
Sets the value of the attribute: NAME.
Supported API: true- Overrides:
setNamein class_WTDocument- Parameters:
a_Name-- Throws:
WTPropertyVetoException- See Also:
-
getNumber
Gets the value of the attribute: NUMBER.
Supported API: true- Overrides:
getNumberin class_WTDocument- Returns:
- String
- See Also:
-
setNumber
Sets the value of the attribute: NUMBER.
Supported API: true- Overrides:
setNumberin class_WTDocument- Parameters:
a_Number-- Throws:
WTPropertyVetoException- See Also:
-
setDocType
Sets the object for the association that plays role: DOC_TYPE.
Supported API: true- Overrides:
setDocTypein class_WTDocument- Parameters:
a_DocType-- Throws:
WTPropertyVetoException- See Also:
-
newWTDocument
Construct a new WTDocument instance. If this API is used to construct a new WTDocument instance, the following methods should be explicitly used to set name, number and type. Use setName() to set the name, setNumber()to set the number and setType()to set the type.
Supported API: true- Returns:
- WTDocument
- Throws:
WTException
-
newWTDocument
Create a new Specification Document. Must use the setIdentification to set name and number. Better to use the newSpecification(String name, String number) constructor instead.
Supported API: true- Parameters:
master-- Returns:
- WTDocument
- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
master-- Throws:
WTException
-
newWTDocument
public static WTDocument newWTDocument(String number, String name, DocumentType type) throws WTException Constructs a General Document with the given name and number. Recommended constructor.
Supported API: true- Parameters:
number-name-type-- Returns:
- WTDocument
- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
number-name-type-- Throws:
WTException
-
getOrganizationUniqueIdentifier
Gets the value of the attribute: ORGANIZATION_UNIQUE_IDENTIFIER. The getter for this attribute delivers organization unique identifier.
Supported API: true- Specified by:
getOrganizationUniqueIdentifierin interface_OrganizationOwned- Overrides:
getOrganizationUniqueIdentifierin class_WTDocument- Returns:
- String
- See Also:
-
getOrganization
Gets the value of the attribute: ORGANIZATION.
Supported API: true- Returns:
- WTOrganization
-
setOrganization
Sets the value of the attribute: ORGANIZATION.
Supported API: true- Parameters:
a_Organization-- Throws:
WTPropertyVetoException
-