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

java.lang.Object
  extended bycom.ptc.windchill.counterpart.metadata.cEntry
      extended bycom.ptc.windchill.counterpart.metadata.cPrivateClassificationEntry
          extended bycom.ptc.windchill.counterpart.metadata.attribute.cAttributeOrganizer
All Implemented Interfaces:
nitidus.sil.be.core.iConflict, nitidus.sil.be.core.iEntryIO, nitidus.sil.be.clf.iPrivateClassificationEntryIO, nitidus.sil.be.clf.iPropertyFolderIO, nitidus.sil.be.core.iRecordIO, nitidus.sil.be.core.iRevisionControlledEntryIO, nitidus.sil.be.core.iVetoableEntryIO

public class cAttributeOrganizer
extends cPrivateClassificationEntry
implements nitidus.sil.be.clf.iPropertyFolderIO


Field Summary
private static String CLASSNAME
           
private static boolean DEBUG
           
private  AttributeOrgDefaultView fAttributeOrganizer
           
private  String[] fChildFolderRef
           
private  String[] fPropertyRef
           
private  AttributeOrgDefaultView fTempFolder
           
private static DebugWriter LOG
           
 
Fields inherited from class com.ptc.windchill.counterpart.metadata.cPrivateClassificationEntry
 
Fields inherited from class com.ptc.windchill.counterpart.metadata.cEntry
 
Fields inherited from interface nitidus.sil.be.core.iConflict
ctBadName, ctChild, ctDupName, ctMaxBasicAtt, ctMaxBasicClf, ctMaxBasicData, ctMaxBasicGeneral, ctMaxBasicUnit, ctMaxCfnRelatedData, ctMaxPartsLink621Clf, ctMaxPartsLinkClf, ctMaxSpecialAtt, ctMaxSpecialClf, ctMaxSpecialData, ctMaxSpecialGeneral, ctMaxSpecialUnit, ctMaxUnusedAtt, ctMaxWindchillClf, ctMaxWindchillFatalClf, ctMaxWindchillNonFatalClf, ctMaxWindchillUnit, ctMinBasicAtt, ctMinBasicClf, ctMinBasicData, ctMinBasicGeneral, ctMinBasicUnit, ctMinCfnRelatedData, ctMinPartsLink621Clf, ctMinPartsLinkClf, ctMinSpecialAtt, ctMinSpecialClf, ctMinSpecialData, ctMinSpecialGeneral, ctMinSpecialUnit, ctMinUnusedAtt, ctMinWindchillClf, ctMinWindchillFatalClf, ctMinWindchillNonFatalClf, ctMinWindchillUnit, ctNone, kBasic, kBasicAndAllWindchill, kBasicAndFatalWindchill, kBasicAndPartsLink, kBasicAndPartsLinkIncluding621, kFull, kMaxIgnorableConflict, kUnused
 
Constructor Summary
cAttributeOrganizer(AttributeOrgDefaultView org, String[] childFolders, String[] childProperties)
           
cAttributeOrganizer(AttributeOrgDefaultView org, String[] childFolders, String[] childProperties, String cpRootID)
          another special constructor for the "root" - this is a real organizer that is forced to adopt all of what Windchill calls the root (first) level of Attribute Organizers in addition to possibly being a parent in its own right.
cAttributeOrganizer(nitidus.sil.be.clf.iPropertyFolder lostPropertyFolder, nitidus.sil.be.clf.iPropertyFolderIO lostPropertyFolderIO, String lostChildID, boolean childIsProperty)
          special constructor for an organizer that exists only for download purposes to provide the structure for modeled attributes that would otherwise be missing.
cAttributeOrganizer(nitidus.sil.be.clf.iPropertyFolder rootPropertyFolder, String[] childFolders)
          special constructor for the "root" - an imaginary organizer that acts as parent to all of what Windchill calls the root (first) level of Attribute Organizers.
 
Method Summary
 void addChildFolder(String propertyFolderRef)
           
 void addChildProperty(String propertyRef)
           
static AttributeOrgDefaultView create(nitidus.sil.be.clf.iPropertyFolder cpPropertyFolder, cAttributeOrganizer parent)
           
static AttributeOrgDefaultView createTempFolder(String name, cAttributeOrganizer parent)
           
 void delete()
           
 void enrich(nitidus.sil.be.clf.iPropertyFolderIO cpPropertyFolderIO)
           
 void ensureOwnViewExists(nitidus.sil.be.clf.iPropertyFolder rootPropertyFolder)
           
private  AttributeOrgDefaultView getAttributeOrganizer()
           
 String[] getChildFolderRef()
           
 ObjectIdentifier getObjectID()
           
(package private)  ObjectIdentifier getParentObjectID()
           
 String[] getPropertyRef()
           
 boolean identicalTo(nitidus.sil.be.clf.iPropertyFolder cpPropertyFolder, cAttributeOrganizer parent)
           
private  boolean isChildOf(cAttributeOrganizer parent)
           
(package private)  boolean isParentOf(AbstractAttributeDefinizerView child)
           
(package private)  boolean isRoot()
           
 void preUpdate(nitidus.sil.be.clf.iPropertyFolder cpPropertyFolder, cAttributeOrganizer parent)
           
private  AttributeOrgDefaultView refreshAttributeOrganizer()
           
 void update(nitidus.sil.be.clf.iPropertyFolder cpPropertyFolder, cAttributeOrganizer parent)
           
 void updateID()
           
 
Methods inherited from class com.ptc.windchill.counterpart.metadata.cPrivateClassificationEntry
compareByNameTo, enrich, getAppSpecific, getChangeDescription, getCurrentMajorRevision, getCurrentMinorRevision, getDescription, getLocalizedNames, getLockedBy, getName, getRevisions, isApproved, isCurrentRevision, isDescriptionEqualTo, setAppSpecific
 
Methods inherited from class com.ptc.windchill.counterpart.metadata.cEntry
acknowledgeChange, compareByIDTo, enrich, getConflict, getID, isDeleted, isInConflict, isInUse, isModified, isNew, isObsolete, isReadOnly, needsIDUpdate, setConflict, setID, setInUse, setObsolete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nitidus.sil.be.clf.iPrivateClassificationEntryIO
getAppSpecific, getDescription, getLocalizedNames
 
Methods inherited from interface nitidus.sil.be.core.iVetoableEntryIO
isApproved, isCurrentRevision
 
Methods inherited from interface nitidus.sil.be.core.iRevisionControlledEntryIO
getChangeDescription, getCurrentMajorRevision, getCurrentMinorRevision, getLockedBy, getRevisions
 
Methods inherited from interface nitidus.sil.be.core.iEntryIO
getID
 
Methods inherited from interface nitidus.sil.be.core.iRecordIO
isDeleted, isModified, isNew, isReadOnly
 

Field Detail

fAttributeOrganizer

private AttributeOrgDefaultView fAttributeOrganizer

fTempFolder

private AttributeOrgDefaultView fTempFolder

fChildFolderRef

private String[] fChildFolderRef

fPropertyRef

private String[] fPropertyRef

CLASSNAME

private static final String CLASSNAME

DEBUG

private static final boolean DEBUG

LOG

private static final DebugWriter LOG
Constructor Detail

cAttributeOrganizer

public cAttributeOrganizer(AttributeOrgDefaultView org,
                           String[] childFolders,
                           String[] childProperties)

cAttributeOrganizer

public cAttributeOrganizer(nitidus.sil.be.clf.iPropertyFolder rootPropertyFolder,
                           String[] childFolders)
special constructor for the "root" - an imaginary organizer that acts as parent to all of what Windchill calls the root (first) level of Attribute Organizers.


cAttributeOrganizer

public cAttributeOrganizer(AttributeOrgDefaultView org,
                           String[] childFolders,
                           String[] childProperties,
                           String cpRootID)
another special constructor for the "root" - this is a real organizer that is forced to adopt all of what Windchill calls the root (first) level of Attribute Organizers in addition to possibly being a parent in its own right. Note that the second argument is only there to make a different signature.


cAttributeOrganizer

public cAttributeOrganizer(nitidus.sil.be.clf.iPropertyFolder lostPropertyFolder,
                           nitidus.sil.be.clf.iPropertyFolderIO lostPropertyFolderIO,
                           String lostChildID,
                           boolean childIsProperty)
special constructor for an organizer that exists only for download purposes to provide the structure for modeled attributes that would otherwise be missing. This object will never be enriched because it is created after the enrichment process has been performed on organizers. It creates an organizer with one child property or one child folder.

Method Detail

getChildFolderRef

public String[] getChildFolderRef()
Specified by:
getChildFolderRef in interface nitidus.sil.be.clf.iPropertyFolderIO
See Also:
iPropertyFolderIO

getPropertyRef

public String[] getPropertyRef()
Specified by:
getPropertyRef in interface nitidus.sil.be.clf.iPropertyFolderIO
See Also:
iPropertyFolderIO

getObjectID

public final ObjectIdentifier getObjectID()

getParentObjectID

final ObjectIdentifier getParentObjectID()

isParentOf

final boolean isParentOf(AbstractAttributeDefinizerView child)

isRoot

final boolean isRoot()

getAttributeOrganizer

private final AttributeOrgDefaultView getAttributeOrganizer()

refreshAttributeOrganizer

private final AttributeOrgDefaultView refreshAttributeOrganizer()
                                                         throws WTException
Throws:
WTException

updateID

public final void updateID()
                    throws WTException,
                           WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

delete

public void delete()
            throws WTException
Throws:
WTException

create

public static AttributeOrgDefaultView create(nitidus.sil.be.clf.iPropertyFolder cpPropertyFolder,
                                             cAttributeOrganizer parent)
                                      throws WTException,
                                             WTPropertyVetoException
Parameters:
cpPropertyFolder -
Returns:
AttributeOrgDefaultView
Throws:
WTException
WTPropertyVetoException

createTempFolder

public static AttributeOrgDefaultView createTempFolder(String name,
                                                       cAttributeOrganizer parent)
                                                throws WTException,
                                                       WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ensureOwnViewExists

public final void ensureOwnViewExists(nitidus.sil.be.clf.iPropertyFolder rootPropertyFolder)
                               throws WTException,
                                      WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

preUpdate

public void preUpdate(nitidus.sil.be.clf.iPropertyFolder cpPropertyFolder,
                      cAttributeOrganizer parent)
               throws WTException,
                      WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

update

public void update(nitidus.sil.be.clf.iPropertyFolder cpPropertyFolder,
                   cAttributeOrganizer parent)
            throws WTException,
                   WTPropertyVetoException
Parameters:
cpPropertyFolder -
parent -
Throws:
WTException
WTPropertyVetoException

identicalTo

public boolean identicalTo(nitidus.sil.be.clf.iPropertyFolder cpPropertyFolder,
                           cAttributeOrganizer parent)
Parameters:
cpPropertyFolder -
Returns:

isChildOf

private boolean isChildOf(cAttributeOrganizer parent)

enrich

public void enrich(nitidus.sil.be.clf.iPropertyFolderIO cpPropertyFolderIO)

addChildProperty

public final void addChildProperty(String propertyRef)

addChildFolder

public final void addChildFolder(String propertyFolderRef)