Package com.atlassian.bitbucket.scm
Class DeleteCommandParameters
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.scm.AbstractCommandParameters
com.atlassian.bitbucket.scm.DeleteCommandParameters
public class DeleteCommandParameters
extends com.atlassian.bitbucket.scm.AbstractCommandParameters
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from class com.atlassian.bitbucket.util.BuilderSupportNOT_BLANK
- 
Method SummaryModifier and TypeMethodDescriptionProvides theIDsof all repositories that were forked from the repository being deleted which have not, themselves, been deleted.booleanhasForks()Retrieves a flag indicating whether the deleted repository hasforks.booleanReturns whether the repository that is being deleted was the last fork of the origin repository.booleanRetrieves a flag indicating whether this repository was the last in itshierarchy, allowing the SCM to perform any additional cleanup that is necessary when an entire hierarchy is deleted.Methods inherited from class com.atlassian.bitbucket.util.BuilderSupportaddIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
- 
Method Details- 
getForkIdsProvides theIDsof all repositories that were forked from the repository being deleted which have not, themselves, been deleted. As the repository has already been deleted from the database, the host application must provide these IDs because it is no longer possible to query for them.The returned set will always be empty for the last repository in a hierarchy.- Returns:
- a set containing 0 or more fork IDs
 
- 
hasForkspublic boolean hasForks()Retrieves a flag indicating whether the deleted repository hasforks.If isLastInHierarchy()istrue, this will always befalse.- Returns:
- trueif the- fork IDset is not empty; otherwise,- false
 
- 
isLastForkOfOriginpublic boolean isLastForkOfOrigin()Returns whether the repository that is being deleted was the last fork of the origin repository.If hasForks()istrue, this will always befalse.- Returns:
- trueif the deleted repository was the last remaining fork of the origin; otherwise,- false
- Since:
- 8.19.4
 
- 
isLastInHierarchypublic boolean isLastInHierarchy()Retrieves a flag indicating whether this repository was the last in itshierarchy, allowing the SCM to perform any additional cleanup that is necessary when an entire hierarchy is deleted.- Returns:
- trueif this repository is the last in its hierarchy; otherwise,- falseif at least one repository remains in the hierarchy
 
 
-