OptimalTrace
5.2

com.compuware.optimaltrace.tools.common.bizobjects
Class DeleteSupport

java.lang.Object
  extended by com.compuware.optimaltrace.tools.common.bizobjects.DeleteSupport

public class DeleteSupport
extends java.lang.Object

Class DeleteSupport. Helper class for deleting usecases/steps, etc, necessary due to the recursive nature of refinements.

Author:
Damian Beresford

Method Summary
 void deleteACBizObject(com.compuware.optimaltrace.tools.common.acbizobjects.ACBizObjectHolderIfc parent, com.compuware.optimaltrace.tools.common.acbizobjects.ACBizObjectIfc acBizObject)
          Deletes the AC biz object.
 void deleteACGroup(com.compuware.optimaltrace.tools.common.acbizobjects.ACContainerIfc container, com.compuware.optimaltrace.tools.common.acbizobjects.ACGroupIfc group)
          Deletes the AC group.
 void deleteACProject(com.compuware.optimaltrace.tools.common.acbizobjects.ACContainerIfc container, com.compuware.optimaltrace.tools.common.acbizobjects.ACProjectIfc acProject)
          Deletes the AC project.
 void deleteActor(com.compuware.optimaltrace.tools.common.bizobjects.ActorListIfc actorList, com.compuware.optimaltrace.tools.common.bizobjects.ActorIfc actor)
          Deletes the actor.
 void deleteACUser(com.compuware.optimaltrace.tools.common.acbizobjects.ACContainerIfc container, com.compuware.optimaltrace.tools.common.acbizobjects.ACUserIfc user)
          Deletes the AC user.
 void deleteBranch(com.compuware.optimaltrace.tools.common.bizobjects.BranchIfc branch)
          Deletes the branch.
 void deleteBranch(com.compuware.optimaltrace.tools.common.bizobjects.BranchIfc branch, boolean deepDelete)
          Deletes the actor from the actor list, and also check if the actor had been associated with any UseCase or Step in the Project packages
 void deleteDictionaryDef(com.compuware.optimaltrace.tools.common.bizobjects.GlossaryIfc glossary, com.compuware.optimaltrace.tools.common.bizobjects.DictionaryDefIfc dictionaryDef)
          Deletes the actor from the actor list, and also check if the actor had been associated with any UseCase or Step in the Project packages
 void deleteGoalLevel(GoalLevelIfc goalLevel, GoalLevelsIfc goalLevels)
          Deletes the goal level.
 void deleteLink(com.compuware.optimaltrace.tools.common.bizobjects.LinkBucketIfc bucket, com.compuware.optimaltrace.tools.common.bizobjects.ExternalLinkIfc link)
          Removes the link from its belonging LinkBucket
 void deleteNFR(com.compuware.optimaltrace.tools.common.bizobjects.NFRBucketIfc bucket, com.compuware.optimaltrace.tools.common.bizobjects.NonFunctionalRequirementIfc nfr)
          Removes the nfr from its belonging NFRBucket
 void deleteNote(com.compuware.optimaltrace.tools.common.bizobjects.NoteBucketIfc bucket, com.compuware.optimaltrace.tools.common.bizobjects.NoteIfc note)
          Removes the note from its belonging NoteBucket
 void deleteObjectInCopyBuffer()
          Deletes the object in the copy buffer.
 void deleteQuery(com.compuware.optimaltrace.tools.common.bizobjects.QueryBucketIfc bucket, com.compuware.optimaltrace.tools.common.bizobjects.QueryIfc query)
          Deletes the query from this Query bucket.
 void deleteQueryCondition(com.compuware.optimaltrace.tools.common.bizobjects.QueryConditionBucketIfc bucket, com.compuware.optimaltrace.tools.common.bizobjects.QueryConditionIfc cond)
          Deletes the query condition from this condition bucket.
 void deleteRefinement(RefinementIfc refinement, boolean deepDelete)
          Deletes the refinement from this meta model.
 void deleteRelationships(BizObjectIfc bizObject)
          Deletes the relationships from this biz object.
 void deleteRequirement(UseCasePackageIfc useCasePackage, AbstractRequirementIfc requirement, boolean deepDelete)
          Called when a UseCase is selected.
 void deleteScenario(UseCasePackageIfc useCasePackage, ScenarioIfc scenario, boolean deepDelete)
          Deletes the scenario.
 void deleteSimpleRequirement(UseCasePackageIfc useCasePackage, AbstractRequirementIfc requirement, boolean deepDelete)
          Called when a SimpleRequirement is selected.
 void deleteStep(UseCasePackageIfc useCasePackage, AbstractStepIfc stepOrItem, boolean deepDelete)
          Deletes the step.
 void deleteUseCasePackage(UseCasePackageIfc useCasePackage, boolean deepDelete)
          Deletes the usecase package.
 void disableClearCopyPasteBuffer()
          Disables the automatic clearing of the copy/paste buffer after a DeleteSupport delete.
 void enableClearCopyPasteBuffer()
          Enables the automatic clearing of the copy/paste buffer after a DeleteSupport delete.
static DeleteSupport getInstance()
          Gets the instance of this delete support.
 void removeUnnecessaryStepListeners(AbstractStepIfc step)
          Removes the unnecessary step listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DeleteSupport getInstance()
Gets the instance of this delete support.

Returns:
DeleteSupport

enableClearCopyPasteBuffer

public void enableClearCopyPasteBuffer()
Enables the automatic clearing of the copy/paste buffer after a DeleteSupport delete. It's useful to disable this when deleting from a clone project as this doesn't affect any cloned objects in the copy buffer.


disableClearCopyPasteBuffer

public void disableClearCopyPasteBuffer()
Disables the automatic clearing of the copy/paste buffer after a DeleteSupport delete. It's useful to disable this when deleting from a clone project as this doesn't affect any cloned objects in the copy buffer.


deleteRequirement

public void deleteRequirement(UseCasePackageIfc useCasePackage,
                              AbstractRequirementIfc requirement,
                              boolean deepDelete)
Called when a UseCase is selected. First we need to remove any refinement that it may of been pointed from, then recursively remove its sub refinements.

Parameters:
useCasePackage -
requirement -
deepDelete -

deleteSimpleRequirement

public void deleteSimpleRequirement(UseCasePackageIfc useCasePackage,
                                    AbstractRequirementIfc requirement,
                                    boolean deepDelete)
Called when a SimpleRequirement is selected. First we need to remove any refinement that it may of been pointed from, then recursively remove its sub refinements.

Parameters:
useCasePackage -
requirement -
deepDelete -

deleteUseCasePackage

public void deleteUseCasePackage(UseCasePackageIfc useCasePackage,
                                 boolean deepDelete)
Deletes the usecase package.

Parameters:
useCasePackage -
deepDelete -

deleteNote

public void deleteNote(com.compuware.optimaltrace.tools.common.bizobjects.NoteBucketIfc bucket,
                       com.compuware.optimaltrace.tools.common.bizobjects.NoteIfc note)
Removes the note from its belonging NoteBucket

Parameters:
bucket - from which the note is removed
note - to be removed

deleteLink

public void deleteLink(com.compuware.optimaltrace.tools.common.bizobjects.LinkBucketIfc bucket,
                       com.compuware.optimaltrace.tools.common.bizobjects.ExternalLinkIfc link)
Removes the link from its belonging LinkBucket

Parameters:
bucket - from which the link is removed
link - to be removed

deleteNFR

public void deleteNFR(com.compuware.optimaltrace.tools.common.bizobjects.NFRBucketIfc bucket,
                      com.compuware.optimaltrace.tools.common.bizobjects.NonFunctionalRequirementIfc nfr)
Removes the nfr from its belonging NFRBucket

Parameters:
bucket - from which the nfr is removed
nfr - to be removed

deleteRefinement

public void deleteRefinement(RefinementIfc refinement,
                             boolean deepDelete)
Deletes the refinement from this meta model.

Parameters:
refinement - the refinement to delete
deepDelete -

deleteScenario

public void deleteScenario(UseCasePackageIfc useCasePackage,
                           ScenarioIfc scenario,
                           boolean deepDelete)
Deletes the scenario.

Parameters:
useCasePackage -
scenario -
deepDelete -

deleteStep

public void deleteStep(UseCasePackageIfc useCasePackage,
                       AbstractStepIfc stepOrItem,
                       boolean deepDelete)
Deletes the step.

Parameters:
useCasePackage -
stepOrItem -
deepDelete -

deleteBranch

public void deleteBranch(com.compuware.optimaltrace.tools.common.bizobjects.BranchIfc branch)
Deletes the branch.

Parameters:
branch -

deleteBranch

public void deleteBranch(com.compuware.optimaltrace.tools.common.bizobjects.BranchIfc branch,
                         boolean deepDelete)
Deletes the actor from the actor list, and also check if the actor had been associated with any UseCase or Step in the Project packages

Parameters:
branch -
deepDelete -

deleteGoalLevel

public void deleteGoalLevel(GoalLevelIfc goalLevel,
                            GoalLevelsIfc goalLevels)
Deletes the goal level.

Parameters:
goalLevel -
goalLevels -

deleteACUser

public void deleteACUser(com.compuware.optimaltrace.tools.common.acbizobjects.ACContainerIfc container,
                         com.compuware.optimaltrace.tools.common.acbizobjects.ACUserIfc user)
Deletes the AC user.

Parameters:
container -
user -

deleteACGroup

public void deleteACGroup(com.compuware.optimaltrace.tools.common.acbizobjects.ACContainerIfc container,
                          com.compuware.optimaltrace.tools.common.acbizobjects.ACGroupIfc group)
                   throws com.compuware.optimaltrace.tools.common.acbizobjects.ACException
Deletes the AC group.

Parameters:
container -
group -
Throws:
com.compuware.optimaltrace.tools.common.acbizobjects.ACException

deleteACProject

public void deleteACProject(com.compuware.optimaltrace.tools.common.acbizobjects.ACContainerIfc container,
                            com.compuware.optimaltrace.tools.common.acbizobjects.ACProjectIfc acProject)
Deletes the AC project.

Parameters:
container -
acProject -

deleteACBizObject

public void deleteACBizObject(com.compuware.optimaltrace.tools.common.acbizobjects.ACBizObjectHolderIfc parent,
                              com.compuware.optimaltrace.tools.common.acbizobjects.ACBizObjectIfc acBizObject)
Deletes the AC biz object.

Parameters:
parent -
acBizObject -

deleteActor

public void deleteActor(com.compuware.optimaltrace.tools.common.bizobjects.ActorListIfc actorList,
                        com.compuware.optimaltrace.tools.common.bizobjects.ActorIfc actor)
Deletes the actor. Removes the actor from the actor list, and also check if the actor had been associated with any UseCase or Step in the Project packages

Parameters:
actorList -
actor -

deleteQueryCondition

public void deleteQueryCondition(com.compuware.optimaltrace.tools.common.bizobjects.QueryConditionBucketIfc bucket,
                                 com.compuware.optimaltrace.tools.common.bizobjects.QueryConditionIfc cond)
Deletes the query condition from this condition bucket.

Parameters:
bucket -
cond -

deleteQuery

public void deleteQuery(com.compuware.optimaltrace.tools.common.bizobjects.QueryBucketIfc bucket,
                        com.compuware.optimaltrace.tools.common.bizobjects.QueryIfc query)
Deletes the query from this Query bucket.

Parameters:
bucket -
query -

deleteDictionaryDef

public void deleteDictionaryDef(com.compuware.optimaltrace.tools.common.bizobjects.GlossaryIfc glossary,
                                com.compuware.optimaltrace.tools.common.bizobjects.DictionaryDefIfc dictionaryDef)
Deletes the actor from the actor list, and also check if the actor had been associated with any UseCase or Step in the Project packages

Parameters:
glossary -
dictionaryDef -

removeUnnecessaryStepListeners

public void removeUnnecessaryStepListeners(AbstractStepIfc step)
Removes the unnecessary step listeners.

Parameters:
step -

deleteRelationships

public void deleteRelationships(BizObjectIfc bizObject)
Deletes the relationships from this biz object.

Parameters:
bizObject -

deleteObjectInCopyBuffer

public void deleteObjectInCopyBuffer()
Deletes the object in the copy buffer.


OptimalTrace
5.2

Compuware Corporation

OptimalTrace is a trademark or registered trademark of Compuware Corporation in the US and other countries.
Copyright 2008-2009 Compuware Corporation. One Campus Martius,
Detroit, Michigan, 48226, U.S.A. All Rights Reserved.