public class

DeleteCommandParameters

extends AbstractCommandParameters
java.lang.Object
   ↳ com.atlassian.stash.util.BuilderSupport
     ↳ com.atlassian.stash.scm.AbstractCommandParameters
       ↳ com.atlassian.stash.scm.DeleteCommandParameters

Summary

Nested Classes
class DeleteCommandParameters.Builder  
[Expand]
Inherited Fields
From class com.atlassian.stash.util.BuilderSupport
Public Methods
@Nonnull Set<Integer> getForkIds()
Provides the IDs of all repositories that were forked from the repository being deleted which have not, themselves, been deleted.
boolean hasForks()
Retrieves a flag indicating whether the deleted repository has forks.
boolean isLastInHierarchy()
Retrieves a flag indicating whether this repository was the last in its hierarchy, allowing the SCM to perform any additional cleanup that is necessary when an entire hierarchy is deleted.
[Expand]
Inherited Methods
From class com.atlassian.stash.util.BuilderSupport
From class java.lang.Object

Public Methods

@Nonnull public Set<Integer> getForkIds ()

Provides the IDs of 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

public boolean hasForks ()

Retrieves a flag indicating whether the deleted repository has forks.

If isLastInHierarchy() is true, this will always be false.

Returns
  • true if the fork ID set is not empty; otherwise, false

public boolean isLastInHierarchy ()

Retrieves a flag indicating whether this repository was the last in its hierarchy, allowing the SCM to perform any additional cleanup that is necessary when an entire hierarchy is deleted.

Returns
  • true if this repository is the last in its hierarchy; otherwise, false if at least one repository remains in the hierarchy