com.ptc.windchill.counterpart.metadata.attribute
Class cApplyAttributeOrganizer

java.lang.Object
  extended bycom.ptc.windchill.counterpart.metadata.cApply
      extended bycom.ptc.windchill.counterpart.metadata.attribute.cApplyAttributeOrganizer

public class cApplyAttributeOrganizer
extends cApply


Field Summary
private static String CLASSNAME
           
private static boolean DEBUG
           
private  String fRootId
           
private static DebugWriter LOG
           
 
Fields inherited from class com.ptc.windchill.counterpart.metadata.cApply
fCpNameComparator, fCpObjsToAdd, fCpObjsToChange, fErrors, fWtNameComparator, fWtObjsSearchMap, fWtObjsToChange, fWtObjsToDel
 
Constructor Summary
cApplyAttributeOrganizer(ArrayList initialCpObjs, ArrayList initialWtObjs, String rootID)
           
 
Method Summary
protected  boolean areIdentical(cEntry wtObj, Object cpObj)
           
protected  boolean canApply(nitidus.sil.be.core.iEntry cpObj)
           
protected  int compareByName(cEntry wtObj, Object cpObj)
           
protected  cEntry create(Object obj)
           
 void createRoot(nitidus.sil.be.clf.iPropertyFolder rootPropertyFolder)
           
protected  void delete(cEntry obj)
           
protected  void fileError(cEntry entry, int confl, String referToID, String comment)
           
protected  void fileError(nitidus.sil.be.core.iEntry entry, int confl, String referToID, String comment)
           
 cAttributeOrganizer getRoot()
           
private  boolean isRoot(cAttributeOrganizer org)
           
protected  void preUpdate(cEntry wtObj, nitidus.sil.be.core.iEntry cpObj)
           
protected  void update(cEntry wtObj, Object cpObj)
           
protected  void updateID(cEntry wtObj)
           
 
Methods inherited from class com.ptc.windchill.counterpart.metadata.cApply
canUpdate, createObjects, deleteObjects, eraseFromAddList, getErrors, getWtObjsSearchMap, isInAddList, prepare, preUpdate, searchEntryInMap, setInUse, setInUse, setInUseReferringRecords, updateObjects, updateSearchMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fRootId

private String fRootId

CLASSNAME

private static final String CLASSNAME

DEBUG

private static final boolean DEBUG

LOG

private static final DebugWriter LOG
Constructor Detail

cApplyAttributeOrganizer

public cApplyAttributeOrganizer(ArrayList initialCpObjs,
                                ArrayList initialWtObjs,
                                String rootID)
Method Detail

createRoot

public void createRoot(nitidus.sil.be.clf.iPropertyFolder rootPropertyFolder)

delete

protected void delete(cEntry obj)
Specified by:
delete in class cApply

create

protected cEntry create(Object obj)
Specified by:
create in class cApply

preUpdate

protected void preUpdate(cEntry wtObj,
                         nitidus.sil.be.core.iEntry cpObj)
Overrides:
preUpdate in class cApply

update

protected void update(cEntry wtObj,
                      Object cpObj)
Specified by:
update in class cApply

updateID

protected void updateID(cEntry wtObj)
Specified by:
updateID in class cApply

compareByName

protected int compareByName(cEntry wtObj,
                            Object cpObj)
Specified by:
compareByName in class cApply

areIdentical

protected boolean areIdentical(cEntry wtObj,
                               Object cpObj)
Specified by:
areIdentical in class cApply

isRoot

private boolean isRoot(cAttributeOrganizer org)
Parameters:
org -
Returns:
TRUE if CP top folder (CP root)

getRoot

public cAttributeOrganizer getRoot()
Returns:
root organizer which correspondents CP top folder

fileError

protected void fileError(cEntry entry,
                         int confl,
                         String referToID,
                         String comment)
Specified by:
fileError in class cApply
See Also:
cApply.fileError(com.ptc.windchill.counterpart.metadata.cEntry, int, java.lang.String, java.lang.String)

fileError

protected void fileError(nitidus.sil.be.core.iEntry entry,
                         int confl,
                         String referToID,
                         String comment)
Specified by:
fileError in class cApply
See Also:
cApply.fileError(com.ptc.windchill.counterpart.metadata.cEntry, int, java.lang.String, java.lang.String)

canApply

protected boolean canApply(nitidus.sil.be.core.iEntry cpObj)
Overrides:
canApply in class cApply