com.ptc.netmarkets.nmixb
Class NMDocProxy

java.lang.Object
  extended bycom.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.


Field Summary
private  File[] contentFiles
           
private  DepartmentList docDepartment
           
private  String docDescription
           
private  String docName
           
private  String docNum
           
private  String docOwner
           
private  DocumentType docType
           
private  Map fileMetaMap
           
private  List forums
           
private static int[] FROM_INDICES
           
private  String hashcodeKey
           
private  String lifecycleName
           
private  CommonCopyWorklist myWorklist
           
(package private)  ObjectIdentifier oid
           
private  String reducedLocation
           
private  boolean templated
           
 
Constructor Summary
private NMDocProxy()
           
  NMDocProxy(WTDocumentMaster master, WTDocument doc, CommonCopyWorklist worklist, WTContainerRef contRef)
           
 
Method Summary
private  void addContentFile(File tmpFile, ApplicationData ad)
           
 void addContentFile(File tmpFile, ContentItem item)
           
private  void addContentFile(File tmpFile, URLData ud)
           
 void addForumProxy(DiscussionForum forum, WorklistDrivenCopier copier)
           
 int compareTo(Object obj)
           
 ContentItem createContentItemObject(File tmpFile, ContentHolder holder)
           
 boolean equals(Object obj)
           
private  ContentDataProxy getAppData(File tmpFile)
           
 File[] getContentFiles()
           
 DepartmentList getDepartmentList()
           
 String getDocDescription()
           
 String getDocOwner()
           
 DocumentType getDocType()
           
 List getForums()
           
 String getLifecycleName()
           
 String getLocation(String rootPath)
           
 String getName()
           
 String getNumber()
           
 ObjectIdentifier getOid()
           
 int hashCode()
           
private  ContentItem initContentItem(ContentDataProxy proxy, ContentHolder holder)
           
private  void initRuleHistory(ObjectIdentifier oid)
           
 boolean isTemplated()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

NMDocProxy

private NMDocProxy()

NMDocProxy

public NMDocProxy(WTDocumentMaster master,
                  WTDocument doc,
                  CommonCopyWorklist worklist,
                  WTContainerRef contRef)
           throws WTException
Method Detail

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