com.ptc.netmarkets.nmixb
Class NMDocProxy
java.lang.Object
com.ptc.netmarkets.nmixb.NMDocProxy
- All Implemented Interfaces:
- Comparable
- public class NMDocProxy
- extends Object
- implements Comparable
Documents are identified by name and number.
There is also a set of attributes associated with them.
This proxy class provides its own definition of equality
since the objects are in different projects the new
equals will show that they are equal for our purpose.
The default equals implementation for WTDocument will show
that they are different when for our purposes that may not be true.
FROM_INDICES
private static final int[] FROM_INDICES
fileMetaMap
private Map fileMetaMap
docName
private String docName
docNum
private String docNum
docDepartment
private DepartmentList docDepartment
hashcodeKey
private String hashcodeKey
docDescription
private String docDescription
docType
private DocumentType docType
contentFiles
private File[] contentFiles
oid
ObjectIdentifier oid
docOwner
private String docOwner
reducedLocation
private String reducedLocation
lifecycleName
private String lifecycleName
forums
private List forums
myWorklist
private CommonCopyWorklist myWorklist
templated
private boolean templated
NMDocProxy
private NMDocProxy()
NMDocProxy
public NMDocProxy(WTDocumentMaster master,
WTDocument doc,
CommonCopyWorklist worklist,
WTContainerRef contRef)
throws WTException
toString
public String toString()
isTemplated
public boolean isTemplated()
addForumProxy
public void addForumProxy(DiscussionForum forum,
WorklistDrivenCopier copier)
throws WTException
- Throws:
WTException
getForums
public List getForums()
throws WTException
- Throws:
WTException
compareTo
public int compareTo(Object obj)
- Specified by:
compareTo
in interface Comparable
equals
public boolean equals(Object obj)
hashCode
public int hashCode()
getDocOwner
public String getDocOwner()
getDocDescription
public String getDocDescription()
getName
public String getName()
getNumber
public String getNumber()
getDepartmentList
public DepartmentList getDepartmentList()
getDocType
public DocumentType getDocType()
addContentFile
public void addContentFile(File tmpFile,
ContentItem item)
throws WTException
- Throws:
WTException
addContentFile
private void addContentFile(File tmpFile,
ApplicationData ad)
throws WTException
- Throws:
WTException
addContentFile
private void addContentFile(File tmpFile,
URLData ud)
throws WTException
- Throws:
WTException
createContentItemObject
public ContentItem createContentItemObject(File tmpFile,
ContentHolder holder)
throws WTException
- Throws:
WTException
getAppData
private ContentDataProxy getAppData(File tmpFile)
initContentItem
private ContentItem initContentItem(ContentDataProxy proxy,
ContentHolder holder)
throws WTException
- Throws:
WTException
getContentFiles
public File[] getContentFiles()
getOid
public ObjectIdentifier getOid()
getLifecycleName
public String getLifecycleName()
getLocation
public String getLocation(String rootPath)
initRuleHistory
private void initRuleHistory(ObjectIdentifier oid)
throws WTException
- Throws:
WTException